[CLOSED] Bind store data in direct method

  1. #1

    [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:

     <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]
  2. #2
    Hi @bayoglu,

    During a DirectEvent/DirectMethod, please use a Store's LoadData method.
  3. #3
    Thanks Daniil, issue solved. Please mark as closed.

Similar Threads

  1. Replies: 8
    Last Post: Sep 10, 2012, 6:38 AM
  2. Replies: 0
    Last Post: Apr 22, 2012, 9:39 AM
  3. Replies: 1
    Last Post: Dec 11, 2011, 6:45 AM
  4. [CLOSED] Bind data store to Radio Group
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 19, 2009, 11:27 AM
  5. Replies: 0
    Last Post: Feb 11, 2009, 3:05 AM

Posting Permissions