Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Event to identfy row population complete for editable grid

  1. #1

    Default Event to identfy row population complete for editable grid

    Hi,

    How can I know if all the rows in the grid is completed population?

    Actually what I want is to set focus on the first editable field in the grid.

    As i understand, this can be done only after the grid is completely rendered with the rows as well.

    Please help me with this.

    Thanks in advance.
    Regards,
    Shiby

  2. #2
    Ext JS Premium Member pavanextjs's Avatar
    Join Date
    Jul 2008
    Posts
    118

    Default

    Try this...

    PHP Code:
    grid.getStore().on('load', function(storerecordsoptions){
       
    grid.startEditing(rowcol);
    }); 
    you might need to find the col programatically and row will 0 if you want to highlight the cell in first row.

  3. #3
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    viewready

  4. #4

    Default Store event load is not getting fired

    Hi,

    Thanks for the response.

    I am actually trying out the samples included in the extjs distribution.
    In the simple Editor Grid example, the XML data is not getting loaded initially?
    How to do that as well ?

    I tried the code that you send me in the sample. But the load event itself is not getting fired.
    I tired that same in the Array Grid sample as well.
    What can I do about this now ?

    Thanks in advance for any help.

  5. #5
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    Again,

    viewready

  6. #6

    Default events not working

    hi,

    sorry I missed your reply.
    I tried the viewready event too..
    but that is also not working.


  7. #7
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    In what way not working? It's in use for this very purpose by many people.

    That's the main reason why it was introduced in the last release: So that people can automatically select the first row as soon as the first row is available.

  8. #8

    Default events not firing - version issue?

    Hi,

    I am using ext js version 3.0.0. Doesnt this version has the events ?
    and this is my code:
    /*************************************************/
    grid.on({
    'render':{
    fn: function(grid){
    alert('grid rendered >> ' + grid.rendered)
    },
    scope:this
    }, 'viewready':{
    fn: function(grid){
    alert('grid ready for view >> ')
    },
    scope:this
    }
    })

    grid.getStore().on('load', function(store, records, options){
    alert('store.load ')
    grid.startEditing(0, 0);
    }
    /**********************************************/

    Only 'grid rendered >> true' is coming as alert.
    None of the other alerts are coming.

    If needed will post the entire code. But i havent made any change in the original code.

  9. #9

    Default

    Hi,

    I am using ext js version 3.1
    Hope the events are there in this version.

    The code snippet is given below:
    /***************************************************/
    grid.on({
    'render':{
    fn: function(grid){
    alert('grid rendered >> ' + grid.rendered)
    },
    scope:this
    }, 'viewready':{
    fn: function(grid){
    alert('grid ready for view >> ')
    },
    scope:this
    }
    })

    grid.getStore().on('load', function(store, records, options){
    alert('store.load ')
    grid.startEditing(0, 0);
    });
    /**************************************************/

    Not many changes have been done for the sample.

    When I run the html, i get only 'grid rendered >> true' as alert. None of the alerts are coming.

    So what to do now?
    If needed will post the entire code.

  10. #10
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    How have you debugged?

    And putting alert calls in your code does NOT count as debugging.

Page 1 of 2 12 LastLast

Similar Threads

  1. how to make row editable at a click event
    By anoop abbot in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 22 Apr 2009, 11:33 PM
  2. Save complete editable grid in a text file
    By stephan.raabe in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 21 Dec 2008, 11:33 PM
  3. Editable Row while add new row in Grid
    By smruti_patra in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Jul 2008, 4:40 AM
  4. Dashed line allowed on complete row in grid?
    By NotChris in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 Jun 2008, 9:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •