ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
ParamQuery Pro Evaluation Support
»
leading space removed from text column
« previous
next »
Print
Pages: [
1
]
Author
Topic: leading space removed from text column (Read 172 times)
SDS
Newbie
Posts: 8
SDS
leading space removed from text column
«
on:
July 31, 2024, 05:38:56 pm »
Hi!,
I have a grid column of string type. the data has leading variable spaces in the text. but when displayed it removes the space. the text property of the cell still shows the space embedded but its removed in the grid.
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: leading space removed from text column
«
Reply #1 on:
August 05, 2024, 04:29:50 pm »
empty spaces are trimmed around strings when displaying values in the grid.
To display the empty spaces, you can add a column render.
Code:
[Select]
render(ui){
return (ui.cellData || "").replace(/\s/g, ' ');
}
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
ParamQuery Pro Evaluation Support
»
leading space removed from text column