PDA

View Full Version : [CLOSED] Set Store StoreReadDataEventArgs Start property



rbtceo
Jul 02, 2014, 8:43 AM
Hi All,

I have a text field that reloads a store with paging.



<ext:Store runat="server" ID="myStore" PageSize="50" OnSubmitData="myStore_Submit" OnReadData="myStore_OnReadData">
<Proxy>
<ext:PageProxy runat="server" Timeout="120000" AutoDataBind="False"/>
</Proxy>
</ext:Store>




<ext:TextField runat="server" ID="myFilter">
<Listeners>
<Change Handler="#{myStore}.reload();" Delay="2000"/>
</Listeners>
</ext:TextField>


The thing is: I would like to set StoreReadDataEventArgs Start property to 0 before reload it.

Something like:


<ext:TextField runat="server" ID="myFilter">
<Listeners>
<Change Handler="#{myStore}.StoreReadDataEventArgs.Start=0; #{myStore}.reload();" Delay="2000"/>
</Listeners>
</ext:TextField>


Is it possible?

Thank you.

Daniil
Jul 02, 2014, 6:39 PM
Hi @rbtceo,

I would suggest

store.loadPage(1);

rbtceo
Jul 03, 2014, 12:09 AM
Daniil,

Thank you.

The thread can be closed.