alesf76 Posted September 18, 2019 Share Posted September 18, 2019 Is it possible to show the summary values in the paging bar ? Link to comment Share on other sites More sharing options...
Sherzod Posted September 18, 2019 Share Posted September 18, 2019 3 hours ago, alesf76 said: Is it possible to show the summary values in the paging bar ? Hello, Can you please explain in more detail? Link to comment Share on other sites More sharing options...
alesf76 Posted September 19, 2019 Author Share Posted September 19, 2019 I would like to put the summaries values on the left of the paging arrows Link to comment Share on other sites More sharing options...
Sherzod Posted September 19, 2019 Share Posted September 19, 2019 7 minutes ago, alesf76 said: I would like to put the summaries values on the left of the paging arrows From where? Or do you have this amount? Link to comment Share on other sites More sharing options...
alesf76 Posted September 19, 2019 Author Share Posted September 19, 2019 From here, thanks Link to comment Share on other sites More sharing options...
Sherzod Posted September 19, 2019 Share Posted September 19, 2019 Just now, alesf76 said: From here, thanks OK, I will analyze. Link to comment Share on other sites More sharing options...
Sherzod Posted September 19, 2019 Share Posted September 19, 2019 2 hours ago, alesf76 said: From here, thanks One of the possible solutions I think, can you try? function afterrender(sender, eOpts) { sender.getSummaryStrs = function(sender) { var me = sender, rStr = '', sFeature = me.getView().findFeature('summary'); if (sFeature && sFeature.getSummaryBar()) { sFeature.getSummaryBar().ariaEl.select('.x-grid-cell-inner').elements.forEach(function(el) { if (el.innerHTML != ' ') { rStr += el.innerHTML.replace(/ /g, ' ') + ',' } }) } return rStr.replace(/.$/, ""); }; if (sender.pagingBar) { sender.pagingBar.add({ xtype: "tbtext", text: "", id: sender.id + "_summaryStr" }); sender.getStore().on('datachanged', function() { if (Ext.get(sender.id + "_summaryStr")) { Ext.get(sender.id + "_summaryStr").setHtml(sender.getSummaryStrs(sender)) } }); } } 1 Link to comment Share on other sites More sharing options...
alesf76 Posted October 17, 2019 Author Share Posted October 17, 2019 Thanks! It seems to work. Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 17, 2019 Share Posted October 17, 2019 On 19/09/2019 at 08:07, Sherzod said: Uma das soluções possíveis, eu acho, você pode tentar? Can you put the number of grid records and which one? Example: 25/1000 Link to comment Share on other sites More sharing options...
Sherzod Posted October 17, 2019 Share Posted October 17, 2019 Just now, eduardosuruagy said: Can you put the number of grid records and which one? Example: 25/1000 Where to? Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 17, 2019 Share Posted October 17, 2019 3 minutes ago, Sherzod said: Para onde? Show in grid next to arrows. Link to comment Share on other sites More sharing options...
Sherzod Posted October 17, 2019 Share Posted October 17, 2019 Just now, eduardosuruagy said: Show in grid next to arrows. In PagingBar? Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 17, 2019 Share Posted October 17, 2019 2 minutes ago, Sherzod said: No PagingBar? That's right Link to comment Share on other sites More sharing options...
Sherzod Posted October 17, 2019 Share Posted October 17, 2019 Have you tried searching on the forum? The forum has answers to your question. Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 17, 2019 Share Posted October 17, 2019 2 minutes ago, Sherzod said: Você já tentou pesquisar no fórum? O fórum tem respostas para sua pergunta. There is a code in the forum and it changes to the number of grid pagination records, and that was a problem, so I just wanted the number of grid records. Link to comment Share on other sites More sharing options...
Sherzod Posted October 17, 2019 Share Posted October 17, 2019 3 minutes ago, eduardosuruagy said: There is a code in the forum and it changes to the number of grid pagination records, and that was a problem, so I just wanted the number of grid records. http://forums.unigui.com/index.php?/topic/7791-unidbgrid-show-record-total-no/&do=findComment&comment=39789 Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 17, 2019 Share Posted October 17, 2019 Just now, Sherzod said: http://forums.unigui.com/index.php?/topic/7791-unidbgrid-show-record-total-no/&do=findComment&comment=39789 Thank you very much!! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now