Jump to content

unitreeview not displaying spaces in node text


aem

Recommended Posts

Whether added statically at design time

or dynamically with xx.add()  or xx.addchild()

my pre-spaced text seems to be stripped of any

multiple spaces - replacing them with one space.

So a line like:

rootnode.add(nil,''aaaa                     bbbb');

shows text:

aaaa bbbb

Our multi-level trees almost always require alignment of the many items

that comprise the lines. Using a font like new courier and spaces lets us do that normally.

Am I missing a simple way to avoid this stripping action?

 

thanks,

tonyM

 

Link to comment
Share on other sites

  • 3 weeks later...

 

Thanks -  We are now official - we purchased and installed 1.90.0.1499 last week.

As for the unitreenode text,  I see now that the node.text contains the string as intended.

So when I check  unitreeview1.selected.text it might contain a string formatted like:

Chk:        000012345                 Seq_no:          45-56

But the browser (firefox or edge) displays:

Chk: 000012345 Seq_no: 45-56

All text of all nodes are shown this way - spaces squished out.

In another thread I got the idea that HTML interpretation may make it

necessary to replace every space with  

I could do that religiously during the load, but I wouldn't be thrilled...

If you come across an easier method please let us know.

thanks,

tonyM

CC

Link to comment
Share on other sites

48 minutes ago, aem said:

Thanks -  We are now official - we purchased and installed 1.90.0.1499 last week.

Hello, 

Thank you, please adjust your forum email address first 

Link to comment
Share on other sites

 

Alrighty,

   I changed my forum address from my standard development address to my formal corporate

email account. This of course is not the registration address that the Seattle office used to purchase and register

the product - It is my own account within the purchasing company ClearCycle of Seattle WA.

I hope this works for everyone.

tonyM

Link to comment
Share on other sites

3 hours ago, aem said:

I changed my forum address from my standard development address to my formal corporate

Hello,

Thank you.

On 5/13/2019 at 8:24 PM, aem said:

multiple spaces - replacing them with one space.

Can you try to use this approach?

1. UniServerModule -> CustomCSS:

.customSG .x-grid-cell-inner {
    white-space: pre;
}

2. UniTreeView -> LayoutConfig -> Cls = customSG

Link to comment
Share on other sites

 

Thanks -- I see where you are going with the  "pre"  business. (ala <pre>)

Your two steps are simple and clear  --  but I did not see any

change in the tree listing.

If you are darn sure should work (in your experience) I will try it

in an isolated test app.

tonyM  CC

Link to comment
Share on other sites

  

   How about that?   a simple mainform-only test case works!

   You get the spaces preserved.

  Now comes the fun -  to trial and error my way between the

  isolated case and the full case.  I will report back.

Thank you sincerely,

tonyM

Link to comment
Share on other sites

Thank You  --

Walking back from isolated example to full code revealed a stupid oversight on my part.

For those that need spaces, this works well for me as SherZod provided:

1. UniServerModule -> CustomCSS:

.customSG .x-grid-cell-inner {
    white-space: pre;
}

2. UniTreeView -> LayoutConfig -> Cls = customSG

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...