Jump to content

UniDBgrid with check boxes (limit number of rows that can be selected)


Recommended Posts

Posted

I have a TuniDBgrid working with 10 lines working well with check boxes. So I can select from one line to 10 lines

What should I do if I want to limit the number of selected lines to 4.

That is , when I select 4 tha "not selected ones" become unable to select.  ?

Posted
1 hour ago, SergioFeitoza said:

What should I do if I want to limit the number of selected lines to 4.

Hello,

You can try to use this code:

function beforeselect(sender, record, index, eOpts)
{
    return !(sender.getSelection().length>3)
}

 

Posted
17 hours ago, Sherzod said:

Hello,

You can try to use this code:


function beforeselect(sender, record, index, eOpts)
{
    return !(sender.getSelection().length>3)
}

 

Hi Sherzod  Thank you and understood . I will use it

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...