Results 1 to 1 of 1

Thread: Ext.grid.CheckboxSelectionModel and the selectionchange event

  1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    4
    Vote Rating
    0
      0  

    Default Ext.grid.CheckboxSelectionModel and the selectionchange event

    Hello everyone,

    I couldn't find anything inside the forum that adresses my problem.
    Things are looking like this:
    - i have a grid bound to an Ext.data.JsonStore
    - the grid selection model uses the checkbox implementation
    - the selectionchange event handles stuff (it reloads another store based on this grid selection)
    - singleSelect is false
    - the checkbox column is generated like in the sample (the grid plugins one)

    The problem:
    - upon selecting the header checkbox for the checkbox column the selectionchange event gets triggered for each row this way making my other store reload pageSize times(bbar config)
    - if i mess up with the selectionchange event for this case, it gets ugly when doing simple selections by using row rendered checkboxes

    I have attached a possible solution to this problem.
    Please be so kind and consult it and maybe you could come up with a better solution. I personally like to keep Ext clean even when it comes to overrides, but i wasn't able to find a better way.

    -Bogdan
    Attached Files Attached Files

Similar Threads

  1. Replies: 1
    Last Post: 7 Dec 2007, 1:00 AM
  2. Replies: 1
    Last Post: 10 Sep 2007, 12:43 AM
  3. JsonView - selectionchange event
    By sardaykin in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 5 Sep 2007, 11:50 PM

Posting Permissions

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