Removing all events in 'ext: CalendarPanel'

Is it possible to remove all event items from ext.net calendar (C #)?

<ext:CalendarPanel ID="CalendarPanel1" runat="server" Region="Center">
  <CalendarStore ID="CalendarStore1" runat="server">
    <Calendars>
      <ext:CalendarModel CalendarId="1" Title="Home" />
    </Calendars>
  </CalendarStore>
  <MonthView runat="server" ShowHeader="true" ShowWeekLinks="true" 
      ShowWeekNumbers="true" />  
    <Listeners>         
      <DayClick Fn="CompanyX.ShowDiagClickDay" Scope="CompanyX" />
    </Listeners>
  </MonthView>
</ext:CalendarPanel>

      

I tried this code but with no result:

this.CalendarPanel1.CalendarStore.RemoveAll();
this.CalendarPanel1.CalendarStore.Sync();

      

+3


source to share


1 answer


using JavaScript:

CompanyX.getStore().removeAll();

      

CompanyX is the namespace used: D



Using ASP.NET

CalendarPanel1.CalendarStore.RemoveAll();
CalendarPanel1.Render();

      

+3


source







All Articles