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

Triggering edit of raddock content in 'MyPortal'

1 Answer 56 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 03 May 2010, 11:20 AM
Hi!  I was really pleased to see this thread where Pero showed a method for editing titles of raddock controls on click, in the MyPortal App:

http://www.telerik.com/community/forums/aspnet-ajax/docking/my-portal-feature-expansion.aspx

I'm trying to create functionality where clicking on an edit button (next to the existing title edit linkbutton) the user might edit the content itself (then it would save to the DB- I see there are separate examples for that.)  Particularly I'm a bit confused on whether such functions should live within the user control code or the portal page.

With code I'd like to determine whether the edit buttons are visible (eg the user can toggle 'edit mode' vs 'view mode').

Would it be possible to see an example where clicking an edit link (just like the title edit link) would trigger a radeditor with the current content in it?  Probably in a modal radwindow or done some other way if you recommend.

I would appreciate your thoughts/contributions!  :)

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 05 May 2010, 12:28 PM
Hello Mark,

This scenario can be easily achieved by enabling and disabling the Editor, on a button click. The button should be placed in the dock's TitleBar template, and the editor in a UserControl which is loaded in the dock.
For your convenience, I have modified the project from the forum post, to implement this behavior. It is attached to the thread.

If you need the dock to be modal, please follow this article from our Code Library: http://www.telerik.com/community/code-library/aspnet-ajax/docking/modal-raddock.aspx.

Sincerely yours,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Dock
Asked by
Mark
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or