This is a migrated thread and some comments may be shown as answers.

[Solved] Selectable/clickable rows

0 Answers 12 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
William
Top achievements
Rank 1
William asked on 12 Dec 2011, 04:52 PM
<%=
     Html.Telerik().Grid<xxxxx.xxxxxxx.AddressViewModel>()
     .Name("Grid")
     .Columns(columns =>
     {
         columns.Add(o => o.Checkbox).Filterable(false).Sortable(false).Width(50).Title("Select");
         columns.Add(o => o.c1).Width(120).Title("1");
         columns.Add(o => o.c2).Width(120).Title("2");
         columns.Add(o => o.c3).Width(120).Title("3");
         columns.Add(o => o.c4).Width(250);
         columns.Add(o => o.c5).Title("5").Width(150);
         columns.Add(o => o.c6).Title("6").Width(120);
         columns.Add(o => o.c7).Title("7").Width(120);
         columns.Add(o => o.c8).Title("8").Width(100);
         columns.Add(o => o.c9).Width(120).Title("9");
           
     })
     .ClientEvents(events => events.OnRowDataBound("onRowDataBound"))
     .Ajax(ajax => ajax.Action("_Index", "AddressBook"))
     .Pageable(paging => paging.PageSize(15))
     .Scrollable(scrolling => scrolling.Height(300))
     .Sortable()
            
       
 %>
This table displays a grid with all the data and checkboxes fine. I want to make the rows clickable such that when they are clicked the row's checkbox becomes checked. I tried looking for a setting or function and couldn't get anything to work.
Tags
Grid
Asked by
William
Top achievements
Rank 1
Share this question
or