Results 1 to 3 of 3

Thread: Adding New line jumps

  1. #1
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    16

    Default Adding New line jumps

    Hi,

    When i try to add the new line in the grid which has been sorted based on a specific column, the new line which was initially on the top jumps to the middle or bottom based on the column filled in automatically. It behaves as if the sorting happens as soon as you tab off that specific column. Is there any auto sort option that could be turned off..

    Thank you

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    So you're adding a record to the store using the add() method?

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    16

    Default

    No not add()...

    this is how we do it..



    var nomTransportGrid = Ext.getCmp('nomTransportGrid');

    if(typeof nomTransportGrid != 'undefined')
    {
    var count = 0;
    nomTransportGrid.getStore().insert(count, iRecordTransportation.data);
    /* select the newly created record via model*/
    nomTransportGrid.getSelectionModel().select(count);
    // Select the first editable Element
    startEditFirstCell(nomTransportGrid,count);

    Ext.getCmp('nomTransportGrid').ensureVisible(0);
    }

Similar Threads

  1. Adding or removing line on line chart in ext js 4
    By blincv in forum Ext: Discussion
    Replies: 3
    Last Post: 3 Aug 2012, 5:21 AM
  2. Adding Series to line chart Dynamically
    By dev_java in forum Ext: Q&A
    Replies: 1
    Last Post: 29 Feb 2012, 7:34 AM
  3. simple action: adding line to grid
    By Deniss in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 9 Jun 2008, 4:40 PM

Posting Permissions

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