1
當焦點在單元格上時,Kendo Grid內的單元格中是否有突出顯示(選擇所有文本)的方法?當我選中或點擊列時,我希望該單元格中的文本自動突出顯示。提前感謝您的幫助。kendo grid選擇焦點上的單元格數據
我有下面的代碼:
@(Html.Kendo().Grid<ExerciseBreakdownViewModel>()
.Name(string.Format("Grid"))
.Columns(columns =>
{
columns.Bound(p => p.Id).Visible(false);
columns.Bound(p => p.PersonnelName).Width(120);
columns.Bound(p => p.NumberOfTeams).Width(120);
columns.Bound(p => p.TeamMembers).Width(110);
columns.Bound(p => p.Vehicles).Width(80);
columns.Bound(p => p.Brief).Format("{0:HH:mm}").EditorTemplateName("BriefTimePicker").Width(80);
columns.Bound(p => p.KickOff).Format("{0:HH:mm}").EditorTemplateName("KickoffTimePicker").Width(80);
columns.Bound(p => p.Debrief).Format("{0:HH:mm}").EditorTemplateName("DebriefTimePicker").Width(80);
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.HtmlAttributes(new { style = "height:400px;" })
.Navigatable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Events(events => events.Error("error_handler"))
.Model(model =>
{
model.Id(p => p.Id);
model.Field(p => p.PersonnelName).Editable(false);
model.Field(p => p.NumberOfTeams);
model.Field(p => p.TeamMembers);
model.Field(p => p.Vehicles);
model.Field(p => p.Brief);
model.Field(p => p.KickOff);
model.Field(p => p.Debrief);
})
.Read("Personnel_Read", "Schedule", Model)
)
)