Author Topic: Header Checkbox column checkedAll  (Read 6642 times)

netprw

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 9
    • View Profile
Header Checkbox column checkedAll
« on: October 10, 2013, 03:40:37 pm »
Hi,

We have facing issue with PQ-Grid about header checkbox column. We have implement header column with checkbox for check-uncheck all relevant checkbox in row, Its work only for visible records, but when we scroll down content panel, its loose all checked status, that is with open source version of PQ-Grid. 

As you mentioned your website that is pro-version of PQ-Grid checkbox feature, so we have purchased pro-version but we are having same issues.

Actually This kind of structure we have implemented in our whole application & now we are struggling with rendering issues :(

Please refer the attachment for better clarification.

Waiting for positive & quick reply.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Header Checkbox column checkedAll
« Reply #1 on: October 10, 2013, 08:36:45 pm »
Peter

This is an implementation issue.

PFA the correct implementation.





« Last Edit: October 10, 2013, 08:48:55 pm by paramquery »

netprw

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Header Checkbox column checkedAll
« Reply #2 on: October 11, 2013, 11:36:20 am »
Hi Peter,

Thanks for You warm response...!!!

Please, check attached source we are not able to get last checkboxes.

We are more thankful if you are providing Skype id for more conversation.

Regards,
Pintu and Ramesh.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Header Checkbox column checkedAll
« Reply #3 on: October 11, 2013, 03:49:24 pm »
Hello guys

Please check attachment in my last email and try to understand the code.

You can't just update the view like this

$("#grid_array").find('input[type=checkbox]').each(function (i,val) {
});

because it would limit you to the checkboxes visible in the viewport only and it won't update your data (state field).

http://paramquery.com/pro/tutorial#topic-design

you need to think the other way round and start from updating the data (state field) first










 
« Last Edit: October 13, 2013, 01:09:18 am by paramquery »