I used your TabStrip > Application Scenarios > LoadOnDemand example. I have a grid with an item_command that is being fired by a button in a user control, but the item command is never firing. How do I fix this?
User Control:
User Control:
<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowSorting="true" |
ShowStatusBar="true" PageSize="25" AllowPaging="True" AutoGenerateColumns="False" |
AllowMultiRowSelection="false" OnPreRender="RadGrid1_PreRender" OnItemCommand="RadGrid1_ItemCommand"> |
<PagerStyle Mode="NextPrevAndNumeric" /> |
<MasterTableView Width="100%" HorizontalAlign="NotSet" AutoGenerateColumns="False" DataKeyNames="ID"> |
<Columns> |
<telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false" /> |
<telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/images/icon_page_magnify.gif" HeaderText="Select" UniqueName="Select" CommandName="Select" ItemStyle-Width="18px" ItemStyle-CssClass="cursorPointer" /> |
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) |
{ |
if (e.CommandName.ToUpper() == "SELECT") |
{ |
int iID = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"]); |
DisplayDetails(iID); |
} |
} |