I have a Radgrid(ASP.NET Ajax) with MasterTable and DetailTables.
I have given CommandItemTemplate in MasterTableView. Below is just the part of my code.
<telerik:RadGrid runat="server" ID="rgSurvey" AutoGenerateColumns="false" ShowStatusBar="true"
AllowAutomaticInserts="false" Skin="Outlook" OnItemCommand="rgSurvey_ItemCommand"
OnPreRender="rgSurvey_PreRender">
<MasterTableView DataKeyNames="SurveyID" SkinID="Outlook" Width="100%" CommandItemDisplay="Top"
Name="Survey">
<DetailTables>
<telerik:GridRelationFields DetailKeyField="SurveyID" MasterKeyField="SurveyID" />
</ParentTableRelation>
<CommandItemTemplate>
<asp:LinkButton ID="lnkAddstaff" runat="server" Text="Add Staff to Survey" CommandName="Popup"></asp:LinkButton>
</CommandItemTemplate>
</telerik:GridTableView>
</DetailTables>
<CommandItemTemplate>
<asp:LinkButton ID="lnkAdd" runat="server" Text="ADD" CommandName="Insert"></asp:LinkButton>
</CommandItemTemplate>
The CommandItemTemplate [CommandName="Insert"] inside the MAsterTableView is not working.. But the CommandItemTemplate inside DetailTables is working. Not sure why this is happening.
We have a asp.net Master page and Content page(Default.aspx). When using the RadGrid without a master page its working fine.
Are they any known issues when using RadGrid and MAsterTableView inside an asp.net Content page?
Regards,
Dayanithy