Questions regarding GetCheckedRows

3 replies. Last post: February 22, 2010 10:20 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
T LusbyMember

 I have the following attributes selected in LayoutSettings:

<LayoutSettings AllowAddNew="No" AllowColumnSizing="Yes" AllowColumnMove="Yes" AllowDelete="No" AllowEdit="Yes" AllowExport="Yes" AllowFilter="Yes" AllowGrouping="No" AllowSelectColumns="Yes" AllowSorting="Yes" GridLineColor="#CCCCCC" GridLines="Both" GridLineStyle="Solid" PagingMode="ClassicPaging" PagingSize="500" AllowBatchUpdate="true" PagingStyleUI="FirstPrevNextLast" AllowMultipleSelection="Yes" GroupByBoxVisible="false" HeaderClickAction="SortMulti" VerboseEditingInformation="true" NewRowLostFocusAction="AlwaysUpdate" FocusNewRowOnLastCell="true" AllowColumnFreezing="Yes" ApplyFiltersKey="Enter" EditOnClick="True" AutoHeight="false" AutoWidth="false" AutoFilterSuggestion="true" PagingExportMode="ExportAllData" ShowFilterStatus="true" InProgressUIBehavior="ChangeCursorToHourGlass" ColumnFooters="Yes" HeaderWrapDefault="true" ColumnFooterAggregateMode="CalculateAllData" ShowColumnAction="true" PersistRowChecker="True">

 

My first column in the grid is a RowChecker. 

<ISWebGrid:WebGridColumn AllowGrouping="No" AllowSizing="No" AllowSorting="No" Bound="False" ColumnType="CheckBox" EditType="NoEdit" IsRowChecker="True" Name="RowChecker" ShowInSelectColumns="No" Width="25px">

</ISWebGrid:WebGridColumn>

My problem is I need the ability to get the checked rows when the RowChecker is selected AND the ability to multi-select rows.  I notice that if I have the AllowMultiselection = "No" then I can get the number of rows selected by the GetCheckedRows().  If AllowMultiselection = "Yes" then I cannot see the count of rows are selected.  If I use Cntrol+Shift and select the rows I can then get the selected rows.

I need the ability to do both.  I need the ability to RowCheck and get the count and get have the ability to multi-select rows.

 

 

All times are GMT -5. The time now is 1:44 AM.
Previous Next