EasyUI Forum
May 17, 2024, 05:51:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: showPageList:false in datagrid  (Read 10422 times)
crosemffet
Jr. Member
**
Posts: 68



View Profile WWW Email
« on: January 24, 2014, 12:44:06 PM »

hello, that's my code:
---------------
<table id="dg" name="dg" title="<?php echo $textows[29];?>" class="easyui-datagrid" style="width:600px;height:614px">
   <thead>
      <tr>
      <th field="wname" width="50">Windows Name</th>
      <th field="enabled" width="50">Enabled</th>
      <th field="group_id" width="50">Group</th>
      <th field="alarm_timer" width="50">AT</th>
        <th field="alarm_score" width="50">AS</th>
      </tr>
   </thead>
</table>
<div id="toolbar">
   <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="newUser()">New User</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editUser()">Edit User</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="destroyUser()">Remove User</a>
</div>
</center>
<script>
$('#dg').datagrid({
   pagination:true,
   pageSize:20,
   url:"ajaxCommander.php?action=getAllUsers",
   rowNumbers:true,
   fitColumns:true,
   singleSelect:true,
   toolbar:"#toolbar",
   autoRowHeight:false,
   scrollbarSize:0
})
var pager = $('#dg').datagrid('getPager');
pager.pagination({showPageList:false});
</script>
-----------
everything is fine, except showPageList:false is not working.
at the botton of the datagrid, still pagelist=20
I want to hide the pagelist selection.
thanks in advance,
« Last Edit: January 24, 2014, 02:43:07 PM by crosemffet » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 25, 2014, 12:57:53 AM »

Please refer to this example http://jsfiddle.net/r5KEs/. The 'showPageList:false' works fine.
« Last Edit: January 25, 2014, 01:00:44 AM by stworthy » Logged
crosemffet
Jr. Member
**
Posts: 68



View Profile WWW Email
« Reply #2 on: January 25, 2014, 03:20:06 AM »

hello stworthy. thanks for your support, you are really very kind.
unfortunately the jsfiddle.net example provided does not work in my browser.
I'm using internet explorer 8 and 9.
in google chrome works fine, in safari works fine too, but internet explorer I can't make it work.
that's the IE9 error log from internet explorer:

----------
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Sat, 25 Jan 2014 10:17:56 UTC


Message: Access is denied.

Line: 1513
Char: 2
Code: 0
URI: http://code.jquery.com/jquery-1.10.1.js

------------------

any idea...?
thanks again... !.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: January 25, 2014, 04:38:04 AM »

Please use jQuery version 1.9.1 instead. Try this http://jsfiddle.net/r5KEs/1/
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!