Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
Counting bound checkbox rows
posted

I have code to count the number of rows with an unbound checkbox checked.  I'm using to the get_checkedCount() method to return the value.  

Now I'm trying to count the number of rows with a bound checkbox, and the get_checkedCount() always returns zero.

Is there a different method I should be using to count the number of bound checkboxes checked?

Parents
No Data
Reply
  • 20255
    Offline posted

    Hello Crendall,

    Thank you for your patience.

    This behavior is by design, get_checkedCount() method could be used only with UnboundCheckBoxField column. If you want to get only the count of them I can suggest you to check the data source and particularly the field related to the checkbox. For example you can perform Sql command that will return you all values of "DISCONTINUED" which are true, in other words which will be shown in the grid as Checked checkboxes.

Children
No Data