[CLOSED] Gridpanel's View is not updating. How to update it.

  1. #1

    [CLOSED] Gridpanel's View is not updating. How to update it.

    Hello,

    I have grid panel which is being created dynamically. There is context menu used in it. Once the options in context menu is selected, I am using the grid column header name to process further. Once the grid is reloaded, the store is getting updated with the new value. But in the view it still holds before value which was bound during the page load.

      preventRightClick =  function (view, td, cellIndex, record, tr, rowIndex, e){               
                    #{grdETSummary}.getView().refresh();
                    var columnHeader = view.panel.columns[cellIndex].dataIndex;
    To get the column header, I am using the above code. I tried to refresh the view like above but it didn't work.

    In the same javascript function I have used the below code:

    var columnHeader = view.store.data.items[0].fields.items[cellIndex].name;
    From this I got to know that the store is updated one. Because here am getting the updated header. But I want the column header from the view only as I have used column locking based on some conditions.
    Last edited by Daniil; Jun 15, 2015 at 1:22 PM. Reason: [CLOSED]
  2. #2
    Hi @arjunrvasisht,

    Please provide a test case to reproduce the problem.

Similar Threads

  1. Replies: 2
    Last Post: Mar 10, 2014, 2:41 AM
  2. Replies: 10
    Last Post: Jan 14, 2014, 3:51 AM
  3. Replies: 1
    Last Post: Mar 26, 2012, 8:59 PM
  4. Replies: 5
    Last Post: Jun 10, 2011, 6:35 PM
  5. [CLOSED] Update grid view not work.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 07, 2011, 9:03 PM

Tags for this Thread

Posting Permissions