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

javascript iterate all itens in a radgrid

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ricardo My Last name
Top achievements
Rank 1
Ricardo My Last name asked on 13 Aug 2010, 07:31 PM

Hello!

 


I know that i can use this javascript code to iterate tru all itens of my grid
With pagination i have a problem ... I just can iterate in tru those wich are in
the page ...
How can i iterate in all the itens, it´s not possible ???

I would be happy if you can help me please  ..

Thanks

Ricardo.

My code:

for (var row = 0; row < masterTable.get_dataItems().length; row++) {
//iterate just tru the itens in the page

}


1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 18 Aug 2010, 03:32 PM
Hi Ricardo,

When you have paging enabled, as it is handled server-side, only the items for the current page are returned to the client. That is why you cannot access the rest of the items client-side. The only way to traverse all items on the client is to have paging (temporarily) disabled.

Kind regards,
Tsvetina
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
Ricardo My Last name
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or