[CLOSED] GridPanel multiselect rows (CheckboxSelectionModel)

  1. #1

    [CLOSED] GridPanel multiselect rows (CheckboxSelectionModel)

    Hi, how to access the values ​​but not JSON. I would like to access using something like: (I just need to know how to access values​​)
    ...
     RowSelectionModel sm = this.GridPanel1.SelectionModel.Primary as RowSelectionModel;
    
                foreach (SelectedRow row in sm.SelectedRows)
                {
                    
                    result.Append("<li>" + row.RecordID + "</li>");
                    //but how do I get the column values
                }
    ...
    Last edited by Daniil; Sep 19, 2011 at 6:24 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Only record id and index are submitted automatically.

    If you need values, please send the, manually as an extra parameter.
  3. #3
  4. #4
    the difference between RecordID and RowIndex? Even though I'm changing the ordering of them which never changes (or RowIndex RecordID)? Well, I can take my Store by any Index.
  5. #5
    the difference between RecordID and RowIndex?
    RecordID is record id
    RowIndex is record index (index in the store)

    Even though I'm changing the ordering of them which never changes (or RowIndex RecordID)?
    Sorry, I did not understand. Can you provide more details about what you mean?
  6. #6
    you have a response to my question ("index in the store"). I tried to access the Store.DataSource after postback but it was null. Is there any way I can access the Store.DataSource?
  7. #7
    Store doesn't submit own data automatically
    You have to submit it manually or get from server storage (DB, file or etc)

Similar Threads

  1. Replies: 4
    Last Post: May 09, 2012, 9:24 PM
  2. [CLOSED] GridPanel.Rows.Changing Background Color of Rows
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 01, 2012, 5:18 PM
  3. [CLOSED] GridPanel multiselect rows (CheckboxSelectionModel)
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 02, 2011, 6:03 PM
  4. [CLOSED] GridPanel multiselect rows
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Aug 29, 2011, 2:05 PM
  5. [CLOSED] Deactivate Rows in a CheckBoxSelectionModel
    By macap in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 19, 2010, 9:26 AM

Posting Permissions