I have the DevExpress controls within update panel and I need to clear selection on all of them from server side. Like DdlDropDownList.ClearSelection();
but in DevExpress simple actions are handled differently.
ASPxComboBox
ASPxDateEdit
ASPxTextBox
Does anyone know the best implementation of required functionality.
Best Answer
Try setting the Value property of those controls to null.
Here's the documentation for those 3 controls:
http://documentation.devexpress.com/#AspNet/clsDevExpressWebASPxEditorsASPxComboBoxtopic
http://documentation.devexpress.com/#AspNet/clsDevExpressWebASPxEditorsASPxDateEdittopic
http://documentation.devexpress.com/#AspNet/clsDevExpressWebASPxEditorsASPxTextBoxtopic
Here's a sample that worked for me with version 9.2. The "Clears" button clears the editor while the "Doesn't Clear" button doesn't.