I have the code mentioned below:
When I try to collapse or close the opened NesteViewTemplate,it works when the CommandName is cancel and does not work when the CommandName is Save.
What could be reason behind this behaviour?
I need to close/collapse the NestedViewTemplate after saving the data.
What is worng with the code?
Below are the linkbuttons which will fire the event.
<asp:LinkButton ID="lnkBtnSave" runat="server" Text="Save" CommandName="Save"/>
<asp:LinkButton ID="lnkBtnCancel" runat="server" Text="Cancel" CommandName="Cancel"></asp:LinkButton>
if (e.CommandName == "Save")
{
e.Item.Expanded = false;
}
else if (e.CommandName == RadGrid.CancelCommandName)
{
e.Item.Expanded = false;
}
When I try to collapse or close the opened NesteViewTemplate,it works when the CommandName is cancel and does not work when the CommandName is Save.
What could be reason behind this behaviour?
I need to close/collapse the NestedViewTemplate after saving the data.
What is worng with the code?
Below are the linkbuttons which will fire the event.
<asp:LinkButton ID="lnkBtnSave" runat="server" Text="Save" CommandName="Save"/>
<asp:LinkButton ID="lnkBtnCancel" runat="server" Text="Cancel" CommandName="Cancel"></asp:LinkButton>
if (e.CommandName == "Save")
{
e.Item.Expanded = false;
}
else if (e.CommandName == RadGrid.CancelCommandName)
{
e.Item.Expanded = false;
}