[CLOSED] paging toolbar click event

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] paging toolbar click event

    is there anyway to detect click next/previous button in paging toolbar?
    or when user put the number?

    thanks
    Last edited by Daniil; Dec 19, 2011 at 5:51 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please see how to achieve that.

    Example
    <ext:PagingToolbar runat="server">
        <Listeners>
            <AfterRender Handler="this.prev.on('click', function () { alert('prev'); });
                                    this.next.on('click', function () { alert('next'); });
                                    this.inpuItem.on('change', function () { alert('change'); });" />
        </Listeners>
    </ext:PagingToolbar>
  3. #3
    i get inputitem is null or not an object :(

    this is my paging toolbar

    <BottomBar>
    <ext:PagingToolbar ID="PagingToolbar1" runat="server" HideRefresh="true" DisplayInfo="false" DisplayMsg="{0} - {1} of {2}" BeforePageText="">
                                                                                <Listeners>
                                                                                    <AfterRender Handler="this.prev.on('click', function () { alert('prev'; });
                                                                                                            this.next.on('click', function () { alert('next'); }); this.inpuItem.on('change', function () { alert('change'); });" />
                                                                                </Listeners>                                                                         
    </ext:PagingToobar>
    </BottomBar>
  4. #4
    Must be "inputItem", I missed that.
  5. #5
    nice, it works...thanks :)
  6. #6

    dont work

    it doesn't work for me.
    I wanna change the handler for next and prev buttons to fire with PageUp and PageDown key of keyboard. making a key map for them.
    pls tell how to do that.

    TypeError: this.prev.on is not a function
    Last edited by Elman; May 29, 2013 at 5:31 AM.
  7. #7
    Hi @Elman,

    Do you use Ext.NET v2?
  8. #8
    we are using ext.net 2.1 as a UI library for MVC.
    Thanks Daniil.
    Last edited by Elman; May 29, 2013 at 5:46 AM.
  9. #9
    To access a PagingToolbar Prev and Next buttons please use:
    App.PagingToolbar1.child("#prev");
    App.PagingToolbar1.child("#next");
  10. #10
    I did this too but its not working.

    var keyMap = new Ext.Net.KeyMap();
                var keyBinding = new Ext.Net.KeyBinding() { Handler = "App.pagingToolbar1.child('#next').handler" };
                keyBinding.Keys.Add(new Ext.Net.Key() { Code = Ext.Net.KeyCode.PAGEUP });
                keyMap.Binding.Add(keyBinding);
                CompaniesGrid.KeyMap = keyMap;
    Last edited by Elman; Jun 02, 2013 at 12:18 PM.
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 11
    Last Post: Jun 13, 2012, 4:53 PM
  2. [CLOSED] Refresh Event in Paging Toolbar
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 06, 2011, 2:46 PM
  3. Replies: 20
    Last Post: Nov 24, 2010, 12:39 PM
  4. [CLOSED] Paging Toolbar with Grid
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 23, 2009, 3:08 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