Hi,We want to create Area overlay 2d and Line OverlAy 2d charts with the Drop down box to select the time range using Netadvantage JSF 20007. We were able to put all 3 components but not able to smart update the Charts when the value chnaged on the dropdown list. Could you please guide me how to do this.
If we can not do that using smartupdate, is there any other way that we could do?
thanksSashi
Hello Sashi,
You can perform smart update on a control when the value in the drop down changes by specifying the control that you want to update inside of the drop down attribute called "SmartRefreshIds". You need to then handle the value change listener of the drop down and depending on the new value, update the control accordingly. Now, when the user selects a new value from the drop down, the value change listener fires and all the controls who's ids are specified in "SmartRefreshIds" will be updated.
You can also view code for our demo samples for DropDownList where this has been demonstrated by refreshing our grid when the value of the drop down is changed.
Taz.
Yeah it works for Grid, But it DOES NOT WORK for CHARTS. I need this feature for charts. Also How to refresh the charts?
Sashi,
I am not sure why it would not work for the chart in your case, as the smart refresh should update all the controls when the value changes in the dropdown. One thing that comes to my mind is to make sure you are updating the chart on the server and calling databind to make sure it is regenerated.
If you are still having trouble configuring this, please submit this issue to our developer support with sample that replicates this problem, so that we can better assist you with the problem. From the link below, click on "Ask for Help."
http://ko.infragistics.com/gethelp/default.aspx#Overview
Thanks,