Hello,
I'm using the RadTabStrip and RadMultiPage combo with the multipage having the RenderSelectedPageOnly property set to true. In the current page, the page has a JavaScript method that is the client validation function for a CustomValidator control. For some reason, when this property is true, that function can't be found. But with this property as false, the page works as expected; the client validation function runs when the form is being submitted. The JS function is in the content of the RadPageView that's displayed. It looks something like this:
<tel:RadPageView runat="server">
.. form ..
<asp:CustomValidator runat="server" .. ClientValidationFunction="cv_Val" />
<tel:RadScriptBlock runat="server">
<script type="text/javascript">
function cv_Val(sender, e) {
//Function for client validation
}
</script>
</tel:RadScriptBlock>
</tel:RadPageView>
With RenderSelectedPageOnly to true, it says cv_Val does not exist. Why is that? What would be causing the error?
Thanks.
I'm using the RadTabStrip and RadMultiPage combo with the multipage having the RenderSelectedPageOnly property set to true. In the current page, the page has a JavaScript method that is the client validation function for a CustomValidator control. For some reason, when this property is true, that function can't be found. But with this property as false, the page works as expected; the client validation function runs when the form is being submitted. The JS function is in the content of the RadPageView that's displayed. It looks something like this:
<tel:RadPageView runat="server">
.. form ..
<asp:CustomValidator runat="server" .. ClientValidationFunction="cv_Val" />
<tel:RadScriptBlock runat="server">
<script type="text/javascript">
function cv_Val(sender, e) {
//Function for client validation
}
</script>
</tel:RadScriptBlock>
</tel:RadPageView>
With RenderSelectedPageOnly to true, it says cv_Val does not exist. Why is that? What would be causing the error?
Thanks.