Jun 08, 2015, 5:43 AM
[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.
In the same javascript function I have used the below code:
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]