I have a gridview with 3 levels and wants to use CommandItemTemplate in all 3.
I am using the command items depending of the mode the user is entering data (insert/update/delete)
F.eks the "Insert" button
asp:LinkButton ID="btninsert" runat="server" CommandName="PerformInsert" Visible='<%# RadGrid1.MasterTableView.IsItemInserted%>'>
<img style="border:0px" alt="" src="<%= this.TemplateSourceDirectory %>/Images/Insert.gif" />Insert Message
</asp:LinkButton>
and the delete button
<asp:LinkButton ID="LinkButton1" runat="server" Visible='<%#RadGrid1.EditIndexes.Count == 0 && !RadGrid1.MasterTableView.IsItemInserted%>'
OnClientClick="javascript:return confirm('Delete this Message?')" CommandName="DeleteSelected"><img style="border:0px" alt=""
src="<%= this.TemplateSourceDirectory %>/Images/Delete.gif" /> Delete Message
</asp:LinkButton>
The problem is the visible code asking if MasterTableView is in insert mode. I need the the possibility to ask if the child is in insert mode.
any suggestion ?
thx Torben