I have a user control that is displayed via the content template of RadWindow .
The user control has a textbox with a requiredFieldValidator that doesnt get fired on client side when a button is clicked in the same user control.
Sample code:
This happens when i make the an partial postback using ajax rather than a complete postback.
The user control has a textbox with a requiredFieldValidator that doesnt get fired on client side when a button is clicked in the same user control.
Sample code:
<
telerik:RadWindow
ID
=
"sample"
runat
=
"server"
Title
=
"My Sample"
Modal
=
"true"
Width
=
"800px"
Height
=
"720px"
>
<
ContentTemplate
>
<
UC1:Sample
runat
=
"server"
ID
=
"sampleControl"
/>
</
ContentTemplate
>
</
telerik:RadWindow
>
-- User control contents --
<
div
>
<
telerik:RadTextBox
ID
=
"txtTest"
runat
=
"server"
CausesValidation
=
"true"
/>
<
asp:RequiredFieldValidator
ID
=
"rfv"
ControlToValidate
=
"txtTest"
runat
=
"server"
Display
=
"Dynamic"
ErrorMessage
=
"*"
Text
=
"*"
/>
</
div
>
<
telerik:RadButton
ID
=
"radButton"
runat
=
"server"
Text
=
"Click me"
CausesValidation
=
"true"
/>
This happens when i make the an partial postback using ajax rather than a complete postback.