Results 1 to 5 of 5

Thread: Grid selModel

  1. #1
    Sencha User
    Join Date
    Nov 2016
    Posts
    17
    Answers
    2
    Vote Rating
    0
      0  

    Default Answered: Grid selModel

    Hello,

    I need to reconfigure grid with

    selModel: {
    selType: 'checkboxmodel'
    }

    How can I do this? Thanks.

  2. You just need to configure it in the selectable prop.


  3. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,565
    Answers
    163
    Vote Rating
    81
      1  

    Default

    You just need to configure it in the selectable prop.

    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  4. #3
    Sencha User
    Join Date
    Nov 2016
    Posts
    17
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Hello! Thank you very much, it works, but how can I make multi selectable grid? I try to configure it with {{checkbox: true, mode: "multi"}}, but nothing happens. All the same, I can get only last selection with grid.getSelection();

  5. #4
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,565
    Answers
    163
    Vote Rating
    81
      1  

    Default

    Setting checkbox: true is already multi-select mode, so you won't see any difference by setting the mode as you did. Also, grid.getSelection() is not a public method. You should use the available methods from the selection model instance: http://docs.sencha.com/extreact/6.5....electedRecords

    See fiddle above for example.
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  6. #5
    Sencha User
    Join Date
    Nov 2016
    Posts
    17
    Answers
    2
    Vote Rating
    0
      0  

    Default

    Thank you!

Similar Threads

  1. Replies: 4
    Last Post: 23 Jan 2017, 8:35 PM
  2. Using selModel with Grid Panels
    By deepak.marur in forum Ext: Discussion
    Replies: 4
    Last Post: 2 Apr 2013, 5:05 AM
  3. [4.0.2a] Grid selModel and Editing Bug
    By ebread in forum Ext:Bugs
    Replies: 2
    Last Post: 24 Oct 2011, 1:43 AM
  4. Replies: 0
    Last Post: 25 Apr 2011, 3:08 PM
  5. SelModel option for grid.reconfigure
    By scottmartin in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 13 Jan 2011, 3:35 PM

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
  •