Jump to content

Records Displayed In TUniDBGrid Are Missing Prefix Spaces


Frederick

Recommended Posts

I have the following records in a SQLite database:-

Category
   Sub-Category 1
   Sub-Category 2

When the records are loaded into a TUniDBGrid, the records are displayed as:-

Category
Sub-Category 1
Sub-Category 2

What happened to the prefix spaces for the sub-category descriptions? It doesn't matter if the columns are defined as CHAR() or VARCHAR().

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1511)
 

noprefixingrid.png

Link to comment
Share on other sites

32 minutes ago, Frederick said:

What happened to the prefix spaces for the sub-category descriptions? It doesn't matter if the columns are defined as CHAR() or VARCHAR().

https://www.w3schools.com/html/html_entities.asp

https://developer.mozilla.org/en-US/docs/Web/CSS/white-space

You can try this approach...:

1. CustomCSS:

.gridWSpaces .x-grid-cell-inner {
    white-space: break-spaces;
}

2.

YourDBGrid -> LayoutConfig -> Cls = gridWSpaces

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...