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

Pre-selecting Rows

1 Answer 171 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 12 Jun 2014, 09:17 PM
I'm using the kendo.angular integration. Here's our markup using the kendo-grid directive, which works great:

    <div id="buUsers" kendo-grid="buUsers" data-k-options="kendoGridOptionsBuUsers"></div>

I need to initialize the grid with rows pre-selected. Is the code snippet below the only way to do this? Extracting data from the DOM with a jQuery selector seems kind of hacky.

    $scope.buUsers.select("tr:eq(" + (index + 1) + ")")

Here are my environment details:

OS: OS X 10.9.3
Browser: Chrome 35.0.1916.114
jQuery: 2.1.1
KendoUI: 2014.1.528

Any help would be appreciated!

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 13 Jun 2014, 07:11 AM
Hi Eric,


Indeed there is no way to specify rows as selected through the configuration. Invoking the select method of the Grid API is the only way to achieve this.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or