Try our conversational search powered by Generative AI!

On Page editing for string with UIHint.Textarea in a block



I am trying to get On Page editing for a string with the attribute [UIHint.Textarea]. The property is in a block, and we have a preview controller for the block, so we can edit it and see how it looks.

With the attribute, it doesn't work. But without it (when rendered just as a string), it works.

Anyone knows why?

Doesn't work:

[Display(GroupName = GroupNames.Content, Order = 10)]
public virtual string Teaser { get; set; }


[Display(GroupName = GroupNames.Content, Order = 10)]
public virtual string Teaser { get; set; }
Jul 06, 2015 13:10


Did you tried to use [UIHint(UIHint.LongString)] instead of [UIHint(UIHint.TextArea)]  ?

Jul 06, 2015 13:13

That works, but what is the difference?

Jul 06, 2015 13:40

I have only information from documentation:

Textarea - Creates a text area to edit a string.
LongString - Edits a string inline in on-page-edit mode and with text area in form mode

They are not marked as obsolete, so it looks like both can be used.

Jul 06, 2015 13:53

Thanks for the help, this problably works just fine :)

Jul 06, 2015 14:16
<p>Hi&nbsp;<span>&nbsp;</span><a href="/System/Users-and-profiles/Community-Profile-Card/?userid=a6dd601f-f873-e111-968f-0050568d002c">Grzegorz</a>,</p> <p></p> <p>Thanks for the solution.................It worked for me......</p>
Nov 02, 2015 15:17
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.