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_Related Related Topics sp_TopicIcon
TreeGrid 20 Rows Limit
Tags: Tree Rows
24/01/2011
16:19
Avatar
dluis
Member
Members
Forum Posts: 19
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

I am having a problem with TreeGrid Adjacency with Json data. I'm sending in Json 23 rows but the Tree only shows 20.

Is this a bug or a feature? I already read the documentation and didn't find anything about it and also found this http://stackoverflow.com/quest..... with someone with the same problem.

24/01/2011
17:28
Avatar
emmanuro06
Member
Members
Forum Posts: 3
Member Since:
23/07/2010
sp_UserOfflineSmall Offline

There is a option. By default Jqgrid shows only 20 lines. But you can change with this option

rowNum:20

For example :

        jQuery("#tab").jqGrid({
                data: mydata,
               datatype: "local",
               height: 600,
               colNames:[
                   'id',
                   '<bean:message key="baws.callReport.date" />',
                   '<bean:message key="baws.callReport.entretien" />',
                   '<bean:message key="baws.callReport.gestionnaire" />',
                   '<bean:message key="baws.callReport.gestionnaire" />',
                   '<bean:message key="baws.callReport.gestionnaire" />'],
               colModel:[
                   {name:'id',index:'id', width:60, hidden:true},
                   {name:'dateEnt',index:'dateEnt', width:150, editable:true},
                   {name:'entretien',index:'entretien', width:150 ,editable:true},
                   {name:'client',index:'client', width:150, editable:true},
                   {name:'gestionnaire',index:'gestionnaire', width:250, editable:true},
                   {name:'cleAudit',index:'cleAudit', width:250, hidden:true}
                   ],
               grouping: true,
               toolbar: [true,"top"],
               ondblClickRow: function(rowId) {
                var cle = $('#tab').jqGrid('getCell', rowId, 'cleAudit');
                var url = "<html:rewrite forward='detailCallReport' />&cleAudit=" + cle
                window.location = url       
            },
               caption: "Manipulating Array Data",
               pager: '#ptab',
                   pgbuttons:true, // Bouton de changement de page
                   pginput:true,   // Input de changement de page
               rowNum:25,
               editurl: "server.php"
           });

24/01/2011
17:42
Avatar
dluis
Member
Members
Forum Posts: 19
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

Thanks. I thought that since there is no pagination on TreeGrids the RowNum wouldn't be necessary.

The line 1272 of grid.base.js:

if(ir==rn) { break; }

Should have in account if is a TreeGrid, and if yes, shouldn't break.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
37 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