Oct 26, 2009, 11:39 AM
Clear Grid data server side
I found this code in the examples:
How do I clear all data from the grid?
Thanks!
<ext:Button runat="server" Text="Clear" AutoPostBack="false" Icon="Cancel">
<Listeners>
<Click Handler="#{GridPanel1}.clear();if (!#{GridPanel1}.hasSelection()) {#{btnDelete}.disable();}" />
</Listeners>
</ext:Button>
Works great for clearing the data in a grid client side but I need to clear it server side. In code behind there is no .Clear(). I tried GridPanel1.ClearContent() and nothing happens. I also tried GridPanel1.Items.Clear()How do I clear all data from the grid?
Thanks!