Code to reproduce (just place in any .ASPX page):
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel runat="server" ID="updPanel">
<ContentTemplate>
<devex:ASPxComboBox runat="server" ID="cbxTest" ClientInstanceName="ciTest" ValueType="System.Int32">
<Items>
<devex:ListEditItem Text="First" Value="23" />
<devex:ListEditItem Text="Second" Selected="true" Value="45" />
<devex:ListEditItem Text="Third" Value="67"/>
</Items>
</devex:ASPxComboBox>
<a href="javascript:ciTest.SetSelectedIndex(-1);">Reset</a>
<asp:Button runat="server" Text="Postback" />
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
Steps to Reproduce:
- Open page; The second item is selected [correct]
- Select any other item; press "Postback". The new value stays after the postback [correct]
- Press "Reset". The combobox clears [correct]
- Press "Postback". The combobox has reset to the value selected in step 2. [incorrect]
Actual Results:
Combobox cannot be reset to empty on client side. Any postback causes the previous value to reappear.
Expected Results:
After being reset to empty on client side, combobox stays empty even after postbacks. SelectedIndex is -1 and Value is null.
Hi,
Thank you for the report. I've tried to reproduce this problem using the latest Suite version (10.2.4) but failed. Please install the same Suite version, upgrade your application as it is explained in the Upgrade Notes topic and check how your application works. Please keep us informed of your results.
Thanks,
Plato