Discuss anything related to web development but no technical support questions


Post by jineeshte »

Hi,

How to refresh the gantt chart in client side using ajax without post back?

Post by mats »

Just call
taskStore.load()

Post by naveen »

I am also having same issue.
Code
Ext.EventManager.on(window, 'resize', function() {
            Ext.getCmp('gant-section').width = 1216;
            taskStore.load();
        });

Post by Maxim Gorkovsky »

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?

Post by naveen »

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.

Post by Maxim Gorkovsky »

So everything works fine, right?

Post by naveen »

Its not refreshing the gantt, when i resize the window.
Thank you

Post by Maxim Gorkovsky »

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.

Post Reply