• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
some trouble with jqgrid

#1
[eluser]teddy[/eluser]
everything is ok when I used Jqgrid with php, but when I apply to script below with views in codeigniter I have meet some troubles

1. Formate datetime is just show date and time is show 00:00:00
2. Jqgird not show filter toolbar

I don't know what happen with my code, or I miss something. Thank you for reading my topic

Code:
[removed]
        $(document).ready(function (){
            jQuery("#list").jqGrid({              
                url:'<?=$base_url.'index.php/admin/users/list_users'?>',            
                mtype : "post",    
                datatype: "json",  
                colNames:['id','Họ tên','username','Email','Ngày đăng ký'],
                colModel:[
                    {name:'id', index:'id', width:55,hidden:true},
                    {name:'hoten',index:'hoten', width:100, align:"left",sortable:true},
                    {name:'username',index:'username', width:150, align:"left",search:true,sortable:true},                
                    {name:'Email',index:'phone', width:100, align:"right",search:true,sortable:true},
                   {name:'date_added', index:'date_added'
                        ,formatter:'date', formatoptions: {newformat:'d-m-Y: H:i:s'}
                        , align:'center',search:true,sortable:true}  
                
                ],
                rowNum:10,
                width: 750,
                height: 300,
                rowList:[10,20,30],
                pager: '#pager',
                sortname: 'id',
                viewrecords: true,
                rownumbers: true,
                 //loadonce:true,
                gridview: true,
    
                caption:"Danh sách Users"
            }).navGrid('#pager',{edit:true,add:true,del:true,refesh:true});
        });


      jQuery('#list').jqGrid('filterToolbar', { searchOnEnter: true, enableClear: false });

[removed]


Messages In This Thread
some trouble with jqgrid - by El Forum - 11-08-2012, 11:10 AM
some trouble with jqgrid - by El Forum - 11-09-2012, 07:30 AM
some trouble with jqgrid - by El Forum - 11-09-2012, 08:15 AM
some trouble with jqgrid - by El Forum - 01-11-2013, 09:13 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.