EasyUI Forum

General Category => Bug Report => Topic started by: jQuery player on October 31, 2013, 11:19:23 PM



Title: Combogrid Pagination isn't working
Post by: jQuery player 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.


Title: Re: Combogrid Pagination isn't working
Post by: stworthy on November 01, 2013, 12:10:02 AM
Here is the combogrid example having pagination. It works fine.
http://jsfiddle.net/8PryD/


Title: Re: Combogrid Pagination isn't working
Post by: jQuery player 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.


Title: Re: Combogrid Pagination isn't working
Post by: jQuery player 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 ?