[CLOSED] Manual toolbarPaging

  1. #1

    [CLOSED] Manual toolbarPaging

    Hi!

    I wish for my own means to control the toolbarPaging .. but I'm not finding properties in the control to handle the Total of records, for example.

    I'd like to make paging more or less as I do with a JSON webservice, but I am returning to the store property 'data' a datareader and I will need a paginate it (will be thousands of records returned).

    Thanks for any help!
    Last edited by Daniil; Feb 10, 2012 at 12:13 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please clarify are you basing on the following example, right?
    https://examples2.ext.net/#/GridPane...ON_WebService/

    but I'm not finding properties in the control to handle the Total of records, for example.
    It should be in a response. If you would look at a paging response of the example I mentioned you will look:
    "TotalRecords":36
    which is internally used to set up the "total" field of a PagingToolbar.

    Generally, "control PagingToolbar" sounds too common, the requirement is not clear. Please provide more details.

    The following is also not clear:
    I am returning to the store property 'data' a datareader
    Please clarify as well.
  3. #3
    Hi Daniil...

    Sorry for not being clear on my problem. I'll try to describe the best way possible.

    1 - I know how to paginate using toolbarPaging JsonWebService. I already have this in some parts of the system.
    2 - I´m basing in this example https://examples2.ext.net/#/GridPane...ta/DataReader/ and in this https://examples2.ext.net/#/GridPane...l/Reconfigure/.
    3 - My goal is to make a reusable grid...
    4 - My problem now is related to paging data.

            Me.Store1.DataSource = Me.GetDataReader()
            Me.Store1.DataBind()
    GetDataReader (local function) is returning all the records. I want to paginate it as is done in Json WebService. But that must also modefields and columns are created dynamically...

    I already have most of it working.

    a - I need just manually set the totalRecords property of toolbarPaging.
    b - When any action that changes the page or page size is performed in toolbarPaging, I need to trigger the GetDataReader.

    If there is any way to return an object directly ext.net.Paging to the store.DataSource, can also be ... but how is the dynamic settings of modelfield and columns?

    Probably I'm seeing problems where none exist. But if you can guide me, I'll be very grateful.

    Thanks for any help
  4. #4
    Well, the PagingToolbar API is here:
    http://docs.sencha.com/ext-js/4-0/#!...toolbar.Paging

    Tick the "Hide Inherited" Checkbox.

    Really, there are no things in API to achieve your requirement. Though, I think, it's possible. But it might be rather difficult.

    I would recommend you to use PageProxy:
    https://examples2.ext.net/#/GridPane..._Sorting/Page/
  5. #5
    Hi... Thanks for your Help...

    I solved creating a Json Webservice.

    Using this example http://forums.ext.net/showthread.php...taTable-Paging, I converted the datatable in ext.net.Paging

    Thanks a lot!

Similar Threads

  1. [CLOSED] Manual filter sample
    By majestic in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 24, 2012, 10:44 AM
  2. GridPanel Store manual filter
    By cwolcott in forum 1.x Help
    Replies: 2
    Last Post: Jan 19, 2012, 4:06 PM
  3. Manual Implementation of Paging
    By Nojj02 in forum 1.x Help
    Replies: 0
    Last Post: Aug 31, 2010, 11:45 PM
  4. [CLOSED] Manual set of SqlDataSource V 1.0
    By egodoy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 09, 2010, 1:00 PM
  5. manual installation in hosting provider
    By tkm in forum 1.x Help
    Replies: 2
    Last Post: Sep 20, 2009, 6:01 AM

Posting Permissions