Oct 19, 2012, 2:25 AM
[CLOSED] DropDownField with Mode = ValueText making Value = EmptyText
Hi,
When I use a DropDownField with Mode = ValueText, the DropDownField's value is the same as the EmptyText.
Code to reproduce bellow. Just press the button.
THANKS
When I use a DropDownField with Mode = ValueText, the DropDownField's value is the same as the EmptyText.
Code to reproduce bellow. Just press the button.
THANKS
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Unnamed_DirectClick(object sender, DirectEventArgs e)
{
X.Msg.Alert(Field1.Value as string, Field1.Value as string).Show();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>DropDownField Overview - Ext.NET Examples</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:DropDownField ID="Field1" EmptyText="123" runat="server" Mode="ValueText" />
<ext:Button ID="Button1" runat="server" Text="Test" Icon="Magnifier" Scale="Medium" Width="90"
OnDirectClick="Unnamed_DirectClick" />
</form>
</body>
</html>
Last edited by Daniil; Oct 19, 2012 at 12:38 PM.
Reason: [CLOSED]