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
multiline rows breaks dynamic scrolling grids
14/03/2010
18:10
Avatar
celalo
New Member
Members
Forum Posts: 2
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

There is a small tip here about having multiple lines with rows. I actually modified the CSS code to

.ui-jqgrid tr.jqgrow td { white-space: normal !important; height:auto; vertical-align:text-top; }

to have better view. However it breaks dynamic scrolling grids. Any suggestion to fix this issue?

30/08/2011
12:33
Avatar
Klaus
Member
Members
Forum Posts: 68
Member Since:
18/11/2009
sp_UserOfflineSmall Offline

This issue still exists with jqGrid version 4.1.2!

Dynamic scrolling does not work when having multiline rows in the grid, especially this is easy to reproduce when having a big first row (with e.g. 5 lines as multiline content) and all other rows as normal single-line rows then the paging to the second page (via dynamic scrolling) won't work - it again loads page 1 from the server and adds page 1 below page 1 twice beginning with the first row again after the last row of the first page.

Is there any better solution instead of disabling multiline rows via CSS?
... my workaround for this bug: using "white-space: nowrap"

.ui-jqgrid tr.jqgrow td {font-weight: normal; overflow: hidden; white-space: nowrap; height: 22px;padding: 0 2px 0 2px;border-bottom-width: 1px; border-bottom-color: inherit; border-bottom-style: solid;}

It seems that the code calculating the rows, pageSize, etc. is based on the rowheight of the first row, which won't work if the first rowheight is different from the others.

Maybe this could be rewritten using the actual height of each row of the current page, but that solution might be too slow?

Kind regards,
Klaus.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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