|
Title: showPageList:false in datagrid Post by: crosemffet 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, Title: Re: showPageList:false in datagrid Post by: stworthy on January 25, 2014, 12:57:53 AM Please refer to this example http://jsfiddle.net/r5KEs/. The 'showPageList:false' works fine.
Title: Re: showPageList:false in datagrid Post by: crosemffet 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... !. Title: Re: showPageList:false in datagrid Post by: stworthy on January 25, 2014, 04:38:04 AM Please use jQuery version 1.9.1 instead. Try this http://jsfiddle.net/r5KEs/1/
|