I have a row in a RadGrid that contains three buttons:
<asp:Button ID="Button1" CommandName="ExpandCollapse" CommandArgument="1" Text="Button 1" runat="server" />
<asp:Button ID="Button2" CommandName="ExpandCollapse" CommandArgument="2" Text="Button 2" runat="server" />
<asp:Button ID="Button3" CommandName="ExpandCollapse" CommandArgument="3" Text="Button 3" runat="server" />
In my code-behind, I have the following code:
protected void RadGrid_ItemCommand(object sender, GridCommandEventArgs e)
{
if ((e.CommandName == RadGrid.ExpandCollapseCommandName) && !e.Item.Expanded)
{
// Do stuff here...
}
}
When I click on a button for the first time, I have a NestedViewTemplate that gets shown. How do I keep the NestedViewTemplate open if I click a different button in the same row? For example, I click button 1 to open the NestedViewTemplate and then I click button 2 to keep the NestedViewTemplate open while showing different data.
<asp:Button ID="Button1" CommandName="ExpandCollapse" CommandArgument="1" Text="Button 1" runat="server" />
<asp:Button ID="Button2" CommandName="ExpandCollapse" CommandArgument="2" Text="Button 2" runat="server" />
<asp:Button ID="Button3" CommandName="ExpandCollapse" CommandArgument="3" Text="Button 3" runat="server" />
In my code-behind, I have the following code:
protected void RadGrid_ItemCommand(object sender, GridCommandEventArgs e)
{
if ((e.CommandName == RadGrid.ExpandCollapseCommandName) && !e.Item.Expanded)
{
// Do stuff here...
}
}
When I click on a button for the first time, I have a NestedViewTemplate that gets shown. How do I keep the NestedViewTemplate open if I click a different button in the same row? For example, I click button 1 to open the NestedViewTemplate and then I click button 2 to keep the NestedViewTemplate open while showing different data.