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

[Solved] Client Side Record Navigation

1 Answer 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lars Solberg
Top achievements
Rank 1
Lars Solberg asked on 01 May 2008, 04:35 PM
Hi...

We are trying to set our grid up so if the user clicks a "previous" or "next" button it will select the respective record.  When a row is selected, we have a recordselected event that fires and updates other components.  My question is, from the client side, how do you know how many items are in the grid and how would you go about selecting the first, last, previous, and next rows.

Also, we have a grid with items that are grouped by job number.  When the user selects a row is it possible to get the selected item's index from the datatable as opposed to get_itemIndexHierarchical()?

Thanks in advance,

Lars

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 02 May 2008, 08:45 AM
Hello Lars,

You can use the MasterTable's get_selectedItems property to get a collection of all the selected items in the masterTable. You can also use the selectItem method to select any of the rows, depending on your requirements.
There is no information, however, on the order/position of the row in the underlying database.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Lars Solberg
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or