Hi .
I have 3 control in a form ,
2 Radcombobox and a button .
the first radcombobox binded to webservice and the second bind in server side code .
both radcomboboxes have AutoPostback="true" attribute .
when I choose an item from the first combo the second bind with item that selected from the first combo .
but I have problem when I choose an item from the second combo and do post back . after post back it seems that the first combo box dose not have any item selected.
I write a custome validation in clientside code that checked the value of first combo . after second combobox post back the customevalidator return null .
I have 3 control in a form ,
2 Radcombobox and a button .
the first radcombobox binded to webservice and the second bind in server side code .
both radcomboboxes have AutoPostback="true" attribute .
when I choose an item from the first combo the second bind with item that selected from the first combo .
but I have problem when I choose an item from the second combo and do post back . after post back it seems that the first combo box dose not have any item selected.
I write a custome validation in clientside code that checked the value of first combo . after second combobox post back the customevalidator return null .
function ClientValidate_<%= this.ClientID %>(source, args) { var combo = $find("<%= ExComboControl.ClientID %>"); if (combo.get_enabled()) { args.IsValid = false; var text = combo.get_text(); if (text.length < 1) { args.IsValid = false; combo.set_emptyMessage("Please choose an Item"); } else { combo.trackChanges(); console.log(text); var node = combo.findItemByText(text); console.log(node); var inputElement = combo.get_inputDomElement(); console.log(inputElement); if (node) { args.IsValid = true args.IsValid = false; inputElement.style.color = "black"; } else { args.IsValid = false; inputElement.style.color = "#FF0000"; } } } }