Im having in issue using a hierarchy grid. In my GridTableView I have a CommandItemTemplate with an InitInsert CommantItem that works perfectly when there is data in the DetailTable and the header is showing. The problem is that I also have ShowHeadersWhenNoRecords = False for that same GridTableView.
When there is no data, it hides the headers like it should but it also hides the CommandItemTemplate so that no records can be added. This also happens when I'm using the default CommandItem instead of a CommandItemTemplate.
Is there anyway to get the CommandItemTemplate to show if there is not data, but still hide the headers? Here is a sample of my code...
When there is no data, it hides the headers like it should but it also hides the CommandItemTemplate so that no records can be added. This also happens when I'm using the default CommandItem instead of a CommandItemTemplate.
Is there anyway to get the CommandItemTemplate to show if there is not data, but still hide the headers? Here is a sample of my code...
<DetailTables> |
<telerik:GridTableView runat="server" ShowHeader="true" DataKeyNames="ChecklistId" NoDetailRecordsText="" ShowHeadersWhenNoRecords="false" |
EditMode="InPlace" Name="Checklist" CommandItemDisplay="top" Width="100%" HorizontalAlign="Right" CellPadding="0" CellSpacing="0"> |
<CommandItemTemplate> |
<asp:LinkButton ID="btnAddNew" runat="server" CommandName="InitInsert" Text="Add New Record" CssClass="gridLink" /> |
</CommandItemTemplate> |
........ |