I am using a RadGrid that is bound to an objectdatasource. There is no special databinding. I have a GridClientSelectColumn and turend on AllowRowSelect = true, and AllowMultirowSelect = true
I have a button on the page that attempts to loop thru the selectedItems of the gird, but the SelecteItems.Count is always ZERO. Why?
<telerik:RadGrid Visible="true" runat="Server" ID="gridTest" |
AllowSorting="True" Skin="Web20" |
DataSourceID="odsAcceptedOpenItems" GridLines="None" Width="98%" AutoGenerateColumns="false" |
AllowMultiRowSelection="true" EnableViewState="true"> |
<ClientSettings EnableRowHoverStyle="True" EnablePostBackOnRowClick="true"> |
<Scrolling AllowScroll="True" UseStaticHeaders="True" /> |
<Selecting AllowRowSelect="True" /> |
</ClientSettings> |
<MasterTableView TableLayout="Fixed" DataKeyNames="Id" Name="Items" GridLines="Horizontal" |
DataSourceID="odsAcceptedOpenItems"> |
<Columns> |
<telerik:GridClientSelectColumn HeaderStyle-Width="25px" UniqueName="colSelect" Visible="false" /> |
<telerik:GridBoundColumn DataField="ProductName" HeaderText="Product" SortExpression="ProductName" /> |
</Columns> |
</MasterTableView> |
</telerik:RadGrid> |
Thanks!
Debbie