Show Posts
|
Pages: [1] 2
|
8
|
General Category / EasyUI for jQuery / Combogrid Hide Pagination in Scrollview & also changing form data variable
|
on: November 15, 2019, 04:53:17 AM
|
Hi, I have 2 questions 1. Combogrid with load-on-demand works perfectly. We want to hide the pagination row and therefore, we set pagination=false, but then data is not being loaded. How can we achieve that ? 2. When we scroll, the URL is called with form data with variables rows & page. Is it possible to change form data variables from rows to rowNo and page to pageNo ? we have few api that accept rowNo & pageNo as parameters. $('#tt').combogrid({ panelWidth:800, method: 'POST', url: 'ourUrl', idField:'id', textField:'text', fitColumns:true, view:scrollview, multiple: true, mode:'remote', fitColumns:true, pagination:true, pageSize: 50, columns:[[ {field:'id',title:'ID',width:80}, {field:'text',title:'Name',width:80,align:'left'}, ]], loadFilter: function (data) { return { total: data.TotalRecords, rows: data.Data, } }, });
Thanks,
|
|
|
13
|
General Category / EasyUI for jQuery / Re: Pivot Grid Totals
|
on: March 28, 2019, 05:00:39 AM
|
Hi,
It's done. I handled using the following code.
onLoadSuccess: function(){ $('#pg').pivotgrid('collapseAll'); var opt = $('#pg').pivotgrid('options'); var rows = opt.pivot.rows; var header = rows[0]; var title = $(this).data('datagrid').dc.header1.find('.datagrid-cell>span:first'); title.html('<span style="font-weight:bold">'+ header +'</span>'); }
You may close the ticket.
Regards,
|
|
|
|