I have a drop down list to choose which chart to display.
When I choose a chart - the whole page is rerendered instead of just my warp!?
How to achieve that just warp refreshes? Any idea?
<asp:DropDownList ID="ddl_ChartNames" runat="server" AutoPostBack="True" /> <igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" TriggerControlIDs="ddl_ChartNames" RefreshTargetIDs="chart_Main" > <igchart:UltraChart ID="chart_Main" runat="server" Visible="false" Width="100%"> </igchart:UltraChart> </igmisc:WebAsyncRefreshPanel>
put that dropdown inside warp like this and it should be fine.
<igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" TriggerControlIDs="ddl_ChartNames" RefreshTargetIDs="chart_Main" >
<asp:DropDownList ID="ddl_ChartNames" runat="server" AutoPostBack="True" /> <igchart:UltraChart ID="chart_Main" runat="server" Visible="false" Width="100%"> </igchart:UltraChart> </igmisc:WebAsyncRefreshPanel>
Thanks a lot Anand I've already tried that, but in that case nothing happens :-(.
Actually you can try this
<asp:DropDownList ID="ddl_ChartNames" runat="server" AutoPostBack="FALSE" />
<igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" TriggerControlIDs="ddl_ChartNames"> <igchart:UltraChart ID="chart_Main" runat="server" Visible="false" Width="100%"> </igchart:UltraChart> </igmisc:WebAsyncRefreshPanel>
if this does not work, attach a client onchange event to drop down like this on server side
ddl_ChartNames.attributes.Add("onchange","ddl_ChartNameChange()");
now the JS function will be used to refresh the warp explicitly, onchange of the dropdown.
function ddl_ChartNameChange()
{
var warp = ig_getWebControlById('WebAsyncRefreshPanel1');
if(warp){ warp.refresh(); }
if(warp)
warp.refresh();
}
Thanks,
Praveen.
Praveen, thanks a lot man, you solution works, the problem was in some existing BOXI javascript that prevented me from getting through, which is not related to this stuff.
Cheers and say hello to whole Chicago, especially the Serbs in :-)
Right I see refreshing symbol but I am not hitting any of the severs events, once that would be the case the problem will be solved :-(. Looks like refresh started but never gets to the server where I need to load a new chart.
Using anything should be fine.
you were saying that you can see the refresh symbol right...then if you put a break point in your page load. is it getting hit after you change value in your dropdown (with dropdown auto postback set to false) ?
btw I've used this:
g_getWebControlById("<%= WebAsyncRefreshPanel1.ClientID %>");
instead of this:
ig_getWebControlById('WebAsyncRefreshPanel1');
And "refreshing sybmol" appears, but on a server side no events are triggered like:
WebAsyncRefreshPanel1_PreRender...
Any idea why?
Thanks.
Thanks a lot Praveen, but I'm affraid this does not work as well. I've tried it before and now again but my graph does not change.In IE refresh symbol appears but not change happens inside :-(.
Quite annoying I've spent 2 days trying different things with no luck, I've checked almost all current issues on this forum :-(.