SergioFeitoza Posted October 12, 2020 Posted October 12, 2020 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. ? Quote
Sherzod Posted October 12, 2020 Posted October 12, 2020 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) } Quote
SergioFeitoza Posted October 13, 2020 Author Posted October 13, 2020 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 Quote
55143681 Posted October 16, 2020 Posted October 16, 2020 On 10/13/2020 at 6:41 PM, SergioFeitoza said: Hi Sherzod Thank you and understood . I will use it I can check more than 4,why? Quote
Sherzod Posted October 16, 2020 Posted October 16, 2020 2 hours ago, 55143681 said: I can check more than 4,why? Hello, Can you please make a simple testcase to check? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.