ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: SDS on July 31, 2024, 05:38:56 pm

Title: leading space removed from text column
Post by: SDS 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.
 
Title: Re: leading space removed from text column
Post by: paramvir 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, ' ');
}