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
IE: Grid with custom controls inside cell freeze when sorting
08/02/2013
16:04
Avatar
Zwonimir
Member
Members
Forum Posts: 5
Member Since:
08/02/2013
sp_UserOfflineSmall Offline

Hi guys!

I have this bug with JQGrid 4.4.1 and only on IE, with FF all works perfectly:

I have a grid like this:

jQuery("#grid").jqGrid({
                    url: 'WebServices/ws_grid.asmx/GetData',
                    postData: { p_where0: $('#hidInvioMassivo_Search_where0').val() },
                    datatype: 'xml',
                    mtype: 'POST',
                    contentType: "application/json; charset=utf-8",
                    colNames: ['', ''
                        , 'Description'
                        , 'Value' ],
                    colModel: [

{ name: 'description', index: 'description', width: 200 },
                        { name: 'value', index: 'value', width: 100, sortable: false, align: 'center' }],
                    pager: jQuery('#grid_scrolling'),
                    toppager: true,
                    cloneToTop: true,
                    loadonce: true,
                    rowTotal: -1,
                    rowNum: 30,
                    rowList: [15, 30, 45],
                    sortable: true,
                    sortname: 'description',
                    sortorder: "asc",
                    viewrecords: true,
                    autowidth: true,
                    shrinkToFit: true,
                    width: '100%',
                    height: '500',
                    cellLayout: 7,
                    altRows: true,
                    altclass: 'grid_riga_alternata',
                    caption: '',
                    gridComplete: function () {
                        // write the total number of record on top-left
                        var totaleRecordFormattato = formattaNumero($("#grid").jqGrid('getGridParam', 'records'));
                        $('#grid_toppager_left').html('<span style="font-weight:bold;white-space:nowrap;">&nbsp;&nbsp;&nbsp;' + totaleRecordFormattato + ' <%= szDocumenti_Label %></span>');
                        $('#grid_scrolling_left').html('<span style="font-weight:bold;white-space:nowrap;">&nbsp;&nbsp;&nbsp;' + totaleRecordFormattato + ' <%= szDocumenti_Label %></span>');
                        $('#grid_toppager_left').width(70 + (totaleRecordFormattato.length * 10));
                        $('#grid_scrolling_left').width(70 + (totaleRecordFormattato.length * 10));
                        });
                    },
                    ondblClickRow: function (rowid) {
                        // apro il documento selezionato
                        OpenDocumentTab(rowid, '');
                    }
                });
                // rendo la griglia ridimensionabile anche nella sua larghezza
                jQuery("#grid").jqGrid('gridResize', { minWidth: 350, maxWidth: 3000, minHeight: 200, maxHeight: 950 });

... the column "Value" is loaded with html input textbox controls, and the bug happens when I have the focus on one of these textbox controls and then I sort the column 'description': when I do this all the grid suddently freeze! And only with IE!

The focus on the control is involved with the problem because if I don't give the focus to one of the textbox controls inside the grid and I sort the first column all works fine.

Thanks,

Zwon

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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