This is a migrated thread and some comments may be shown as answers.

Apply button CausesValidation = true

1 Answer 72 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Barbaros Saglamtimur
Top achievements
Rank 1
Barbaros Saglamtimur asked on 06 Jun 2011, 11:32 AM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Mira
Telerik team
answered on 09 Jun 2011, 08:20 AM
Hello,

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.

Regards,
Mira
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.

Tags
Filter
Asked by
Barbaros Saglamtimur
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or