Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron User Interface for .NET
»
Is NTreeList BestFit asynchronous?
Is NTreeList BestFit asynchronous?
Post Reply
Is NTreeList BestFit asynchronous?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Craig Swearingen
Craig Swearingen
posted 10 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 99,
Visits: 654
Using build 15.11.12.12 on Win7. I'd like to use the NTreeList BestFit or BestFitAllColumns method to change my column widths based on the data in the NTreeList. However, for a few columns I don't want their width to be greater than 200. I'm calling:
myTree.BestFitAllColumns();
if (myTree.Columns["largetextcol"].Width > 200)
myTree.Columns["largetextcol"].Width = 200;
The setting of 200 doesn't work. The BestFitAllColumns width is used instead. If I change it like this:
myTree.BestFitAllColumns();
myTree.Update();
if (myTree.Columns["largetextcol"].Width > 200)
myTree.Columns["largetextcol"].Width = 200;
This works. Unless my NTreeList is not visible. In my case my NTreeList may be on a tab of a NTabControl that is not visible. I've tried some other methods on the NTreeList widget but nothing seems to help. How can I get the BestFitAllColumns algorithm to run such that I can then set my max column widths?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Is NTreeList BestFit asynchronous?
Craig Swearingen
-
10 Years Ago
Hello Craig, You can try to change the column width when some of the...
Nevron Support
-
10 Years Ago
Thanks for the tip. I was wondering if I would need to approach it...
Craig Swearingen
-
10 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search