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

Jun 08, 2015, 6:43 AM

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){
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.

Jun 08, 2015, 11:09 AM
Hi @arjunrvasisht,

Please provide a test case to reproduce the problem.