Jun 14, 2013, 12:53 PM
[CLOSED] Bind store data in direct method
Hello,
For a known reason, I have to set a radar chart's store data as "MyStore.Data=ChartData" instead of MyStore.DataSource = ChartData; MyStore.DataBind(). (Otherwise radar axis disappears, anyway...)
The problem is that, above method works during page load but if I change store data in Ajax event handler @ server side (direct method), store data does not change and the chart remains intact. How can I re-set store data in an Ajax handler @server side if MyStore.Data = ChartData method is used?
Sample but useless / standard code:
For a known reason, I have to set a radar chart's store data as "MyStore.Data=ChartData" instead of MyStore.DataSource = ChartData; MyStore.DataBind(). (Otherwise radar axis disappears, anyway...)
The problem is that, above method works during page load but if I change store data in Ajax event handler @ server side (direct method), store data does not change and the chart remains intact. How can I re-set store data in an Ajax handler @server side if MyStore.Data = ChartData method is used?
Sample but useless / standard code:
<ext:Store runat="server" ID="MyStore">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="Name" />
<ext:ModelField Name="Data1" />
<ext:ModelField Name="Data2" />
<ext:ModelField Name="TipLabel1" />
<ext:ModelField Name="TipLabel2" />
</Fields>
</ext:Model>
</Model>
<Sorters>
<ext:DataSorter Property="Data1"></ext:DataSorter>
</Sorters>
</ext:Store>
C#
MyStore.Data = MyChartData;
Thanks.
Last edited by Daniil; Jun 14, 2013 at 9:19 PM.
Reason: [CLOSED]