1. #1
    Ext JS Premium Member
    Join Date
    Oct 2011
    Posts
    84
    Vote Rating
    0
    Webtel is on a distinguished road

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,789
    Answers
    3465
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Ext JS Premium Member
    Join Date
    Oct 2011
    Posts
    84
    Vote Rating
    0
    Webtel is on a distinguished road

      0  

    Default


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

Thread Participants: 1

Tags for this Thread

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