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

RadGrid, Row Index, ClientSettings AllowScroll

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David Stacey
Top achievements
Rank 1
David Stacey asked on 18 May 2010, 06:22 PM
I have a rad grid with a header and filter row.
I use

masterTableView()

.get_selectedItems().get_element().rowIndex;

The problem i have is when

 

ClientSettings.Scrolling.AllowScroll =

true
the row index is different from
ClientSettings.Scrolling.AllowScroll = false

(setting it to true reduces the index by 2)

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 May 2010, 02:59 PM
Hello David,

The observed behavior is expected - you are referring to the rowIndex property of the table row DOM elements. DOM elements do not know anything about RadGrid and its scrolling.

You can check whether gridObject._scrolling is not null and take it into consideration in the Javascript logic.

Best wishes,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
David Stacey
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or