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

Select Row in virtual scrolling row

3 Answers 248 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 2
Mike asked on 09 Aug 2013, 09:47 AM
Hi!
I was wondering if there is a way to select a specific grid row when the grid is configured for virtual scrolling and the row is not currently loaded.
Can i bring to row into view and select it?
Currently i'm selecting the row's using this line of code:
$("#" + gridName).data("kendoGrid").select($("#" + gridName).data("kendoGrid").table.find('tr[data-id="' + rowDataId + '"]'));

This works perfectly if the row is already loaded and in view.

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 13 Aug 2013, 07:11 AM
Hello Mike,

I'm afraid that only visible rows can be selected in the grid as selection works against DOM elements only.

Regards,
Nikolay Rusev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mike
Top achievements
Rank 2
answered on 19 Aug 2013, 10:48 AM
Hello!

Is there a way to load the next 'page' in a virtual scrolling grid? that way i could load all pages till the desired element is loaded an then bring it into view.
0
Nikolay Rusev
Telerik team
answered on 20 Aug 2013, 10:46 AM
Hello Mike,

You can scroll the Grid so that it issues a request for more data. For example the following code will scroll down the scrollable area of the Grid with 500 pixels:

var grid = $("#myGridId").data("kendoGrid");
 
grid.wrapper.find(".k-scrollbar-vertical").scrollTop(500);

Regards,
Nikolay Rusev
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
Mike
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Mike
Top achievements
Rank 2
Share this question
or