What is the issue? Why do you want to load taskStore each time window is resized? That should be handled well by setting width to gantt component or it's container. What is the reason to do that?
Sorry..
I tried by adding gantt component, but that didnt work.
It refereshes when any actions takes place on grid(like,when i click on ganttchart seperator ).
Thank you.
I'm confused, what do you mean by 'refreshing the gantt'? If you mean set size according to window, you can calculate size manually each time and use setWidth/setHeight methods, or add 'viewport' to plugins. In that case gantt will fill whole page.