Forum

July 12th, 2025
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
jqGrid in a Google maps InfoWindow
26/01/2011
02:44
Avatar
sNagheenanajar
New Member
Members
Forum Posts: 1
Member Since:
26/01/2011
sp_UserOfflineSmall Offline

I have a jqGrid in an InfoWindow that doesn't quite work. It shows the data but the 'loading …' div never goes away(see attached screen shot), and the interactions with the columns is not completely functional. For example, if i resize a column nothing happens. Then if i sort one of the columns the resize takes effect(the sort is functional as well). Also, if i horizontally scroll the content scrolls but the headers do not. The loadComplete and gridComplete events both fire and the loadError does not.

Here is a snippit of code

$.post('getMaintModel', {}, function(data){
                    $('#maintList').jqGrid('GridUnload');
                    colModel = data
                    
                    $("#maintList").jqGrid({
                        url: 'getLocationMaintenance',
                        postData: {
                            'location': markerFunctionalLocation
                        },
                        sortname: 'Equipment',
                        datatype: 'json',
                        mtype: 'POST',
                        colNames: [],
                        colModel: colModel,
                        height: '180px',
                        forcefit: false, 
                        shinktofit: false, 
                        autowidth: false,
                        rowNum: 50,
                        rowList: [25, 50, 200],
                        pager: '#maintPager',
                        viewrecords: true,
                        scroll: 1,
                        prnNames: {
                            'npage': 10
                        },
                        gridComplete: function(){
                            $('#maintList').jqGrid('setGridWidth', 500, false)
                            $("#maintList").jqGrid('navGrid', '#maintPager', {
                                edit: false, //add iif based or permission level
                                add: false,
                                del: false,
                                search: false,
                                refresh: false
                            });
                            transformerInfoWindow.setOptions({
                                //content: $('#infoWindowTabs').clone(true)[0],
                                //content: $('#maintenanceTabDiv').clone(true)[0],
                                content: $('#maintenanceTabDiv').html(),
                                position: markerPosition
                            });
                            
                            
                            $([transformerInfoWindow.getContent()]).show();
                            transformerInfoWindow.close();
                            transformerInfoWindow.open(map);
                        }
                    });
                    
                }, 'json');

Normally I set the content of the InfoWindow to ('#infoWindowTabs').clone(true)[0] Which works fine with a jQuery tabs. But for testing I'm leaving the tab part out and just attempting to get the jqgrid to work. Any ideas?

screenshotImage Enlarger

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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