1. #1
    Sencha User
    Join Date
    May 2008
    Posts
    262
    Vote Rating
    -4
    mnask79 is infamous around these parts

      0  

    Default PropertyGrid

    PropertyGrid


    hi guys ,

    im trying to use PropertyGrid , i dont know why it does not work eith me very well
    this is my script



    PHP Code:
     var orRc Ext.data.Record.create ([
                {
    name"val1"},
                {
    name"val2"},
                {
    name"val3"}           
            ]);

         var 
    arr = new Array();
         var 
    orPrx = new Ext.data.MemoryProxy(arr);
            
         
    orDs = new Ext.data.Store ({
                
    proxyorRc Prx,
                
    reader: new Ext.data.JsonReader ({                
                    
    totalProperty "totalCount",
                    
    root "orderInfo"
                
    }, orRc)
         });    
          
    sendRequest = function(params) {        
                var 
    url 'test.php?order_id=124' ;
                
    Ext.Ajax.request({
                    
    url:url,
                    
    paramsparams,
                    
    method:'post',    
                    
    failureonFailure,
                    
    callback: function(opts,suss,resp) {                    
                        var 
    result Ext.decode(resp.responseText);
                        if(
    result.status == 'true'){
                            
    //console.log(result);
                            
    orDs.loadData(result.orderHistoryRoot);
                            
                            var 
    firstRec    orDs.getAt(0);
                            
    source = {};
                            
    source['value1'] = firstRec.data.val1;
                            
    source['value12'] = firstRec.data.val2;
                            
    source['value13'] = firstRec.data.val3;
                             
                            
    console.log(source);
                        }                    
                    }
                });            
            }    
           
    properGride = new Ext.grid.PropertyGrid({
                
    title'Property',
                
    width:600,
                
    height:350,
                
    frametrue,
                
    source:source
            
    })
    pnl = new Ext.Panel({
        
    layout:'border',                
               
    items: [{
                
    region:'center',
                
    layout:'fit',
                
    width 280,
                
    items : [properGride]
        }); 
    and i dont want data to be editable ...
    thanks
    Last edited by mnask79; 18 May 2008 at 1:54 AM. Reason: corrected something

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