-
10 Jan 2012 10:41 PM #11
-
11 Jan 2012 12:37 AM #12
Hi mojtaba .
Yes You can use this for any component that use Ext.Date. But you must change code for compatibily.
I use Ext.PDate for Extensible 1.5 . but change some code for compatibility with pdateNo honor is like knowledge
-
4 Feb 2012 7:44 AM #13
why does it returns date , like "2000-01-05" in datefield ?
i need persian date !!!
-
4 Feb 2012 8:14 AM #14
Hi
please give me source codeNo honor is like knowledge
-
4 Feb 2012 8:21 AM #15
tnx
tnx
hi , this is a row of a grid(row-edit) :
Code:{ dataIndex:'birth_date', text:'تاريخ تولذ', width: 75, align:'right', hidden:true, renderer : Ext.util.Format.dateRenderer('Y/m/d'), editor: {xtype:'pdatefield' ,format: 'Y/m/d' ,allowBlank: true ,selectOnFocus:true ,maxLength:10 ,enforceMaxLength:true ,maxValue: new Date()}
-
4 Feb 2012 10:40 AM #16
You use Ext.util.Format.dateRenderer('Y/m/d') and this not retun Persian date. you can user custom renderer function and on this function use Ext.PDate.format
No honor is like knowledge
-
4 Feb 2012 11:23 AM #17
datarenderer
datarenderer
i don't know how can i implement a custom datarenderer . i'm begineer in EXt ! if you can , plz help me

-
4 Feb 2012 12:39 PM #18
Like this
Sorry I dont test this codeCode:{ dataIndex:'birth_date', text:'تاريخ تولذ', width: 75, align:'right', hidden:true, renderer : function(v) { return Ext.PDate.format("Y/m/d",v); }, editor: {xtype:'pdatefield' ,format: 'Y/m/d' ,allowBlank: true ,selectOnFocus:true ,maxLength:10 ,enforceMaxLength:true ,maxValue: new Date()}No honor is like knowledge
-
4 Feb 2012 9:50 PM #19
thanks , but i test it and didn't work ! i don't know how can i do it , if you can help me
-
4 Feb 2012 11:19 PM #20
Code:{ dataIndex:'birth_date', text:'تاريخ تولذ', width: 75, align:'right', hidden:true, renderer : function(v) { if(v && Ext.isDate(v)){ return Ext.PDate.format(v, "Y/m/d"); } return v; }, editor: {xtype:'pdatefield' ,format: 'Y/m/d' ,allowBlank: true ,selectOnFocus:true ,maxLength:10 ,enforceMaxLength:true ,maxValue: new Date()}No honor is like knowledge



Reply With Quote