Is there anyway to set the RadComboBox into an invalid state, like RadInput? I'd like a similar rendering mode, with a little yellow warning sign, and such.
2 Answers, 1 is accepted
0
Ivana
Telerik team
answered on 07 Dec 2011, 03:42 PM
Hi Jerome,
The desired behavior is not a built-in functionality of the RadComboBox. A similar scenario, however, could be achieved with JavaScript / jQuery.
The following code-block shows such a functionality. On RadComboBox's blur it checks if there is an item which text equals the text typed in the input filed, in case such an item is not found, a caution sigh shows on its right side:
functionclientBlur(sender, args)
{
vartext = sender.get_text();
varitem = sender.findItemByText(text);
varinput = sender.get_inputDomElement();
if(item == null)
{
input.style.background = "URL('Images/caution.png') top right no-repeat";
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now