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
600
Limit number of checked rows
posted

Hi,

I have a requirement whereby I need to limit the number of rows that can have a grid column checked in a grid.  My grid is populated with a list of domains (e.g. 10 domains) and our users will be limited to a certain number of domains (e.g. 5) that they can have "active" (indicated by checking the row) at any given time.  Can you tell me how I might be able to achieve limiting the number of rows that can be checked?  I'm thinking that I'll need to apply an onclick handler to the checkboxes that will verify the number of checked rows and if it exceeds the limit, return false and display a validation message.

I've attached a previous sample related to another ticket.  If possible could you amend this code to only allow a maximum of 250 rows to be checked at any time?

Many thanks,

Rick

igGridShowSpanWithCheckedRowsCount.zip