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

[Solved] RadComboBox in a user control with the AllowCustomText property setracters

1 Answer 85 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 23 Oct 2009, 06:36 PM
Hi all,

Currently, I have a combo box in a user control where the AllowCustomText property is set to true so that I can perform LoadOnDemand.  However, I have an issue with preventing special characters from being entered.  I looked at the article: http://www.telerik.com/help/aspnet-ajax/combo-prevent-typing-particular-characters.html.  Unfortunately, I have been having a difficult time trying to implement the suggestions in the article.  I tried to use the ClientScript methods from the page (ClientScript.RegisterClientStartupScript, etc) but to no avail.  

In addition, I tried to append to the page's onload with the following code snippet

Format Code Block(
if (window.addEventListener){
window.addEventListener('onload', 'someFunction', false);
}
else if (window.attachEvent){
window.attachEvent('onload', 'someFunction');
}
)

Also, I tried it with and without the quotes for someFunction.

Does anyone out there have any suggestions?

Thanks,

Ron

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 28 Oct 2009, 04:31 PM
Hi Ron,

Please use the pageLoad() method as shown in the help topic. This will ensure that all the scripts are loaded and the client methods will work.

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Ron
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or