1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    4
    Vote Rating
    0
    rational is on a distinguished road

      0  

    Default Sorting EditorGrid problem

    Sorting EditorGrid problem


    I'm dealing with an EditorGrid with its ColumnConfigs and his store.
    After the grid's been filled, a sorting is applied with the line:

    Code:
    grid.getStore().sort(field, sortDir);
    An add button adds a new empty register to the grid's store and an empty row is displayed in the top of the list (because of the SortDir.ASC parameter). I fill the fields of the new row, everything fine.

    Second add, second empty row in the top of the list. From this moment if I click over any editable field of the grid, an editor appears in the cell to change its value, as expected, but, and here is the reason of my question, the content loaded into the editor is the text of the row below.

    Example:
    Code Description
    --------------------
    (last added row)
    AAA aaa
    BBB bbb

    On clicking the Code cell of the row with AAA, appears the editor with BBB inside.

    I've realized that this strange behaviour doesn't appear if the grid is not sorted.

    Also say that in other grids, I override the preProcess() and postProcess() functions to work with this value before and after the editor's action. but NOT in this case. I add the editor in this simple way:

    Code:
    TextField<String> textFieldCode = new TextField<String>();
    columnConfigCode.setEditor(new CellEditor(textFieldCode));
    Is this a bug or am I forgetting something?

    Thanks in advance.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    am I forgetting something?
    How can we know this if you have not posted a testcase that implements EntryPoint yet.

  3. #3
    Ext User
    Join Date
    Jun 2010
    Posts
    4
    Vote Rating
    0
    rational is on a distinguished road

      0  

    Default


    Sorry if I'm too novice using GXT, but I'm not sure about what you ask for.
    The application in which I'm working is quite huge and I'm dealing with a single panel, I can't copy here all the code.

    Anyway I thought there could be a concept mistake in my development or maybe a known bug.

    How can I expose enough details?

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    How can I expose enough details?
    Reproduce it in a simple alone standing example that implements EntryPoint.

  5. #5
    Ext User
    Join Date
    Jun 2010
    Posts
    4
    Vote Rating
    0
    rational is on a distinguished road

      0  

    Default


    Partially solved.

    I know it may not be the best way to do it, but forcing the ordenation of the grid after adding a new row, the problem dissappears.

    Code:
    String sortField = grid.getStore().getSortField();
    SortDir sortDir = grid.getStore().getSortDir();
    grid.getStore().sort(sortField, sortDir);
    This code is placed in the function executed after the event of adding a row.

Similar Threads

  1. Sorting a numerical column from editorGrid not working
    By Adam W in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 11 Mar 2009, 10:09 AM
  2. EditorGrid sorting of special characters
    By alt_004 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 3 Mar 2009, 10:41 PM
  3. Grid sorting problem
    By Scotch in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 4 Sep 2008, 5:20 AM
  4. [Ext2.0a1] Edit not working in EditorGrid after sorting
    By spacyspacy in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Oct 2007, 5:51 AM
  5. editorGrid + comboBox = bad sorting
    By HeathT in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 20 Aug 2007, 3:44 PM

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