EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 06, 2025, 06:49:02 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
pagination button visible on demand
Pages: [
1
]
« previous
next »
Print
Author
Topic: pagination button visible on demand (Read 6555 times)
jaimi
Full Member
Posts: 121
pagination button visible on demand
«
on:
February 05, 2015, 11:08:06 PM »
I want the buttons of a pagination to be visible/invisible on the basis of the loaded data.
How to?
My pagination:
var PferdPager = $('#edgZuchtperiode').datagrid('getPager');
PferdPager.pagination({
showPageList: false
,showRefresh : false
,displayMsg : '{from} bis {to} von {total} Zuchtperioden'
,buttons:[
{iconCls:'icon-add' ,tooltip: 'Zuchtperiode beginnen',handler:function(){addZuchtperiode();}}
]
});//PferdPager
I tried the following at datagrid:
...
,onLoadSuccess:function(data){
var rowsLength = data.rows.length;
if (rowsLength > 0){
var curRow, vZUP_END;
for (var rowIndex = 0; rowIndex <= rowsLength; rowIndex++){
curRow = data.rows[rowIndex];
vZUP_END = curRow.ZUP_END;
if (!vZUP_END) {->>the button of pagination should be invisible<<-}
}//for
...
But I realized, that the pagination is loaded first.
THX. Jaimi
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...