Jump to content

Dynamic label in grid weboptions


robinhodemorais

Recommended Posts

Hello, I have a dbgrid and put a label next to the buttons with the number of grid records, but this information will change every time the user performs one, to put a label I managed to do it like this

function pagingBar.boxready(sender, width, height, eOpts)
{

  this.add({
     xtype:'label',
     html: '10.358'
  });
  
    this.add({
     text: 'Pedido',
     handler: function() {
       top.ajaxRequest(sender,'novopedido', [])
     }
  });
  
  }


But how can I make it dynamic?
because in this same function I use it to include buttons

 

image.png.02b2c2b1e6b095fa33e1f5f75cbfb646.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...