We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GenericDropdown with TreeView Control with Validation control

Thread ID:





57378 Mar 2,2007 02:58 PM UTC Mar 5,2007 05:46 PM UTC ASP.NET Web Forms (Classic) 4
Tags: Tools
Administrator [Syncfusion]
Asked On March 2, 2007 02:58 PM UTC


I would like to use RequiredFieldValidator with the GenericDropDown with TreeView Combo control.
In the RequiredFieldValidator, under the "control To Validate" property, I don't see my the GenericDropDown with TreeView Combo control name. I am dynamically filling the control tree.

Any help would be great!!


Gokul B [Syncfusion]
Replied On March 3, 2007 02:34 AM UTC

Hi Rekha,

We are not clear in your query. We thought you are trying to validate the GenericDropDown using RequiredFieldValidator. If so, You cannot use all Web Form controls(not only Syncfusion controls) in conjunction with the validator controls other than textbox control. If this not a case could please update us with more information. It will helps us further investigation.

Let us know if you have any other queries.

Thanks for using Sycnfusion products.


Administrator [Syncfusion]
Replied On March 3, 2007 02:51 PM UTC

Hi Gokulkumar,

I have used RequiredFieldValidator with the dropdownlist control in ASP.NET pages and it works. I was wondering why the GenericDropDown control value is not shown under the controlToValidate property?

Is there anyother way to validate if not use javascript?


Valli [Syncfusion]
Replied On March 5, 2007 10:07 AM UTC

Hi Monica,

The RequiredField Validator functionality is not applicable to the 'GenericDropDown' control at present. I have filed a feature request which enables the 'RequiredField Validation' for the GenericDropDown control.

Meanwhile the below link is a work around sample, in which the 'RequiredField Validation' functionality is achieved through the javascript codings.


Please try running the sample and let me know if this helps you.


Administrator [Syncfusion]
Replied On March 5, 2007 05:46 PM UTC


Thanks for the update and alternate solution.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon