PDA

View Full Version : [CLOSED] Date format property set twice when creating Date Picker Menu



anup
May 09, 2012, 2:51 PM
Hi,

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"
});
});

Daniil
May 09, 2012, 4:00 PM
Hi,

Thanks for the report. We are investigating.

Daniil
May 09, 2012, 4:17 PM
It has been fixed in SVN, revision #4002.

Thanks again for the report.

anup
May 09, 2012, 4:28 PM
Many thanks for super quick fix! Much appreciated!