This is a migrated thread and some comments may be shown as answers.

Suggestion: Controls like Community Server

3 Answers 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 21 Sep 2008, 10:10 PM
Hi,

Some useful controls that I would like to see are some of the ones that Community Server has developed.  In particular, they have the control for html content that if the user has permission to edit it, they can mouse over it, a border will appear, and then if you double-click you can edit the text from a pop-up and then it refreshes that region.  Very nice.

Also, they have a sort of auto-complete box for comma-separated values (for tags), which is also very nice.

If I had those things, then, it would be much easier for some of my clients to customize their look and feel.

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 22 Sep 2008, 07:44 AM
Hi Chris,

Thank you for sharing your idea with us.

The controls from our suite which provide the closest functionality to the one you describe are RadEditor and RadComboBox. You may be interested reviewing them and utilize them to edit html content of implement auto-complete box with comma-separated values.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Shaun Peet
Top achievements
Rank 2
answered on 22 Sep 2008, 05:29 PM
In addition to RadEditor and RadCombobox, you'll also need to use RadWindow for the "popup".

You'll need to have a RadWindow on the same page that is displaying your content.  Have that page render the content in a container, with something like:

<div onmouseover="ToggleHighlight(this,true)" onmouseout="ToggleHighlight(this,false)" ondblclick="OpenForEditing(PageId)">
...content goes here...
</div>

<script language="javascript" type="text/javascript">
  function ToggleHighlight(element, toggle) {
    if (toggle) {
      // show the border / change the background
    }
    else {
      // return the original borders / backgrounds
    }
  }

  function OpenForEditing(ID) {
    // open a RadWindow, specifying the url to the page that contains the RadEditor, and including the ID to grab the current content from the DB
  }
</div>

You'll probably want the page that does the editing to be able to close the RadWindow after saving, and then refresh the parent page as well.  Hope that helps,

Shaun.
0
Chris
Top achievements
Rank 1
answered on 23 Sep 2008, 12:15 AM
Hi Shaun,

Thanks for responding.  I know that these things are possible, but I just wanted to suggest it as a possible control since I'm sure it's a pretty common feature people would use if it was provided.  (For me, the point of buying controls is that I have to do less coding, so if I need to code it myself, that's fine, but boy it'd be nice if it was included!)

Thanks again!

Chris
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Shaun Peet
Top achievements
Rank 2
Chris
Top achievements
Rank 1
Share this question
or