EasyUI Forum
May 19, 2024, 01:04:57 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Combogrid Pagination isn't working  (Read 13343 times)
jQuery player
Newbie
*
Posts: 3


View Profile
« on: October 31, 2013, 11:19:23 PM »

well,

First thanks, have been using jeasyui a lot in my application. Easy to use and great component.

about the bug, i am not sure , if its a bug or if any one has faced this earlier but i couldn't find any post related to this.

i am using combogrid with pagitaion (true). paging works perfectly , but somehow the inputs in the pagination [select (class="pagination-page-list") and input (class="pagination-num") ] does not work in any browser. the select dropdown doesnot appear after we click and cannot write anything in input pagination number textbox . I am using latest chrome (Version 30.0.1599.101 m) and firefox (24.0) .tested in both the browser but same result.

I even tried to look to the core to see if there is something that is disabling the inputs but found none,.the pagination simply append those inputs in there corresponding divs.

So i was wondering , if i am missing something (since no one till now has noticed such thing..) and yes i couldnot find any other examples where the pagination(inputs) are working. (the demo doesnoe have combogrid with pagination in it)

i guess there is nothing wrong with pagination as it works perfectly, still i will paste my codes here

      
Code:
 $('#testId').combogrid({
            panelWidth:400,
            panelHeight:350,
            pageSize:100,
            pagination:true,
            multiple:false,
            url: 'someurl',
            idField:'category_name',
            textField:'category_name',
            //mode:'remote',
            keyHandler:{
                    up: function(){
                            keyhandlerOptions(this,-1); <--- modified the default keyhandler  which works ( and i don't think this is causing that problem)
                    },
                    down: function(){
                            keyhandlerOptions(this,1);
                    },
                    enter: function() {
                        if(clientcategory_enter_click==0){
                           var q=$(this).combogrid('getText');
                            $(this).combogrid('grid').datagrid('load',{q:q});
                        }else{
                            keyhandlerOptions(this,0);
                            $(this).combogrid('hidePanel');
                        }
                    },
                    query: function(q) {
                            clientcategory_enter_click=0
                            $(this).focus();
                    }
            },
            onSelect:function(rowIndex, rowData) {
                clientcategory_enter_click= 1;
                clientSubCategoryComboGrid(rowData.id);
            },
            columns:[[
                    {field:'id',title:'categoryid',width:150},
                    {field:'category_name',title:'categoryname',width:150},
                    ]]

        });

looking forward to your reply,

thanks.
« Last Edit: October 31, 2013, 11:24:46 PM by jQuery player » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 01, 2013, 12:10:02 AM »

Here is the combogrid example having pagination. It works fine.
http://jsfiddle.net/8PryD/
Logged
jQuery player
Newbie
*
Posts: 3


View Profile
« Reply #2 on: November 01, 2013, 12:23:21 AM »

well yes.. thanks for the fiddle link and fast reply....the things that i mentioned , works in here... so i will go through my codes again ..
will get back if there is anything

thanks again.
Logged
jQuery player
Newbie
*
Posts: 3


View Profile
« Reply #3 on: November 01, 2013, 01:07:37 AM »

well, yes i figured out.. that is not working in jquery easyui version 1.2.6

tried loading those old files in fiddle you created and got the bug .

is it so ?
« Last Edit: November 01, 2013, 02:46:50 AM by jQuery player » 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!