Hey Telerik community!
First off, I've done a lot of research on this topic. Seems I'm not the only one having trouble getting things to work inside a NestedViewTemplate. But all the posts I read dealt with having another RadGrid inside a NestedViewTemplate. My situation is a little different...
Problem
I have my own custom user control. It's very simple. If I put it INSIDE the NestedViewTemplate the postbacks don't work. If I put it OUTSIDE it works as expected.
Attached are some screen shots.
Here is the code for the simple user control:
ascx:
code behind:
So my question is this:
How do I get that postback to actually do something, when it's inside the NestedViewTemplate?
-Josh
First off, I've done a lot of research on this topic. Seems I'm not the only one having trouble getting things to work inside a NestedViewTemplate. But all the posts I read dealt with having another RadGrid inside a NestedViewTemplate. My situation is a little different...
Problem
I have my own custom user control. It's very simple. If I put it INSIDE the NestedViewTemplate the postbacks don't work. If I put it OUTSIDE it works as expected.
Attached are some screen shots.
Here is the code for the simple user control:
ascx:
<
telerik:RadTextBox
OnTextChanged
=
"First_Name_TextChanged"
ID
=
"tb_first_name"
Width
=
"120px"
runat
=
"server" AutoPostBack="True"
/>
protected
void
First_Name_TextChanged(
object
sender, System.EventArgs e)
{
if
(!
string
.IsNullOrEmpty(tb_first_name.Text))
{
Profile.SetPropertyValue(
"profile_first"
, tb_first_name.Text);
Profile.Save();
ico_first_name.Text = CHECK_ICON;
}
}
So my question is this:
How do I get that postback to actually do something, when it's inside the NestedViewTemplate?
-Josh