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

[Solved] Set default row(first row) every time when grid load or when pager page changed.

0 Answers 89 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.
Ganesh Jagdale
Top achievements
Rank 1
Ganesh Jagdale asked on 27 Aug 2012, 11:24 AM
Hi telerik,
            Thanks for providing such beatuful control. I have aleady use your silvelight controls. Now I am using MVC3 controls.
In this I faced one problem while selecting first row bydefault when data loads in grid or when page size and page index changed. I saw yor demo but in that there are two grids. But in my scenario only one grid is there.
        In your demo iteself on page chaned first row is not selected.
      I used   CompletedBinders_OnDataBound this events to fulfil my requirement like but this code fails in Safari browser(issue is grids lading symbol appear as loading always the issue is

 

$('#CompletedBinders').data('tGrid').$rows()[0].click(); this statemet.

 

function CompletedBinders_OnDataBound(e) {

 

 

var selected = $("#tabs").tabs("option", "selected");

 

if (selected == 0) {

 

 

$('#grid).data('tGrid').$rows()[0].click();

}


Please give me other work arount to select first row default in any state.
Please help me out.


thanks,
Ganesh
Tags
Grid
Asked by
Ganesh Jagdale
Top achievements
Rank 1
Share this question
or