how to know page of an item in a datagrid
Fri, 05/06/2011 - 10:08
Hi, I'd like know if is possible know the page of an item in Qdatagrid with paginator. I'm devepoling an app and I have the qdatagrid with clients, and a chkcolumn too, I need to perfom an action when I check all with the checkbox's column, when I go to next page, the checkbok in header are selected but the checkboxs in qdatagrid not. It's possible know how many checkboxs are selected depends on the page that you are viewing
Thanks

The QCheckboxColumn is aware of checkboxes on all pages, even ones not currently being displayed. GetSelectedItems / Ids will provide that information to you.
If you want a count of checkboxes checked on the current page, you can use javascript, since it's only aware of the checkboxes currently displayed.