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
Fixed column resize + Show/hide column
29/11/2013
09:44
Avatar
rGros
New Member
Members
Forum Posts: 2
Member Since:
28/11/2013
sp_UserOfflineSmall Offline

Hi,

In my project I encounter a strange behaviour (bug ?) when mixing resizement of a fixed (fixed:true in colModel) column and show hide column feature.

Here is the case. I have a jqgrid that takes 100% of its container. My grid contains several columns and one of them is fixed but can be resizable. The grid has also shrinkToFit paramter to true.

If I resize this fixed column and then try to hide/show other colums, the size of the grid is expanded and overlap its container. An horizontal scrollBar appears on the grid.

I had a look  in jqgrid code and there might be an error in "setGridWidth" (line 3435  to 3443) method when it calculates the width of fixed columns visible in the table. For now it always takes the original width (widthOrg) of a column and if this columns is fixed it adds it to the gw. If the fixed column was rezise the widthOrg paramter might not be the good one to use.

For now code is

             $.each($t.p.colModel, function() {
                    if(this.hidden===false){
                        cw = this.widthOrg;
                        initwidth += cw+brd;
                        if(this.fixed) {
                            gw += cw+brd;
                        } else {
                            vc++;
                        }
                    }
                });

In my opinion it should be

               $.each($t.p.colModel, function() {
                    if(this.hidden===false){
                        if(this.fixed) {
                            cw = this.width;
                            gw += cw+brd;
                        } else {
                            cw = this.widthOrg;
                            vc++;
                        }
                        initwidth += cw+brd;
                    }
                });

Maybe I am wrong. Can you confirm it to me ?

thanks

02/12/2013
15:08
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. Will check this

Regards

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.

04/12/2013
12:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Can you please provide a simpletest scenario for this problem?

I'm unable to reproduce this.

Thank you.

Kind Regards

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.

10/12/2013
11:41
Avatar
rGros
New Member
Members
Forum Posts: 2
Member Since:
28/11/2013
sp_UserOfflineSmall Offline

I am a bit busy now with my project.

As soon as I can I post a sample to reproduce it.

thanks

10/12/2013
12:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Glad to hear this.

Regards

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:
41 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