Dear All!
I am quite newbie and don't know how to retreive the values on a custom UserControl in Edit mode. I have the following grid structure:
....
<MasterTableView ShowFooter="false" DataKeyNames="ID" GridLines="None" CommandItemDisplay="Top">
<Columns>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" />
<telerik:GridTemplateColumn AllowFiltering="false">
<ItemTemplate>
<asp:LinkButton runat="server" ID="btnDelete" Text="Delete" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn UniqueName="ID" DataField="ID" DataType="System.Int32" Visible="false" />
<telerik:GridBoundColumn DataField="AnswerTypeLabel" UniqueName="AnswerTypeLabel"
HeaderText="Answer Type" DataType="System.String" />
<telerik:GridBoundColumn DataField="AnswerMeasureLabel" UniqueName="AnswerMeasureLabel"
HeaderText="Measure Type" DataType="System.String" />
</Columns>
<EditFormSettings UserControlName="CustomEditControl.ascx" EditFormType="WebUserControl">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
</EditFormSettings>
</MasterTableView>
....
And I want to access to the edited GridBound and GridTemplate columns values on the Code Behind file of the UserControl file (CustomEditControl.ascx)
I am sure it's possible but don't know how.
thanks,
G.
I am quite newbie and don't know how to retreive the values on a custom UserControl in Edit mode. I have the following grid structure:
....
<MasterTableView ShowFooter="false" DataKeyNames="ID" GridLines="None" CommandItemDisplay="Top">
<Columns>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" />
<telerik:GridTemplateColumn AllowFiltering="false">
<ItemTemplate>
<asp:LinkButton runat="server" ID="btnDelete" Text="Delete" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn UniqueName="ID" DataField="ID" DataType="System.Int32" Visible="false" />
<telerik:GridBoundColumn DataField="AnswerTypeLabel" UniqueName="AnswerTypeLabel"
HeaderText="Answer Type" DataType="System.String" />
<telerik:GridBoundColumn DataField="AnswerMeasureLabel" UniqueName="AnswerMeasureLabel"
HeaderText="Measure Type" DataType="System.String" />
</Columns>
<EditFormSettings UserControlName="CustomEditControl.ascx" EditFormType="WebUserControl">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
</EditFormSettings>
</MasterTableView>
....
And I want to access to the edited GridBound and GridTemplate columns values on the Code Behind file of the UserControl file (CustomEditControl.ascx)
I am sure it's possible but don't know how.
thanks,
G.