I have a RADGrid with update capability-the INSERT and UPDATE done through a user control. I have a pair of checkboxes on the main form which affect the processing. How do I pass the values of these checkboxes into the user control (or access them from the user control code behind)?
2 Answers, 1 is accepted
0
Martin
Telerik team
answered on 23 May 2011, 01:01 PM
Hello Marianne Seggerman,
You can use the Page property of the user control to access the Web page that holds the grid instance:
MyPageClassName myPage = this.Page;
For more information about WebUserControl editing please review this help article:
<asp:ButtonID="btnUpdate"Text="Update"CommandName="Update"Visible='<%# Not (TypeOf DataItem Is Telerik.Web.UI.GridInsertionObject) %>' runat="server" />
<asp:ButtonID="btnInsert"Text="Insert"CommandName="PerformInsert"Visible='<%# (TypeOf DataItem Is Telerik.Web.UI.GridInsertionObject) %>' runat="server" />