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

SelectedCell Scroll question

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Terry Webster
Top achievements
Rank 1
Terry Webster asked on 19 Sep 2012, 11:38 AM
Is there a way to select a cell (column and row) and position the view to that cell on page load?

I have done row positioning before, but never column.

Thanks,

Terry

1 Answer, 1 is accepted

Sort by
0
Galin
Telerik team
answered on 24 Sep 2012, 01:53 PM
Hi Terry,

You can achieve this with the following JS function
function pageLoad() {
    var grid = $find("RadGrid1"),
        columnName = "Address",
        cellItem = 2;
 
    grid._cellSelection.select(grid.get_masterTableView().get_dataItems()[cellItem].get_cell(columnName))
}

I hope this helps.

Kind regards,
Galin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Terry Webster
Top achievements
Rank 1
Answers by
Galin
Telerik team
Share this question
or