Hi,
i have added pageChangeListener to GridView, i want to get all RowItems for the currently selected page,
getRows() method giving previous page RowItems, can you people give me any suggestion,
any help will be appreciated.
Thanks
Dayananda B V
Glad for being useful!
Regards!
--Bozhidar
Hi Bozhidar,
thanks your excellent support, the suggestion you given i.e. dataBind works great, thanks once again
Hi, Dayananda B V!
Try to data bind your grid after getting it in the action listener, e.g.:
grid = (HtmlGridView) e.getSource();
grid.dataBind();
and then use getRows();
It will now return the list of the currently displayed Row Items.
I hope this will work.
-- Bozhidar
Thank your very much for your prompt replay, it's ok to set boolean variable true, my problem is have a check box in GridView which is automaticaly added by this code
"<ig:columnSelectRow showSelectAll="true"/>,
so actually i have to set check box as a selected depedning on some condition. is this possible? is there any way? if i am able to get all RowItems from GridView for the currently selected page than no problem for me, but as you told there is no such facility. And you are suggesting use some boolena variable to do. my question is who can set the check box as selected. using boolean variable, is this possible.
thanks
There is no way to get all RowItems from GridView yet. You can get the data source and so my suggestion was to add a boolean property to the bean representing the data in the rows and to set it to true instead of rowItem.setSelected(true); in your action listener. I hope this helps.
Thanks!