Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Problem about the reloadgrid and paging-sorting
01/10/2010
12:07
Avatar
Eomer
New Member
Members
Forum Posts: 1
Member Since:
29/06/2010
sp_UserOfflineSmall Offline

Hello,

I have a problem about the reload the grid and paging-sorting.

If i put "loadonce: true" -> Paging and Sorting work! but the reloadgrid no.

And i don't put "loadonce: true" -> The ReloadGrid work but the paging-sorting no.....

The code is:

        jQuery(document).ready(function(){
    
            jQuery("#lista").jqGrid({
                url:'lista.php',
                datatype: 'xml',
                mtype: 'GET',
                colNames:['','Titulo','Fecha'],
                colModel :[
                  {name:'icono', index:'icono', width:20, align:'center'},
                  {name:'titulo', index:'titulo', width:400, align:'center', sortable:true},
                  {name:'fecha', index:'fecha', width:100, align:'center', sortable:true}
                ],
                pager: $('#pager'),
                rowNum:30,
                rowList:[10,20,30,40],
                sortname: 'fecha',
                sortorder: 'desc',
                viewrecords: true,
                topPager: true,
                height: "auto",
                multiselect: false,
              rownumbers: false,

                    //loadonce: true,
                //forceFit: true,
                    //loadui: "disable",

                loadtext:'Actualizando....',
                subGrid: true,
                                subGridRowExpanded: function(subgrid_id, row_id) {
                                    var subgrid_table_id, pager_id;
                                    
                                    subgrid_table_id = subgrid_id + "_t";
                                    subgrid_pager_id = "p_" + subgrid_table_id;
                                    
                                    jQuery("#"+subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "'></div>");
                                    
                                    jQuery("#"+subgrid_table_id).jqGrid({
                                        
                                        url:"lista_hijos.php?id=" + row_id,
                                        datatype: "xml",
                                        //mtype: 'GET',
                                        colNames:['','Titulo','Fecha'],
                                        colModel: [
                                      {name:'hjicono', index:'hjicono', width:20, align:'center'},
                                      {name:'hjtitulo', index:'hjtitulo', width:400, align:'center'},
                                      {name:'hjfecha', index:'hjfecha', width:96, align:'center'}
                                
                                        ],
                                        altRows: false,
                                        height: "100%",
                                        scroll: false,
                                        scrollrows: true,
                                        rowNum:10,
                                        pager: jQuery('#'+subgrid_pager_id),
                                        sortname: 'hjfecha',
                                        viewrecords: true,
                                        /*
                                        loadonce: true,
                                        forceFit: true,
                                        loadui: 'block',
                                        */
                                        recordpos: 'center',
                                        sortorder: "desc"
                                    });

                                    jQuery("#"+subgrid_table_id).jqGrid('navGrid',"#"+subgrid_pager_id,{del:false,add:false,edit:false,search:false});
                        }

});

                                   jQuery("#lista").jqGrid('navGrid','#pager',{del:false,add:false,edit:false,search:false});

});

Thanks very much and disculpe my english.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
59 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information