Skip to content

TagTextBox - Missing features #3153

Closed
Closed

Description

@itg-assistant

Vincent asked 2021-05-03 12:47:15 UTC

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).

  • 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.

  • Tags cannot have a tag. I wish to attach an ID to each added tag.

  • 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

Activity

  1. itg-assistant commented on Jun 14, 2026

    @itg-assistant
    Author

    Luca answered 2021-05-03 18:25:25 UTC

    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.

  2. itg-assistant commented on Jun 14, 2026

    @itg-assistant
    Author

    Vincent answered 2021-05-04 18:58:12 UTC

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionAn improvement to something that already works.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions