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
Formatter for shortening texts in grid cell display
14/07/2010
04:11
Avatar
virgilio
philippines
Member
Members
Forum Posts: 3
Member Since:
15/06/2010
sp_UserOfflineSmall Offline

hi, i think a formatter for shortening displayed text in grid cell is nice

currently there is none so i have to create custom formatter for it

what's the best way to do it?

thanks in advance

Your thoughts matter!

15/07/2010
00:23
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

Hello,

The easiest solution, if you are using IE, is to put

.ui-jqgrid tr.jqgrow td
{
    text-overflow: ellipsis;
}

in your css file.

Otherwise there are a number of jQuery plugins (jTruncate, etc.) that will do this for you. The problem with these plugins is that you have to specify each element you want it applied to.

Hope this helps,

Reg

15/07/2010
04:13
Avatar
virgilio
philippines
Member
Members
Forum Posts: 3
Member Since:
15/06/2010
sp_UserOfflineSmall Offline

thanks but text-overflow: ellipsis is not supported in firefox

maybe integrate jTruncate as a formatter so using it would be easy

i also wish to use multiple formatters for a column

something like ... formatters:{{name, options: {}}[,{name, options:{}}] ... [,{name, options:{}}]}

in colModel

Your thoughts matter!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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