[CLOSED] Buffered Grid View Scrolling

  1. #1

    [CLOSED] Buffered Grid View Scrolling



    Hi,

    I have a buffered grid panel that has a limit of 500 records per page. If the grid contains 500 rows and I click my "Add" button which adds a new row to the grid using:
    function bulkUpdateDataAddNew()
    {
        var lpIndex = strData.data.length;      //Get max index
    
    
        strData.insertRecord(lpIndex, { id:Ext.id(null, "New-"), RowStatus: "1" });    //Add new record to store
        var opRecord = strData.getAt(lpIndex);    //get record added above
        opRecord.RowStatus = "1";
        opRecord.set("EntityID", "New");
        opRecord.commit();
        opRecord.firstEdit = true;
        opRecord.newRecord = true;
    
    
        grdData.getView().focusRow(lpIndex);
    
    
        grdData.startEditing(lpIndex, 3);       //start column editing at index position 3 as the first 3 columns are read-only (Row Number, Delete, ID)
    }
    This adds a new row but when the first cell becomes editable the control is displayed two rows below the new row. Please see attached picture for an example of what I mean. Is there a way that I can prevent this from happening?

    If I remove the line "grdData.startEditing(lpIndex, 3);" the scrolling works OK but I need this functionality!

    Thanks
    Beth
  2. #2

    RE: [CLOSED] Buffered Grid View Scrolling

    Hi,

    As mention in the example the BufferView is "completely experimental and only a subset of standard grid features are available"


    I can't reproduce your issue. Can you create test sample and post it? Try to update from SVN first
  3. #3

    RE: [CLOSED] Buffered Grid View Scrolling



    Hi,

    It seems to be a specific problem in my page as I copied the buffered example into my site and added the same functionality and it worked fine. I'm going to look into the problem some more.

    Thanks
    Beth
  4. #4

    RE: [CLOSED] Buffered Grid View Scrolling



    Hi,

    I found the issue - I needed to set the RowHeight attribute on the BufferView to stop the issue.

    <ext:BufferView ID="bvwData" runat="server" ScrollDelay="0" RowHeight="23" />

Similar Threads

  1. [CLOSED] Grid scrolling without the scrollbar
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 18, 2016, 6:58 PM
  2. Replies: 7
    Last Post: Mar 27, 2013, 6:07 AM
  3. [CLOSED] Shared store with buffered grid
    By Justin_Wignall in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 05, 2012, 2:00 PM
  4. [CLOSED] RemoteSort for buffered store
    By gets_gui in forum 2.x Legacy Premium Help
    Replies: 46
    Last Post: May 27, 2012, 8:02 PM
  5. Replies: 1
    Last Post: Jan 29, 2009, 10:46 AM

Posting Permissions