May 09, 2012, 2:51 PM
[CLOSED] Date format property set twice when creating Date Picker Menu
Hi,
The following code works
The following code works
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<head>
<title>Ext.Net Example</title>
</head>
<body>
<ext:ResourceManager runat="server" Theme="Gray" />
<ext:Button runat="server" Text="Menu">
<Menu>
<ext:DateMenu runat="server">
<Picker runat="server" />
</ext:DateMenu>
</Menu>
</ext:Button>
</body>
</html>
But, if you see the output that is generated, it sets the format inside the pickerConfig twice.Ext.net.ResourceMgr.init({
id: "ctl00",
theme: "gray"
});
Ext.onReady(function () {
Ext.create("Ext.button.Button", {
id: "ctl01",
renderTo: "App.ctl01_Container",
menu: {
xtype: "datemenu",
pickerConfig: {
xtype: "datepicker",
disabledDaysText: "Disabled",
format: "n/j/Y",
format: "l, F d, Y"
}
},
text: "Menu"
});
});
Last edited by Daniil; May 09, 2012 at 4:29 PM.
Reason: [CLOSED]