My problem is, I believe simple. I want to be able to acces some texboxes that are included in a nestedviewtemplate of a grid hierarchy.
The template includes a formview, which includes a tabstrip whose pages will have the textboxes. These textboxes will be in read only mode until an "edit" button - also part of the pageview - is clicked. At that time, I want to turn all textboxes to be editable (readOnly=false) and be able to access the their values. After clicking on a save button, which will be made visible at that time, then the values will be saved to the database via web services.
Anyway, the main grid I have is the following, simplified for clarity:
So how can I access the textboxes as well as any other controls I may embed inside the TabStrip's PageViews from my template once I click on the edit button?
Thanks
Sal
The template includes a formview, which includes a tabstrip whose pages will have the textboxes. These textboxes will be in read only mode until an "edit" button - also part of the pageview - is clicked. At that time, I want to turn all textboxes to be editable (readOnly=false) and be able to access the their values. After clicking on a save button, which will be made visible at that time, then the values will be saved to the database via web services.
Anyway, the main grid I have is the following, simplified for clarity:
<
telerik:RadGrid
ID
=
"OrbitRadGrid"
runat
=
"server"
>
<
MasterTableView
>
<
NestedViewTemplate
>
<
asp:FormView
ID
=
"FormView"
runat
=
"server"
ViewStateMode
=
"Enabled"
DataSourceID
=
"ObjectDataSource1"
>
<
ItemTemplate
>
<
asp:Panel
ID
=
"NestedViewPanel"
runat
=
"server"
CssClass
=
"viewWrap"
Width
=
"1000px"
>
<
telerik:RadTabStrip
runat
=
"server"
ID
=
"TabStip"
MultiPageID
=
"Multipage"
SelectedIndex
=
"0"
>
<
Tabs
>
<
telerik:RadTab
runat
=
"server"
Text
=
"General"
PageViewID
=
"General"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Status"
PageViewID
=
"Status"
/>
</
Tabs
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
runat
=
"server"
ID
=
"Multipage"
SelectedIndex
=
"0"
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"Genearal"
>
<
ul
style
=
"padding-left: 30px; padding-top: 3px; padding-bottom: 3px"
>
<
li
>
<
telerik:RadTextBox
ID
=
"NameTextBox"
Text='<%# Eval("ItemName") %>'
Label="Name:" LabelCssClass="InfoLabelsClass"
ReadOnly="true" runat="server">
</
telerik:RadTextBox
>
</
li
>
<
li
>
<
telerik:RadTextBox
ID
=
"SourceTextBox"
Text='<%# Eval("ItemSource") %>'
Label="Source:" LabelCssClass="InfoLabelsClass"
ReadOnly="true" runat="server">
</
telerik:RadTextBox
>
</
li
>
.......
.......
</
Telerik:RadMultiPage
>
<
asp:Button
runat
=
"server"
ID
=
"EditBtn"
Text
=
"Edit"
></
asp:Button
>
</
asp:Panel
>
</
ItemTemplate
>
</
asp:FormView
>
</
NestedViewTemplate
>
........
........
So how can I access the textboxes as well as any other controls I may embed inside the TabStrip's PageViews from my template once I click on the edit button?
Thanks
Sal