Triggering edit of raddock content in 'MyPortal'

2 posts, 0 answers
  1. Mark
    Mark avatar
    11 posts
    Member since:
    Mar 2010

    Posted 03 May 2010 Link to this post

    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!  :)
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 05 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top