Sep 05, 2011, 10:57 AM
[CLOSED] Gridpanel Paging Change Event Issue
Hi all, I have a grid panel with a paging plugin, the store for the gridpanel uses a handler to get the data. I have a direct event attached with the paging plugin (ChangeEvent). when the page loads, the event attached to the paging toolbar called twice. here are my questions,
1.Why this change event fires when the page loads, logically it should only fire when the page changes, for the first page it should not fire
2. Event if it fires (might be design flaws in ext) why it fires twice.
Sequence:
Handlers is called... Change event fires in parallel....
Handler sends response after that this event fires. It took me hardly 3 hours, I debug all my code and made sure there are nothing related to paging. Kindly give me a solution soon. Kindly remember that I DONT WANT UNNECESSARY POSTBACKS
1.Why this change event fires when the page loads, logically it should only fire when the page changes, for the first page it should not fire
2. Event if it fires (might be design flaws in ext) why it fires twice.
Sequence:
Handlers is called... Change event fires in parallel....
Handler sends response after that this event fires. It took me hardly 3 hours, I debug all my code and made sure there are nothing related to paging. Kindly give me a solution soon. Kindly remember that I DONT WANT UNNECESSARY POSTBACKS
<ext:Store ID="storeGrid" AutoLoad="true" runat="server" IgnoreExtraFields="true"
RemoteSort="true" ShowWarningOnFailure="false">
<Proxy>
<ext:HttpProxy Timeout="120000" Url="Handlers/xyz.ashx" Method="GET">
</ext:HttpProxy>
</Proxy>
</ext:Store>
<ext:PagingToolbar ID="PagingToolBar1" runat="server" DisplayInfo="true">
<DirectEvents>
<Change OnEvent="Event1">
</Change>
</DirectEvents>
</ext:PagingToolbar>