TagTextBox - Missing features

0
0

Hi,

I’m thinking of using a TagTextbox to allow users to add, well, tags. I cannot use this as it works right now because there are a few features missing (in my opinion).

  1. There’s no property to disable the text editor. In my case I want to force users to use the tool button to add items and not allow manual typing.
  2. Tags cannot have a tag. I wish to attach an ID to each added tag.
  3. There’s no tags property to iterate through any existing tags. You can iterate by using TagTextBox1.Text.Split(“,”) but the result array would be string only and would not accomodate for my previously suggest new feature.

 

Thanks for considering any changes/new features,

Vincent

  • You must to post comments
0
0

Awesome, will give this a go. My suggestions were merely what endusers might expect a control can do without having to resort to “advanced” “workarrounds” 🙂 .

I’m still trying to learn everything WiseJ has to offer and how everything works.

Vincent

  • You must to post comments
0
0

To remove the editable widget set InitScript to this.getChildControl(“textfield”).exclude();

Using Text.Split() is the correct way. Tags in a text box are just a way to show the text. It’s not a collection of panels or objects. For that you can simply use FlowLayoutPanel and stack panels.

If you need to “inject” complex data into the text you can also do that with the TagTextBox by handling the TagRender event. For example, of the text is ‘{id:1,text:”Hello”};{id:2,text:”World”}’ then you can either override OnTagRender or handle the TagRender event and display only Hellp and World. You can also set the colors or use complex HTML. See the demo app as an example. The args object for the TagRender event has the properties you need.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.