Hi,
Is it true that the UltraWebChart are not able to keep the current chart after postback even if the property : enableviewstate = true?
I am working with the UltraWebChart and i bind the datatable to this UltraWebChart ONCE in Page_Load (!IsPostBack). I put a dummy asp button. When i run the project, the first load is fine, the chart are all in place. Once i clicked on the dummy button, it caused a post back and the UltraWebChart data is lost.
Please let me know if i miss out any setting? Your help is very much appreciated.
Regards,
Say Chao
No, that property gets inherited from the WebControl class and doesn't have any use in the context of the web chart. Chart is somewhat different from other controls, because it renders as an image, that's generated on the server and passed down to the client.
My mistake. The page had other controls that were storing viewstate information and that was what I must have been looking at. So for the UltraChart control, does setting the EnableViewState property to "true" serve any purpose?
I'm not really sure which delay you're referring to. The original question in this thread was whether or not the viewstate can be used to avoid re-binding the chart each time the page loads. In the latest version, the web chart still needs to be bound each time the page loads. Perhaps you're experiencing a different issue? Can you describe it a bit further?
Is this still true with the latest version? When decoding the viewstate information, all of the data for the chart seems to be there. Any way to use this viewstate information to avoid the delay of re-running my stored procedure to generate the chart again?
You're correct. The web chart does not use viewstate and needs to be bound on each postback