title: kendo grid select cell data on focus
body: <p>Is there a way to highlight (select all the text) in a cell inside a Kendo Grid when focus is on the cell?  When I tab or click into the columns I would like the text in that cell to auto highlight.  Thank you in advance for any assistance.</p>
  
  <p>I have the below code:</p>
  
  <pre><code>@(Html.Kendo().Grid&lt;ExerciseBreakdownViewModel&gt;()
            .Name(string.Format("Grid"))
            .Columns(columns =&gt;
            {
                columns.Bound(p =&gt; p.Id).Visible(false);
                columns.Bound(p =&gt; p.PersonnelName).Width(120);
                columns.Bound(p =&gt; p.NumberOfTeams).Width(120);
                columns.Bound(p =&gt; p.TeamMembers).Width(110);
                columns.Bound(p =&gt; p.Vehicles).Width(80);
                columns.Bound(p =&gt; p.Brief).Format("{0:HH:mm}").EditorTemplateName("BriefTimePicker").Width(80);
                columns.Bound(p =&gt; p.KickOff).Format("{0:HH:mm}").EditorTemplateName("KickoffTimePicker").Width(80);
                columns.Bound(p =&gt; p.Debrief).Format("{0:HH:mm}").EditorTemplateName("DebriefTimePicker").Width(80);
            })
            .Editable(editable =&gt; editable.Mode(GridEditMode.InCell))
            .HtmlAttributes(new { style = "height:400px;" })
            .Navigatable()
            .Scrollable()
            .DataSource(dataSource =&gt; dataSource
                .Ajax()
                .PageSize(20)
                .Events(events =&gt; events.Error("error_handler"))
                .Model(model =&gt;
                {
                    model.Id(p =&gt; p.Id);
                    model.Field(p =&gt; p.PersonnelName).Editable(false);
                    model.Field(p =&gt; p.NumberOfTeams);
                    model.Field(p =&gt; p.TeamMembers);
                    model.Field(p =&gt; p.Vehicles);
                    model.Field(p =&gt; p.Brief);
                    model.Field(p =&gt; p.KickOff);
                    model.Field(p =&gt; p.Debrief);
                })
               .Read("Personnel_Read", "Schedule", Model)
            )
      )
  </code></pre>