Results 1 to 4 of 4

Thread: Gridview multiple record selection on checkbox ONLY

  1. #1

    Default Gridview multiple record selection on checkbox ONLY

    Please find the jsfiddle with the options I am using: http://jsfiddle.net/7bj4n/2/

    Problem statement with example:

    User is viewing the grid view of 5000 rows and let's say they want to select multiple rows randomly...let's say from 21-30, then 501-700 and 1201-1350 etc

    currently they can do this by shift+select but if they happen to click anywhere in grid row/body or even right click their entire selection gets de-selected and ONLY the row where they happened to click/right-click gets selected, which is really annoying and they have to repeat the same selection process again...clearly not a good User experience.

    So in short,
    I want to retain the multiple row selection using shift + select on whichever rows they want but make it functional ONLY on checkbox and disable that grid row/body click or right click.

    P.S: "checkonly" option works on checkbox but it disables the multiple selection (shift + select)

    Any possible fix?



  2. #2
    Sencha Premium Member
    Join Date
    Oct 2013
    Posts
    24

    Default

    Dear HorseShoe61,

    I'm facing the same problem, do you found a solution ?

    Thanks a lot for your answer,

    Regards,
    Bruno

  3. #3

    Default

    Yes I did.

    I wrote a override functionality for extjs selection checkboxmodel with a custom option (let's say "checkonly").
    And then in this custom selection model, we fire select events ONLY if user has clicked on "Checkbox".

    Grid view configuration wherever you need to limit selection on Checkbox only, should use this custom selection model with the "checkonly" option set to "TRUE".

    Hope this helps.

    Quote Originally Posted by Bruno13 View Post
    Dear HorseShoe61,

    I'm facing the same problem, do you found a solution ?

    Thanks a lot for your answer,

    Regards,
    Bruno

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2013
    Posts
    24

    Default

    ok thanks for these info !

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •