PDA

View Full Version : How to refresh or reload grid Header?



extjs.mscit
29 Jul 2013, 7:18 AM
Hi

I want to reload header again, as doLayout() does not serve my purpose.
In extjs 3.4, I use gridView.refresh(),but what is alternate in Extjs 4.1.

Thanks.

slemmon
31 Jul 2013, 4:35 PM
What is it that you're looking to accomplish? Data has changed in the store / view and you're wanting to refresh the grid view?

Or maybe grid.getView().refresh() or grid.updateLayout() or grid.getView().updateLayout() is what you're wanting?

extjs.mscit
1 Aug 2013, 1:01 AM
I has small panel where user will decide which column he wanted to show/hide, width of column, filter information, sequence of column, text/header of column.
Once user hit apply button, my grid will update state information as well as save them in database.
After that it will update grid.

Now, to update grid i try following.


this.grid.getView().getHeaderCt().updateLayout();
this.grid.getView().getHeaderCt().doLayout();

but image of result is as below, it displays grid data but not header.

http://www.sencha.com/forum/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdUAAACcCAIAAACm+6awAAARoklEQVR4nO2dT4jj2J3HdcwxxyanNCwVyC3YlxxymdNeioU0A7NLLsawl4KExVOw2T50msyhsddhZygIDYFqSJpc4gUXmE3DGvaw3TuBSmcgY1dwkgrJZKbYP80wHUjxZJaXg2TpSXqyn6osyz/p8+FB26+enr7W++nr5ye1ft7FH19f/PH1xfuP7735eBq8TtY8fbsVcO/tb9978/H0/cf3WhHffmpusqm88S+/+7sf/c/8kz8f/OMvuv+m//ZM/9X9X739w9/85D//+7s//vWdb0yf/scnlg2T2qbvvtVqvdV///WFqSRoELVMfZx0y59+a/Xu3rsfJhpnj4PjR+tNR9P5G71J8PafT6bXd+9e37mrP//56698dT6/ym4yffet+EC+/dOE+OTnsgyBVWTq4xvNgh7CD2t2nugqeViKHwQKhVKoePOPXhcr//X4628+/veiWyXLdP6nL93/5d/8q/7rkf7aj/WXv6+/8J3/+9YPFrfps9ryRm8yms7fefpy/tHr+Yv59d272vP0nTv6c5/TnhdYcOUiKRTKXpVq/Hf+0evFJ39+63s//+I//OLON19+7Z/ePxn/tvJjcZvyztOXLy8/DV5f9e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oGdxjfJlDSKP8FfWcUF4FOJugAAAAASUVORK5CYII=
http://www.sencha.com/forum/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdUAAACcCAIAAACm+6awAAARoklEQVR4nO2dT4jj2J3HdcwxxyanNCwVyC3YlxxymdNeioU0A7NLLsawl4KExVOw2T50msyhsddhZygIDYFqSJpc4gUXmE3DGvaw3TuBSmcgY1dwkgrJZKbYP80wHUjxZJaXg2TpSXqyn6osyz/p8+FB26+enr7W++nr5ye1ft7FH19f/PH1xfuP7735eBq8TtY8fbsVcO/tb9978/H0/cf3WhHffmpusqm88S+/+7sf/c/8kz8f/OMvuv+m//ZM/9X9X739w9/85D//+7s//vWdb0yf/scnlg2T2qbvvtVqvdV///WFqSRoELVMfZx0y59+a/Xu3rsfJhpnj4PjR+tNR9P5G71J8PafT6bXd+9e37mrP//56698dT6/ym4yffet+EC+/dOE+OTnsgyBVWTq4xvNgh7CD2t2nugqeViKHwQKhVKoePOPXhcr//X4628+/veiWyXLdP6nL93/5d/8q/7rkf7aj/WXv6+/8J3/+9YPFrfps9ryRm8yms7fefpy/tHr+Yv59d272vP0nTv6c5/TnhdYcOUiKRTKXpVq/Hf+0evFJ39+63s//+I//OLON19+7Z/ePxn/tvJjcZvyztOXLy8/DV5f9e4H5jufvrwcTQMLvrr/TuUiKRTKXpXi/kvZWF7Mr3r359OXwdvLyYur3jvzl5fVC6NQKPtUvNkfXlMoFApl98X78A+fUSgUCmX3Bf+lUCiUaor34e8/o1AoFMrui/fL339GoVAolN0X73//9P+CyvPnz5U0JGoGAJOSzmL8t3QkagYAE/wX/wWAasB/8V8AqAb8F/8FgGrAf/FfAKgG/Bf/BYBqwH/xXwCoBvwX/wWAasB/c/x31m+1+rO8t9n6bINZv+V5cV1eDzcF/20cs37L87zOOKoYd8wI22Oswb/m3GkMtz2Lc0KiMf6r/OXStzeY9VutTieqxX/hllgiqiXDudb7b3QSNY8t+K8tJGrqv7N+q9Xvd7yAzjhqFnwNeV5mwjs/64T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k2A/Ju+LzPXoUTN4A7j2wTIv6m1zN96EjWDO4xvE2D9V2uZsS5RM7jD+DYB/FdrmbEuUTO4w/g2AfxXa5mxLlEzuMP4NgHyb2pd3+eftYeLAk8mK/0ZZnE+pCKkn/XZEMi/aX8mmhXybyaph/9Kz79ZkLL994b9478JyL+5Th75N7XWNfFf8fk3jZrFsN3tpqfuqbSat8m8adk2m7MofhP9jMjdUVTT7nbx3wzk38yRR/5NrWviv0LzvyVWHwz/jafwybm8mfn4xpk3421Xe4oPSaY340si/Jt9R9EL/DcN+Tfz5GW2Iv/m3lMr/82b/+bO5bPbFs+8mdwinBFnp9upya/xNZHakamugoO7B5B/0yLNjBvyb+ZTC/+Vn38zrrmZ/7pn3sz6b9RnZMKm/6aOVmZH+C/5N902Jf+mhVr4r/j8m0aNPaubsQpgbeOeeTOz/mAeobSnrlmsMHdkVOG/Kci/GTch/2aGevivzPvPXP3Xev3tppk3bdfu4mWGeG037/pbZkfGBbs2198MyL+5Xli0Kfk3xSDxXvf90kz+422zX+ML5UD+Ta1lxvp+acZ/t81+jS+UA/k3tZYZ6xI1gzuMbxPg+Q9ay4x1iZrBHca3CeC/WsuMdYmawR3Gtwngv1rLjHWJmsEdxrcJ4L9ay4x1iZrBHca3CZB/89UrmbkOJWoGdxjfJlDSKP8FfWcUF4FOJugAAAAASUVORK5CYII=

If I use this.grid.getStore.load()
then it works fine. but,I can not load store and send a ajax request each time.

In extjs 3.4, i use

this.grid.getView().refresh(true);
and it only refresh view, does not send any request to server.

slemmon
2 Aug 2013, 9:58 AM
What if you do this.grid.getView().refresh()?

metfan
3 Aug 2013, 6:37 AM
Hello,

Maybe you can use grid.reconfigure(). I use this awsome feature to change dynamycally columns config in my grid. http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.Panel-method-reconfigure

extjs.mscit
5 Aug 2013, 9:04 AM
@SLEMMON, this.grid.getView().refresh()?
I tried that, but gridView does not contain header.container. So it does not make any difference. I want to refresh or reload or reconfigure header.container only. Bcoz when header change, grid atomatically reflect the changes. I do not need to refresh or reconfigure gridView.

slemmon
6 Aug 2013, 11:43 AM
I'm not totally sure what you're doing or what you're needing to see updated in the headerContainer. Perhaps grid.updateLayout? grid.down('headercontainer').updateLayout()?

NishantGupta
1 Apr 2014, 4:40 AM
Can you tell me how to refresh grid in 4.2.1Thanks,Nishant

extjs.mscit
3 Apr 2014, 4:29 AM
Hi Nishant,

I still do not have any answer. Temporarily I am reloading store and that also refresh my grid.

Thanks.

slemmon
15 Apr 2014, 6:00 PM
You can refresh the grid by calling grid.getView().refresh();