Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Text for non expanded Mode with Expandable Controls  (Read 12079 times)

0 Members and 1 Guest are viewing this topic.

NorbertA

  • Customer
  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Text for non expanded Mode with Expandable Controls
« on: July 10, 2009, 12:56:59 PM »
Hi,
I'm just trying to build a tree with an expandable custom control container.
How can I control what text is displayed when the node is in non expanded Mode.
I tried adding an expandable textbox but then the textbox is shown in expanded mode also.
Also, how can I control the title of an expandable control? I managed to get it shown or not  in expanded mode but where do I set it?

Regards
Norbert

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 943
Re: Text for non expanded Mode with Expandable Controls
« Reply #1 on: July 10, 2009, 01:17:36 PM »
Hello,

Welcome to forums and thank you for your interest to our product.

How can I control what text is displayed when the node is in non expanded Mode.
and
Also, how can I control the title of an expandable control? I managed to get it shown or not  in expanded mode but where do I set it?

Expandable node control (NodeExpandableTextBox, NodeExpandablePanel or NodeExpandableControlContainer) consists from two parts: title text and expandable area (text or custom content). Title is what you see when node control (or node) is not expanded while expandable area you will see only when node control is expanded (when AutoExpand = true).
Node class`s member that`s displayed in the title stored in the nodeControl.DataFieldName property (by default it is the Text property).
So to change it use this code:
node.Text = "my node control title";

I tried adding an expandable textbox but then the textbox is shown in expanded mode also.

You shouldn`t use expandable textbox node control because it can`t host custom controls inside as you need. Use NodeExpandableControlContainer instead.


Please feel free to ask us if you have other questions.

Norbert

  • Guest
six barriers to intercultural communication essay
« Reply #2 on: July 10, 2009, 02:25:02 PM »
Winston Owen from Syracuse was looking for six barriers to intercultural communication essay
 
Kyle Peterson found the answer to a search query six barriers to intercultural communication essay
 
 
 
 
six barriers to intercultural communication essay
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
popular book review writing service for school
World War 2 Weaponry
Continental Drift and Homer
John Dickenson, Penman of the Revolution
cheap dissertation abstract writing site gb
popular bibliography ghostwriter service uk
cheap term paper ghostwriters sites for mba
topics of term paper
Impact of the African Americans Migrations
The Evolution of Pantomime and Its Origin
declaration of independence
custom reflective essay ghostwriter services gb
persuasive essays on vegetarianism
cheap critical thinking proofreading site gb
pay to do statistics business plan
top argumentative essay ghostwriter sites for college
a movie analysis of psycho by alfred hitchcock
thesis statement for the author to her book
rates of reaction c
essay apj abdul kalam niji
pay for my popular analysis essay on hacking
thesis response sheet
top thesis proposal writer site usa
president obama speech text
english year 10 coursework
character analysis of lorraine from the pigman by paul zindel
One flewover the cuckoos nest
popular course work proofreading sites gb
The Self Portraits of Stein and Picasso
essay on shakespeare's use of the iambic pentameter
essay college
best dissertation results proofreading services online
nuim thesis
custom thesis editing for hire uk
help with  professional rhetorical analysis essay on brexit
definition of discuss in essays
cheap literature review writer website ca
rough outline for essay
date martin luther posted 95 thesis
when writing an essay do you underline plays
blueprint outline essay
cheap resume writing websites us
« Last Edit: January 11, 2019, 08:08:31 AM by Norbert »

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 943
Re: Text for non expanded Mode with Expandable Controls
« Reply #3 on: July 10, 2009, 02:34:00 PM »
But the text does not show in the non expanded Tree
What you meant by non expanded tree? Expanded maybe a node, not a tree.

If you disable the ShowTitelWhenExpanded property then title will be hidden anyway!

Could this be because I derived a subClass of NodewithControl for my Nodes?

No, you are free to use any Node derived class in the tree.


Could you please attach small sample project and describe what you want to accomplish?

NorbertA

  • Customer
  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Text for non expanded Mode with Expandable Controls
« Reply #4 on: July 10, 2009, 03:14:31 PM »
Hi,
Quote
What you meant by non expanded tree? Expanded maybe a node, not a tree.
Sorry, I meant expanded node.

Quote
If you disable the ShowTitelWhenExpanded property then title will be hidden anyway!
Ok, I thouht that the title would be shown anyway and I could suppress it in expanded Node mode.
Its somewhat difficult to give a small example piece of code, and I don't want to bother you with a complete .Net Project.
What I want is a Title (or Text) representation for the Nodes and when they are selected (or the user sets an option to show extended nodes only), show a complex UserControl, but not the Title. Can I accomplish this somehow easily?

I'm just evaluating now for a project here at a client, but it looks good, and I think we will come back to buy a 5 or 10 developers license soon.

Regards
Norbert

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 943
Re: Text for non expanded Mode with Expandable Controls
« Reply #5 on: July 10, 2009, 04:00:02 PM »
Quote
Quote
If you disable the ShowTitelWhenExpanded property then title will be hidden anyway!
Ok, I thouht that the title would be shown anyway and I could suppress it in expanded Node mode.
Oh, sorry. My fault. Of course ShowTitelWhenExpanded works like you said.  :)

Quote
What I want is a Title (or Text) representation for the Nodes and when they are selected (or the user sets an option to show extended nodes only), show a complex UserControl, but not the Title. Can I accomplish this somehow easily?
You can do that very easy using that ShowTitelWhenExpanded property. Please see the attached sample project where non-selected node shows just a title but when selected - only button control.

NorbertA

  • Customer
  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Text for non expanded Mode with Expandable Controls
« Reply #6 on: July 10, 2009, 05:03:40 PM »
Hi,
ok, I think now I got it somewhat sorted out:
It doesnt't work with the autoexpand set to false. But this is what you need, if you want to let the user decide wether to display _all_ the control containers or only the selected via an visibility Manager like in the order book sample.
Can the Visibility Manager do that (setting/resetting autoexpand also) ? How?
If you work with a visibilty manager how do I display text in the non expanded nodes?

Regards
Norbert

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 943
Re: Text for non expanded Mode with Expandable Controls
« Reply #7 on: July 10, 2009, 10:03:31 PM »
Quote
It doesnt't work ith the autoexpand set to false.
If you disable the AutoExpand property then this node control will work like always expanded, so title wouldn`t visible (if speak in context of our sample project where we have 'nc.ShowTitleWhenExpanded = false').

Quote
But this is what you need, if you want to let the user decide wether to display _all_ the control containers or only the selected via an visibility Manager like in the order book sample.
Can the Visibility Manager do that (setting/resetting autoexpand also) ? How?
If you work with a visibilty manager how do I display text in the non expanded nodes?
Sorry but I didn`t understand what you need yet. You`re talking about non expanded nodes but AutoExpand=false will show node always in expanded state.
Could you please modify our sample to show us the problem and we`ll find solution for you?

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 943
Re: Text for non expanded Mode with Expandable Controls
« Reply #8 on: July 11, 2009, 08:13:24 AM »
I`ve rereaded all your messages and as I understood, you want to provide to the user two modes of work with the tree:
1) AutoExpand = true, so the node will show only a title when it`s not expanded and only your control when expanded;
2) AutoExpand = false, and you want to show both the title and your control but with ShowTitleWhenExpanded=false to be compatible with first option. But because ShowTitleWhenExpanded=false the title isn`t visible in this case.

Is this correct?

NorbertA

  • Customer
  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Text for non expanded Mode with Expandable Controls
« Reply #9 on: July 13, 2009, 10:14:18 AM »
Hi,
not exactly:
Quote
1) AutoExpand = true, so the node will show only a title when it`s not expanded and only your control when expanded;
correct
Quote
2) AutoExpand = false, and you want to show both the title and your control
In this case, I want to show only my control (no additional title) but for each node.

I try this by working with a visibilty Manager like in the samples. And I switch the visibility Property of the attached Manager from 'Always' to 'FocusedNode' and with 'FocusedControl' I don't see the Title.
Do I need to work without the Visibilty Manager and set the Properties for all nodes in the tree myself?

Regards
Norbert Abb

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 943
Re: Text for non expanded Mode with Expandable Controls
« Reply #10 on: July 13, 2009, 11:25:55 AM »
You can do that very easy. Just disable the ShowTitleWhenExpanded property for both cases.

Please use this code:
Code: [Select]
NodeExpandableControlContainer nc = new NodeExpandableControlContainer();
      nc.ShowTitleWhenExpanded = false;
 
// your first case - show title without custom control.
       nc.AutoExpand = false;

OR
 
// your second case - show only custom control for all nodes.
       nc.AutoExpand = true;
 
      nc.AttachTo(tree);

      Button ctrl = new Button();
      ctrl.Text = "test";
      NodeWithControl node = new NodeWithControl("Node title");
      node.Container = new ControlContainer(ctrl);
      node.AttachTo(tree);

      ctrl = new Button();
      ctrl.Text = "test 2";
      node = new NodeWithControl("Node title 2");
      node.Container = new ControlContainer(ctrl);
      node.AttachTo(tree);

      tree.Options.Node.AutoNodeHeight = true;

It that what you need?

You don`t need to use the VisibilityManager. It is intended for flexible control of when to show your custom controls when you can`t do that using node control or treeview`s options.
 

NorbertA

  • Customer
  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Text for non expanded Mode with Expandable Controls
« Reply #11 on: July 13, 2009, 05:46:04 PM »
Ok,
I understand.
What I wanted to do is to show the different possibilities to users in a visual prototype and qickly switch between this modes. I think I have to go through all the nodes og the tree and change the properties. This will bo ok.

Regards
Norbert

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 943
Re: Text for non expanded Mode with Expandable Controls
« Reply #12 on: July 13, 2009, 09:01:51 PM »
But the code above do what you need without additional code! Or not?
Pages: [1]   Go Up
« previous next »
 

Copyright © 2006-2017 ARMSoft. All rights reserved.