Hi,
I have a RadGrid inside a AjaxPanel. On View Click, am hiding the grid and showing another div. I have back button inside that div and on click of that, am showing the grid back. But when showing the grid, the add new record is not showing up. Tried setting the ShowAddNewRecordButton to true while changing the visibility of the grid. Still it is not showing up. Any pointers why is the add record button is not showing ?
<div id="div1">
<asp:Button ID="BackButton" Text="Back"runat="server" OnClick="BackButton_Click" />
</div>
<div id="div2">
<telerik:RadGrid ID="Grid"
runat="server"
AllowSorting="True"
AllowPaging="True"
ShowFooter="True"
ShowStatusBar="True"
AutoGenerateColumns="False"
AllowAutomaticDeletes="True"
AllowAutomaticInserts="True"
AllowAutomaticUpdates="True"
OnInsertCommand="Grid_CreateCommand"
OnUpdateCommand="Grid_UpdateCommand"
OnNeedDataSource="Grid_NeedDataSource"
OnItemDataBound="Grid_ItemDataBound"
OnItemCreated="Grid_ItemCreated"
OnItemCommand="Grid_ItemCommand" >
<MasterTableView EditMode="EditForms" DataKeyNames="RecordID" CommandItemDisplay="Top">
<Columns>
<telerik:GridButtonColumn ButtonType="LinkButton" Text="View" CommandName="View" UniqueName="View" />
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="Edit" />
<telerik:GridBoundColumn UniqueName="Date" HeaderText="Date" DataField="Date" DataFormatString="{0:MM/dd/yyyy}"/>
<telerik:GridBoundColumn UniqueName="Type" HeaderText="Code" DataField="Type"/>
</Columns>
<CommandItemSettings AddNewRecordText="Add New Record" />
<EditFormSettings
InsertCaption="Add New Record"
CaptionFormatString="Edit Record"
PopUpSettings-Modal="true"
EditFormType="WebUserControl"
UserControlName="~/EditDetailUserControl.ascx">
</EditFormSettings>
</MasterTableView>
<ClientSettings>
<ClientEvents OnCommand="RaiseCommand" />
</ClientSettings>
</telerik:RadGrid>
<div>