This is a migrated thread and some comments may be shown as answers.

Change behavior of GridClientSelectColumn

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RB
Top achievements
Rank 1
RB asked on 08 Jul 2014, 10:12 PM
I have a RadGrid as follows:

this._RadGrid1.AllowSorting = true;           
 this._RadGrid1.MasterTableView.AllowNaturalSort = true;          
 
 this._RadGrid1.MasterTableView.DataKeyNames = new string[] { this._PriceDealProductBanTable.PriceDealEntityProductItemIdColumn.ColumnName };
 this._RadGrid1.MasterTableView.ClientDataKeyNames = new string[] { this._PriceDealProductBanTable.PriceDealEntityProductItemIdColumn.ColumnName };                                            
 this._RadGrid1.EnableLinqExpressions = false;         
 
 this._RadGrid1.MasterTableView.NoMasterRecordsText = "No Products found.";
 this._RadGrid1.MasterTableView.Width = Unit.Percentage(100);
  
 this._RadGrid1.ClientSettings.Selecting.AllowRowSelect = true;
 this._RadGrid1.AllowMultiRowSelection = true;
  
  
 this._RadGrid1.NeedDataSource += RadGrid1_NeedDataSource;
 this._RadGrid1.ItemDataBound += RadGrid1_ItemDataBound;
 
 GridBoundColumn boundColumn = new GridBoundColumn();
 string columnName;
 
 #region RadGrid Columns
 GridClientSelectColumn selectAll = new GridClientSelectColumn();
 selectAll.UniqueName = "SelectOne";
 this._RadGrid1.MasterTableView.Columns.Add(selectAll);

the GridClientSelectColumn allows multiple selection, but clicking on a row de-selects all other rows.  I want the all rows to stay selected unless manually de-selected from the checkbox. How can I achieve this?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Jul 2014, 03:25 AM
Hi,

Please set the UseClientSelectColumnOnly property to select the column using only the checkbox.

C#:
_RadGrid1.ClientSettings.Selecting.UseClientSelectColumnOnly = true;

Thanks,
Princy
Tags
Grid
Asked by
RB
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or