[CLOSED] How to hide PagingToolbar controls on the server?

  1. #1

    [CLOSED] How to hide PagingToolbar controls on the server?

    Hi,

    This question is related to http://forums.ext.net/showthread.php...-PagingToolbar.
    I have a client side function doing that but can't reproduce this behavior on the server. Please suggest how to hide/show the Pager controls on the server. PagingToolbar.Items collection doesn't seem to return the Prev, Next, First, Last and Refresh objects references. Also, there're a few display and text items there to toggle.
    Last edited by Baidaly; Apr 10, 2013 at 8:33 PM. Reason: [CLOSED]
  2. #2
    Hi Vadym,

    Yes, it is client side things. You can call a JavaScript function from server to hide those items.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi Vadym,

    Yes, it is client side things. You can call a JavaScript function from server to hide those items.
    In other words, I can't do it synchronously on the server?
  4. #4
    I don't quite understand what you mean. A browser doesn't do anything until a server response comes.

    Do you need to hide those items during an AJAX request?
  5. #5
    Sorry for confusion, I was just looking for a clean way to do it on the server in Page_Load event without rendering a client script.
  6. #6
    Hello!

    Quote Originally Posted by Daniil View Post

    Yes, it is client side things. You can call a JavaScript function from server to hide those items.
    Unfortunately, you cannot do this from Server Side without using JavaScript. However, you can add listener for AfterRender event from Server Side to hide required button immediately using your JS function.
  7. #7
    Thanks for clarification guys! Please mark this thread as closed.
  8. #8
    Those items should be available in a BeforeRender listener. So, it might be better to use it instead of an AfterRender one.

Similar Threads

  1. [CLOSED] Hide PagingToolBar's default separators
    By RCN in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 03, 2013, 5:55 PM
  2. [CLOSED] How to hide paging related controls on a PagingToolbar?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 27
    Last Post: Jul 12, 2012, 9:38 PM
  3. How to hide first/last buttons in a pagingtoolbar
    By zhangsir199 in forum 1.x Help
    Replies: 5
    Last Post: May 21, 2012, 11:08 AM
  4. Replies: 2
    Last Post: Feb 24, 2010, 5:04 PM
  5. PagingToolBar - hide - "Page 1 of 2" part?
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Jun 05, 2009, 1:56 AM

Tags for this Thread

Posting Permissions