Threaded View

  1. #11
    Sencha User
    Join Date
    Dec 2009
    Location
    Dallas, TX
    Posts
    20
    Vote Rating
    0
    ramana_l_v is on a distinguished road

      0  

    Default


    Thanks a lot I was able to solve my display problem.

    I am facing another issue where the date is coming as "dob":"1980-12-25T00:00:00" in JSON even though the format is set as 'm-d-Y'.

    Display is working fine but when the form is submitted date format is not working. am I missing anything here.

    Code:
    var reader = new Ext.data.JsonReader({
        totalProperty: 'recordCount',
        successProperty: 'success',
        idProperty: 'pid',
        root: 'records'
    }, [
        {name: 'dob', allowBlank: false , type:'date' , dateFormat:'d-m-Y H:i'},
    ]);
    
    var writer = new Ext.data.JsonWriter({
        writeAllFields: true,
        listful : true
    });
    
    var userColumns =  [{
        header: "Date Of Birth", 
        width: 40, 
        sortable: true, 
        dataIndex: 'dob', 
        renderer:Ext.util.Format.dateRenderer('m-d-Y'), 
        editor: new Ext.form.DateField({
            name: 'dob_date', 
            width:90, 
            allowBlank:false
        }) 
    }/*, you have a trailing comma here --- indent your code properly!!!! */
    ];
    Thanks...
    Last edited by mystix; 28 Dec 2009 at 12:30 AM. Reason: POST CODE IN [code][/code] TAGS. see http://extjs.com/forum/misc.php?do=bbcode#code

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi