Results 1 to 3 of 3

Thread: how to startEdit on grid with editor (ext 4.0.7)

  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2011
    Posts
    84
    Vote Rating
    0
      0  

    Default Answered: how to startEdit on grid with editor (ext 4.0.7)

    How should i start editing a grid with celledit? in following example i get as you see :
    Code:
    <div unselectable="on" class="x-grid-cell-inner x-unselectable" style="; text-align: left;">1</div>
    instead of just"1".

    Code:
    var g = GRID;
    var s  = g.getStore();
    
    
    var user_edu = Ext.create('TS.model.UserEducation',{
        user_education_id:null,
        user_education_user_id:1,
        user_education_school:1,// '1' gives same result.
        user_education_department:null,
        user_education_type:null,
        user_education_date_start:null,
        user_education_status_id:null
    });
    
    
    var p = g.getPlugin('edit');
    	    p.completeEdit();
    	    s.insert(0,[user_edu]);
    	    g.getView().refresh();
    	    g.getSelectionModel().select(0);
    	    p.startEdit(user_edu,1);
    after blur and focus it goes 1 again. so the problem is just in startEdit i guess....

    extjs4BUG2.jpg

  2. hmm... looks like a bug. Have you tried

    Code:
    cellEditing.startEditByPosition({row: 0, column: 1});
    It takes index for row and column and it didn't behave like startEdit did in 4.0.7.

    Just tried startEdit in 4.1.0 beta and it isn't showing the html in there so it looks like the problem is fixed.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    hmm... looks like a bug. Have you tried

    Code:
    cellEditing.startEditByPosition({row: 0, column: 1});
    It takes index for row and column and it didn't behave like startEdit did in 4.0.7.

    Just tried startEdit in 4.1.0 beta and it isn't showing the html in there so it looks like the problem is fixed.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Ext JS Premium Member
    Join Date
    Oct 2011
    Posts
    84
    Vote Rating
    0
      0  

    Default

    Thanks in plenty! that works fine with0.7. cant wait to get 4.1.
    Best regards.

Tags for this Thread

Posting Permissions

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