GridPanel with Checkbox Selection Model (Uncheck Problem)

  1. #1

    GridPanel with Checkbox Selection Model (Uncheck Problem)

    Hi,
    How can I uncheck selected rows in GridPanel after post process?

    I have used this example https://examples1.ext.net/#/GridPane...box_Selection/

    It wasn't worked...
            RowSelectionModel sm = this.GridPanelMK.SelectionModel.Primary as RowSelectionModel;
    
            foreach (SelectedRow row in sm.SelectedRows)
            {
                sm.DeselectRow(row.RowIndex);
            }
    Last edited by aelen; Dec 03, 2011 at 6:52 AM.
  2. #2
    Hi,

    The following code works.

    Example
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            this.CheckboxSelectionModel1.ClearSelections();
        }
    }
  3. #3
    Thank you Daniil. It's solved...

    Best regards,

Similar Threads

  1. Replies: 8
    Last Post: Dec 18, 2014, 6:35 AM
  2. Question about Checkbox Selection Model in GridPanel
    By slonati_adv in forum 2.x Help
    Replies: 0
    Last Post: Jul 12, 2012, 2:19 PM
  3. [CLOSED] GridPanel with Checkbox Selection Model
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 07, 2012, 2:37 PM
  4. Replies: 4
    Last Post: Oct 06, 2010, 9:08 AM
  5. [CLOSED] Checkbox Selection Model in GridPanel
    By egodoy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 15, 2009, 10:07 AM

Tags for this Thread

Posting Permissions