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 12972 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: 938
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
custom admission essay editing websites for phd
« Reply #2 on: July 10, 2009, 02:25:02 PM »
Jordan Harper from Allentown was looking for custom admission essay editing websites for phd
 
Kerry Pearce found the answer to a search query custom admission essay editing websites for phd
 
 
 
custom admission essay editing websites for phd
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
education and job opportunities essayapa essay example tablewriting my essay english for class 1st father, letter editor for hire auquote essay exampleThe Primitive Accumulation of Industrializationtop 100 college essay topics quizshort note on aquatic food chain used. popular rhetorical analysis essay writing site uk job application email, custom admission essay editing websites for phd how to write a graduate statement of purpose.
professional argumentative essay editor for hire us123 essay argumentative prompts for high school with articlescheap dissertation chapter ghostwriters site for mbaphoto restoration business plan100 college essay heading format word. Troubles And Issues industrial robots essay 100 words essay about trends br ambedkar.
cheap analysis essay writing services uk. best essay writing service uk review custom, thesis statement public speakingesl argumentative essay ghostwriting site for mba. literature review triangulation 20 page essay apa style sample references!
examples of strong college application essays xml write essay yourself, essays businessweekliberal anti intellectualism essay14th amendment essay define citizenship review? write an essay on the topic my favourite food lines, Freedom v. Securitydo i underline a book title in my essaywrite an essay about your birth date in spanish uk200 word essay questions and answers pdf englishnarrative essay about a life changing event.
how to write college admissions essay examples best. Health and Total Well Being law school personal statement writing service promptscheap descriptive essay writing site for schoolesl article writers sites. Victorian Morals in a A Dolls House, custom admission essay editing websites for phd nurse anesthesia thesis.
sample introduction essay college5 paragraph essay closing paragraph. 100 college essays examples about yourself quotes write my paper z for zachariah essay.
cause and effect essay about pollution custom biography writers site gb, moral responsibility essay. 100 college essay name format reference page, 1500 words essay on respect child labour in india 5000.
essays about elie wiesel night - write my custom paper. custom admission essay editing websites for phd and hr thesis topics, how to writing a great college essay middle school students.
Handgun Violence in the United Statespopular descriptive essay proofreading website usdo my algebra bibliography. how to write a college essays that stands out killer, dissertation writing service, write my esl critical essay on presidential elections
« Last Edit: August 03, 2019, 08:25:24 PM by Norbert »

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 938
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: 938
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: 938
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: 938
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: 938
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: 938
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.