[CLOSED] CheckboxSelection model from codebehind --> Check all checkbox in header

  1. #1

    [CLOSED] CheckboxSelection model from codebehind --> Check all checkbox in header

    Hi,

    When checking all checkboxes in a grid from codebehind like this:

     RowSelectionModel sm = gpUitrusting.SelectionModel.Primary as RowSelectionModel;
                        foreach (DataRow dr in dtCheckedUitrusting.Rows) sm.SelectedRows.Add(new SelectedRow(Conversie.ToString(dr["nUitrustingid"])));
    The "check all" checkbox in the header stays unchecked when i'm in a situation that all rows are check. Is there a way to accomplish that ? (it works clientside)

    Martin
    Last edited by Daniil; Feb 07, 2011 at 2:49 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I would suggest you to use CheckboxSelectionModel's .SelectAll() method. It works fine.

    Example
    (this.GridPanel1.GetSelectionModel() as CheckboxSelectionModel).SelectAll();
    Could you provide testable sample reproducing the issue? Header checks must be checked also where all rows checkboxes are checked.

Similar Threads

  1. Replies: 11
    Last Post: Mar 14, 2012, 10:12 AM
  2. [CLOSED] CheckboxSelection model - select a row from codebehind
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 07, 2011, 9:24 AM
  3. CheckboxSelection Model Event
    By BLOZZY in forum 1.x Help
    Replies: 2
    Last Post: Sep 07, 2010, 7:40 AM
  4. Replies: 2
    Last Post: Mar 21, 2010, 1:18 PM
  5. [CLOSED] CheckBoxSelection model
    By jwaite in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 17, 2010, 7:33 AM

Posting Permissions