I have a radgrid that 1. I cannot highlight the row on clicking and 2. the selectedindexchanged event does not fire. The grid sits inside an update panel and is loaded when a user select a value from a combo box, which is passed as a parameter to a stored procedure. The grid load without problem, but as mentioned once loaded I cannot click on the row and highlight the row and the selectedindexchanged event does not fire. Below is the grid settings. I have also tried to add the following code on the page load, but this has not helped.
this.grdItems.ClientSettings.EnablePostBackOnRowClick = true;
this.grdItems.ClientSettings.Selecting.AllowRowSelect = true;
Any suggestions?
<telerik:RadGrid ID="grdItems" runat="server" CellSpacing="0"
DataSourceID="SqlDataSource1" GridLines="None" Height="400px"
AccessKeySkin="Office2010Black"
onselectedindexchanged="grdItems_SelectedIndexChanged"
Skin="Office2010Black">
<clientsettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<ClientEvents OnRowSelected="RowSelected" />
<selecting AllowRowSelect="True" />
</clientsettings>
<mastertableview allowpaging="True" autogeneratecolumns="False"
datakeynames="ID" datasourceid="SqlDataSource1" pagesize="14">
<Columns>
<telerik:GridBoundColumn DataField="ID" DataType="System.Int32" Display="False"
FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True"
SortExpression="ID" UniqueName="ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="HoseID"
FilterControlAltText="Filter HoseID column" HeaderText="Hose ID"
ReadOnly="True" SortExpression="HoseID" UniqueName="HoseID">
<HeaderStyle Font-Bold="True" Font-Size="Larger" />
</telerik:GridBoundColumn>
</Columns>
</mastertableview>
</telerik:RadGrid>
this.grdItems.ClientSettings.EnablePostBackOnRowClick = true;
this.grdItems.ClientSettings.Selecting.AllowRowSelect = true;
Any suggestions?
<telerik:RadGrid ID="grdItems" runat="server" CellSpacing="0"
DataSourceID="SqlDataSource1" GridLines="None" Height="400px"
AccessKeySkin="Office2010Black"
onselectedindexchanged="grdItems_SelectedIndexChanged"
Skin="Office2010Black">
<clientsettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<ClientEvents OnRowSelected="RowSelected" />
<selecting AllowRowSelect="True" />
</clientsettings>
<mastertableview allowpaging="True" autogeneratecolumns="False"
datakeynames="ID" datasourceid="SqlDataSource1" pagesize="14">
<Columns>
<telerik:GridBoundColumn DataField="ID" DataType="System.Int32" Display="False"
FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True"
SortExpression="ID" UniqueName="ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="HoseID"
FilterControlAltText="Filter HoseID column" HeaderText="Hose ID"
ReadOnly="True" SortExpression="HoseID" UniqueName="HoseID">
<HeaderStyle Font-Bold="True" Font-Size="Larger" />
</telerik:GridBoundColumn>
</Columns>
</mastertableview>
</telerik:RadGrid>