Apply button CausesValidation = true

2 posts, 1 answers
  1. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 06 Jun 2011 Link to this post

    I have developed my own filter editor with validation included. But I couldn't figure it out how to set CausesValidation property of Apply button. Any thoughts?

    Thanks in advance.
  2. Answer
    Mira avatar
    1124 posts

    Posted 09 Jun 2011 Link to this post


    Please use the following code on PreRender of the filter to access the apply button:
    protected void RadFilter1_PreRender(object sender, EventArgs e)
        Button applyButton = RadFilter1.Controls[RadFilter1.Controls.Count - 2] as Button;

    I hope this helps.

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top