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
visual bug related to addRowData
01/09/2009
06:02
Avatar
Jan
Guest
Guests

Hello Tony,

i'm using jqGrid 3.5.2 and think i've found a bug. When adding a new row 'before' the currently first row all collumns lose their original width setting.

You can see what i mean in this picture:

http://img12.imageshack.us/img.....atabug.jpg

The first part shows the normal layout, the second part shows what happens when I 'move' the second row up so that it becomes the first row. When i move the row back down the layout becomes normal again. The 'move' happens with this function:

Singleton.jqGrid.moveUp = function(gridSelector) { // moveup all selected rows
    var jqGrid = $(gridSelector);
    var selection = jqGrid.getGridParam('selarrrow').slice(0);
    var alle = jqGrid.getDataIDs();
    var sortedSelection = new Array();
    $.each(alle, function(i, val) {
        if ($.inArray(val, selection) != -1) {
            sortedSelection.push(val);
        }
    });

    for (var i in sortedSelection) {
        var id = sortedSelection[i];
        var positie = $.inArray(id, alle);
        if (positie != 0) // element is at top already
        {
            var aboveRowId = jqGrid.getDataIDs()[positie - 1];
            if ($.inArray(aboveRowId, sortedSelection) == -1) {
                var movingRow = jqGrid.getRowData(id);
                jqGrid.delRowData(id);
                jqGrid.addRowData(id, movingRow, 'before', aboveRowId);
                jqGrid.setSelection(id);
            }
        }
    }
}

In previous versions of jqgrid this worked without problems, and now as longs as the move doesnt require adding an element before the first row it's good too.

Please have a look into this problem,

thanks a lot in advance,

Jan

02/09/2009
03:54
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thanks for this. Fixed in GitHub.

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

11/09/2009
07:48
Avatar
Jan
Guest
Guests

Tony,

are you sure this bug is fixed? I just updated to v3.5.3 and i still have this bug while it's supposed to be solved according to the changelog .. some other problems I had before are solved now though, so thanks a lot for that.

I hope you'll look into it again Smile

thx in advance,

Jan

11/09/2009
12:54
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Will look at this again. Thanks

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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