how to know page of an item in a datagrid

Login or register to post comments
1 reply [Last post]
Offline
Joined: 02/04/2011

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

Offline
Joined: 03/31/2008

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.