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
thanks for your replay,
i did not understand your suggestion, could elaborate little bit more, how it helps just by adding flag, and i have tried firing dummy events too, but it is not helping me. And as for i know, i have not found any facility to get all page RowItems in GridView. Can you tell me is there any way to get all the RowItems in a GridView?.
thanks inadvance
as far as I understand your purpose, I think you could add a property to your bean that you use as a flag.
--Bozhidar
can you tell me any workaround or suggestion for the same?
Hello, Dayananda B V!
Now I understand what you want to do but I'm affraid that currently there is no way to get the row items on the current page. You can submit a feature request to the support group http://devcenter.infragistics.com/Protected/RequestFeature.aspx indicating that your request refers to NetAdvanateg for JSF. So you can contribute to making our product always better.
Thanks!
Hi Bozhidar,
Thanks you very much for qucik replay, the solution you given is for getting the data, but i want RowItem itself
for example look at this code, you can get a idea what i am looking for.
public void onPageSelectUnits(PageChangeEvent evt){ try{
Iterator currentPageRowItems = getUnitsGrid().getRows().iterator(); // here i am getting previous page RowItems
while (currentPageRowItems.hasNext()) { RowItem rowItem = (RowItem) currentPageRowItems.next(); { rowItem.setSelected(true); } }
}catch(Exception e){
e.printStackTrace();
}