1. #11
    Ext User dantheman's Avatar
    Join Date
    Mar 2007
    Posts
    259
    Vote Rating
    1
    dantheman is on a distinguished road

      0  

    Default


    Quote Originally Posted by madrabaz View Post
    Yeah, sometimes tihs error occur but I don't know why,
    refresh the page, solve the problem
    Still barfs in IE7 (after multiple ctl-F5s), but works in FF2.

    Very nice work!
    Many thanks,
    --dan

  2. #12
    Sencha User madrabaz's Avatar
    Join Date
    May 2007
    Location
    Turkey
    Posts
    125
    Vote Rating
    0
    madrabaz is on a distinguished road

      0  

    Default


    I thing this occur because I send js and css files as a gz format (make an experiment)

    I will try to fix it tomorrow,

    Thanks,

  3. #13
    Ext User tavox's Avatar
    Join Date
    Jun 2007
    Location
    Lima, Peru
    Posts
    23
    Vote Rating
    0
    tavox is on a distinguished road

      0  

    Default


    nice extension

    Best regards

  4. #14
    Ext User denkoo's Avatar
    Join Date
    Jan 2008
    Location
    Paris
    Posts
    124
    Vote Rating
    0
    denkoo is on a distinguished road

      0  

    Thumbs up Great ))

    Great ))


    I will use your extension in my project... thanks for saving time on share it...

    I hope that my sharing have same interest for other than this extension ))

    thanks a lot

  5. #15
    Ext User pregool's Avatar
    Join Date
    Nov 2007
    Location
    Surabaya, Indonesia
    Posts
    10
    Vote Rating
    0
    pregool is on a distinguished road

      0  

    Default Problem LOV Field in grid

    Problem LOV Field in grid


    hi mr madrabaz,

    i've been using LovField in form and it's perfect. but problem came up when i using it in grid.
    when the lov window show and i select 1 record and then click 'select' button, nothing show in lovField value. but if i click again, the old value is show in lovField. here's my code. could u help me out with this. thanks a lot!

    PHP Code:
    // image url
    Ext.BLANK_IMAGE_URL '../resources/images/default/s.gif';

    Ext.onReady(function(){
        
      
    // data store for LOV
      
    var dsLov = new Ext.data.GroupingStore({
        
    proxy: new Ext.data.HttpProxy({
          
    url"lov.php",
          
    method'POST'
        
    }),
        
    baseParams: {task'read'},
        
    reader: new Ext.data.JsonReader({
          
    root'results',      
        },[
          {
    name'nopeg'},{name'nama'}
        ]),
        
    sortInfo: {field'nama'}
      });  
      
      
    // column model for LOV
      
    var cmLov = new Ext.grid.ColumnModel([{
        
    id:'nopeg',
        
    header'NOPEG',
        
    dataIndex'nopeg',
        
    width80
      
    },{
        
    id:'nama',
        
    header'Nama',
        
    dataIndex'nama',
        
    width200
      
    }]);
      
      
    // grid for LOV
      
    var grdLov = new Ext.grid.GridPanel({
        
    storedsLov,
        
    cmcmLov,
        
    width500,
        
    height150
      
    });     
      
      
    // LOV Field
      
    var lovField = new Ext.ux.form.LovField({    
        
    viewgrdLov,
        
    lovTitle'Find Employee',
        
    valueField'nopeg',
        
    displayField'nopeg'    
      
    });
      
      var 
    ds = new Ext.data.GroupingStore({
        
    proxy: new Ext.data.HttpProxy({
          
    url"lov.php",
          
    method'POST'
        
    }),
        
    baseParams: {task'read'},
        
    reader: new Ext.data.JsonReader({
          
    root'results',      
        },[
          {
    name'nopeg'},{name'nama'}
        ]),
        
    sortInfo: {field'nama'}
      });
      
    ds.load(); 
      
      var 
    cm = new Ext.grid.ColumnModel([{
        
    id:'nopeg',
        
    header'NOPEG',
        
    dataIndex'nopeg',
        
    width80,
        
    editorlovField
      
    },{
        
    id:'nama',
        
    header'Nama',
        
    dataIndex'nama',
        
    width200,
        
    editor: new Ext.form.TextField({
          
    allowBlanktrue
        
    })
      }]);
      
      var 
    grd = new Ext.grid.EditorGridPanel({
        
    storeds,
        
    cmcm,
        
    width500,
        
    height300,
        
    clicksToEdit1
      
    }); 
      
      
    grd.render('grid-example');
    }); 

  6. #16
    Sencha User madrabaz's Avatar
    Join Date
    May 2007
    Location
    Turkey
    Posts
    125
    Vote Rating
    0
    madrabaz is on a distinguished road

      0  

    Default


    @pregool : I'll check it tomorrow

  7. #17
    Ext User xpurpur's Avatar
    Join Date
    Feb 2008
    Posts
    33
    Vote Rating
    0
    xpurpur is on a distinguished road

      0  

    Default


    If you need to pass parameters when loading grid in LOV field (if you needs to load your grid by POST or need to use PagingToolbar), patch is simple:
    PHP Code:
    Ext.ux.form.LovField Ext.extend(Ext.form.TriggerField, {
        
    /**
         * .....
         * LovFields Parameters goes here 
         * .....
         */
        // Request params for loading grid
        
    requestParamsfalse
    Then (near 211 line) find:
    PHP Code:
            // Store Load
            
    if (!this.isStoreLoaded) {
                
    this.view.store.load();
                
    this.isStoreLoaded true;
            } else if (
    this.alwaysLoadStore === true) {
                
    this.view.store.reload();
            } 
    and insert parameters to store load:
    PHP Code:
            // Store Load
            
    if (!this.isStoreLoaded) {
                
    this.view.store.load(this.requestParams);
                
    this.isStoreLoaded true;
            } else if (
    this.alwaysLoadStore === true) {
                
    this.view.store.reload(this.requestParams);
            } 
    How to use:
    PHP Code:
    {
    ....
    // other config options
              
    xtype:         'xlovfield',
              
    id:              'project-customer',
              
    fieldLabel:    'Customer',
              
    requestParams: {params:{start0
                                                  
    limitConfig.Pager.OnPage.CUSTOMERS}},
    ....
    // other config options

    2madrabaz
    Thank you for sharing such useful extension. It very simplifies my work.

  8. #18
    Ext User xpurpur's Avatar
    Join Date
    Feb 2008
    Posts
    33
    Vote Rating
    0
    xpurpur is on a distinguished road

      0  

    Default


    2 madrabaz

    Is this the way to set value in the LOV field?
    I mean - when I'm creating the "Edit" form I need to set value in this field.

    I update your extension and add two methods:

    PHP Code:
        setHiddenValue: function(aHiddenValue)
        {
          
    this.hiddenField.setAttribute('value'aHiddenValue);
        },
        
        
    setDisplayValue: function(aDisplayValue)
        {
          
    this.setValue(aDisplayValue);
        } 
    I must use this methods only after render, because hidden field creates when render component.

    So, the problem:
    All values correctly fills (hidden and display fields, I see it in Firebug) after render using this methods, but when I opens grid - record no selects automatically. And field validation error occurs (component don't understand, that values not human selected, but filled by my script)

    What I must do also?
    P.S. Sorry my english.

  9. #19
    Ext User
    Join Date
    Apr 2007
    Posts
    2
    Vote Rating
    0
    tsenyi is on a distinguished road

      0  

    Default


    nice work, very useful ,

    tag it (query options)

  10. #20
    Ext User
    Join Date
    Jan 2008
    Location
    Barcelona
    Posts
    58
    Vote Rating
    0
    sinma is on a distinguished road

      0  

    Default


    I really "lov" this extension! Very nice!

    Just one thing: when you click into LOV Grid text area (in the form), it shows a javascript error (tested on IE7 and FF).

    Regards.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar