Results 1 to 6 of 6

Thread: Page number field in paging toolbar for grid missing value in the markup

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    California
    Posts
    19
    Vote Rating
    1
      0  

    Default Page number field in paging toolbar for grid missing value in the markup

    While inspecting page number field for paging toolbar in grid i found that generated mark up is missing value which gets displayed under that field.
    I am attaching screen shot where in page number field value is 1 but not able to find same in markup.Screen Shot 2014-02-19 at 4.44.15 PM.jpg

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    505
      0  

    Default

    I am unable to see anything on your screenshot.

    Perhaps you can explain that the problem is in more detail. Is this will the default setup, or you trying to do something special?
    Do you have some code?

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Location
    California
    Posts
    19
    Vote Rating
    1
      0  

    Default

    I am trying to get value of page field from paging toolbar from generated markup but not able to see whatever value is there in that field.

    i.e. suppose if in paging toolbar we put 2 for page number then in generated markup for that input field the value is always 0 not 2.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    505
      0  

    Default

    Why not query the component instead:

    Code:
    var grid = Ext.create('Ext.grid.Panel', {
    
    ..
    
        dockedItems: [{
            xtype: 'pagingtoolbar',
            store: store,
            dock: 'bottom',
            displayInfo: true
        }]
    });
    
    Ext.create('Ext.Button', {
        text: 'Click me',
        renderTo: Ext.getBody(),
        handler: function() {
            var tbar = grid.query('pagingtoolbar')[0], // or grid.getPlugin() if setup as plugin
                pval = tbar.query('#inputItem')[0];    // itemId of textbox in items array
    
            console.log(pval.value);
        }
    });

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Location
    California
    Posts
    19
    Vote Rating
    1
      0  

    Default

    Thanks for your suggestion but the issue is not for me to unable to get value of input number field but it's with testing team .

    Selenium testing team is trying to get value of that field from markup but unable to do so.

  6. #6
    Sencha User
    Join Date
    Mar 2012
    Location
    California
    Posts
    19
    Vote Rating
    1
      0  

    Default

    is it a bug in library that doesn't generate value of input number field in markup or is there a way to get the value ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •