I have a page where I am using a NestedViewTemplate with a RadTabStrip, RadMultiPage, and two RadPageViews.
I have labels in RadPageView2 that I would like to get the text from in my code behind, so I can convert their values to integers to calculate in a formula that will then update another label's text in the same PageView. My questions are:
1. How can I get the text value of a label in my codebehind where the label resides in my second PageView?
2. How do I update the text value of a label in my second PageView from my codebehind?
A non working example of what I was trying is the following:
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
if (e.Tab.Text.Equals("Tab Text"))
{
e.Tab.PageView.FindControl("myLabel").Text = "Created from Code Behind";
}
}
Kind regards,
Ben
I have labels in RadPageView2 that I would like to get the text from in my code behind, so I can convert their values to integers to calculate in a formula that will then update another label's text in the same PageView. My questions are:
1. How can I get the text value of a label in my codebehind where the label resides in my second PageView?
2. How do I update the text value of a label in my second PageView from my codebehind?
A non working example of what I was trying is the following:
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
if (e.Tab.Text.Equals("Tab Text"))
{
e.Tab.PageView.FindControl("myLabel").Text = "Created from Code Behind";
}
}
Kind regards,
Ben