[CLOSED] Gridpanel Paging Button Event

  1. #1

    [CLOSED] Gridpanel Paging Button Event



    Hi,

    I need to take gridpanel paging toolbar button event on changing the page.

    On changing the page i need to check if there is any changes in page or not if there is changes then i have to save those changes and after i need to change the page. for that i need page toolbar button event.
    How to do this.

    <ext:GridPanel ID="GrdPnl1" runat="server" TitleCollapse="false" Height="500" AutoScroll="true"
    Width="300" StoreID="Store1">
    <Listeners>
    <CellClick Fn="cellClick" />
    </Listeners>
    <ColumnModel ID="ctl350" runat="server">
    <Columns>
    <ext:Column ColumnID="GROUP_NAME" DataIndex="GROUP_NAME" Header="Name" Width="300">
    </ext:Column>
    <ext:Column ColumnID="GROUP_ID" DataIndex="GROUP_ID" Header="ID" Width="300">
    </ext:Column>
    </Columns>
    </ColumnModel>
    <Plugins>
    <ext:GridPanelMaintainScrollPositionOnRefresh ID="GridPanelMaintainScrollPositionOnRefresh1"
    runat="server">
    </ext:GridPanelMaintainScrollPositionOnRefresh>
    </Plugins>
    <BottomBar>
    <ext:PagingToolbar DisplayInfo="false" ID="PagingToolBar1" runat="server" PageSize="15"
    StoreID="Store1">
    </ext:PagingToolbar>
    </BottomBar>
    </ext:GridPanel>
    
    
    <ext:Store ID="StoreGroup" runat="server" AutoLoad="true">
    <Reader>
    <ext:JsonReader>
    <Fields>
    <ext:RecordField Name="GROUP_NAME" />
    <ext:RecordField Name="GROUP_ID" />
    </Fields>
    </ext:JsonReader>
    </Reader>
    </ext:Store>
    Thanks
    Speedstep
  2. #2

    RE: [CLOSED] Gridpanel Paging Button Event

    Hi,

    There was the similar request, please see

    http://forums.ext.net/showthread.php?5160
    Last edited by geoffrey.mcgill; Feb 20, 2011 at 3:56 PM.
  3. #3

    RE: [CLOSED] Gridpanel Paging Button Event



    Hi,

    In the post i see this lines.

    Those buttons call store's reload with various parameters. Therefore you can listen BeforeLoad event of Store

    but i can't get you. how to do this with store.

    please provide some example for paging toolbar first,next,previous,last button event..

    Thanks
    speedstep

  4. #4

    RE: [CLOSED] Gridpanel Paging Button Event

    Hi,

    Please provide more details what you mean "i can't get you"?


    Those buttons from PagingToolbar just call store's load function and pass start/limit parameters. Therefore just handle BeforeLoad event of Store (BeforeLoad will be fired immediatly after those buttons click)


    Just add the following listener to the Store
    <BeforeLoad Handler="perform required actions" />

Similar Threads

  1. Replies: 0
    Last Post: May 25, 2012, 9:02 AM
  2. Need help for Combobox paging event
    By phancongphuoc in forum 1.x Help
    Replies: 5
    Last Post: Apr 19, 2012, 2:29 PM
  3. Replies: 1
    Last Post: Dec 27, 2011, 1:47 PM
  4. [CLOSED] Gridpanel Paging Change Event Issue
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 06, 2011, 9:29 AM
  5. [CLOSED] paging toolbar event in GridPanel
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 25, 2009, 7:14 AM

Posting Permissions