Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I set grouping:true it throws exception - uncaught exception: jqGrid - No such method: groupingSetup.
Hi Below is my code for JqGrid. I am passing the url & triggering the reload on button click event. When I dont pass the grouping:true, it works fine.

Please Help me ASAP. I have a demo to show.
Thanks in advance.
CSS
$('#tblInputSources').jqGrid({
            //url: self.Resources.get('SystemServiceGridUrl'),
            datatype: 'json',
            colNames: [
                'InputTypeId',
                'InputTypeName',
                'ExternalInputId',
                'InputSourceName',
                'StoppedTime'
            ],
            colModel: [
                { name: 'InputTypeId', hidden: true, sortable: false, resizable: false },
                { name: 'InputTypeName', hidden: false, sortable: false, resizable: false },
                { name: 'ExternalInputId', hidden: true, sortable: false, resizable: false },
                { name: 'InputSourceName', hidden: false, sortable: false, resizable: false },
                { name: 'StoppedTime', hidden: false, sortable: false, resizable: false }
            ],
            mtype: 'GET',
            caption: 'This is title',
            rowNum: 100,
            hidegrid: false,
            autowidth: true,
            loadonce: false,
            viewrecords: true,
            loadui: 'block',
            width: 100,
            height: 420,
            //search: true,
            multiselect: true,
            //multiselectWidth: 28,
            loadtext: 'Add Localization...',
            sortname: 'InputTypeName',
            grouping: true,
            groupingView: {
                groupField: ['InputTypeName'],
                groupText: ['<input type="checkbox" class="groupHeader"/> <b>  {0}  </b>'],
                hideFirstGroupCol: true,
                groupCollapse: [false]
            }
        });
Posted
Updated 3-Jul-14 23:24pm
v2

may your problem -- turns out jqGrid saves the ID of the table tag, and then references the table later using that tag. Giving the an ID fixed the problem.

See it may help you
 
Share this answer
 
Comments
RajKurle 4-Jul-14 3:55am    
I dont understand. Please describe the solution.
Thanks for reply...
[no name] 4-Jul-14 4:16am    
see this solution
http://www.trirand.com/blog/?page_id=393/help/uncaught-exception-jqgrid-no-such-method-navgrid
SQL
Hurrayyyyyy.

I was missing to add the reference of **grid.grouping.js**
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900