Getting values from popup via hot keys into RadEditor

4 posts, 0 answers
  1. Raka
    Raka avatar
    71 posts
    Member since:
    Sep 2011

    Posted 17 Feb 2012 Link to this post

    Hi

    We want to write a tool in two parts --
    1) a popup that will have several rows of 2 associated pieces of information
    for ex -  'AAA', 'S1'
                 'BBB', 'S2' etc.
    Each row needs to be associated with a hot key.


    2) the main page is the RadEditor
    Here when we type, we want to be able to pick up 'AAA' via its associated hot key.  When we click a button 'Replace', it will replace 'AAA' with 'S1'.

    Are there any tools in Telerik available at this point that can be useful for this purpose?  We also need a auto-complete textbox.

    Thanks
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 22 Feb 2012 Link to this post

    Hi,

    RadEditor does not offer such functionality out-of-the box and it is not part of the advertised features of the control.

    Perhaps the best way is to implement your scenario as a separate solution using an editable DIV element
    <div contenteditable="true" style="width:300px;height:300px;border: 1px solid red;">AAA BBB</div>

    as the editor and a standard browser window.open dialog. If you are able to implement a fully functional solution using a standard editable DIV and a browser dialog, we will help you to replace the DIV with RadEditor.

    All the best,
    Rumen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Raka
    Raka avatar
    71 posts
    Member since:
    Sep 2011

    Posted 22 Feb 2012 Link to this post

    Ok, thanks.
    Using your other suggestion elsewhere, I managed to create a RadComboBox inside RadEditor tool area.  My problem is how to associate a column value with a hot key.  If the combox box has ['AAA', 'F1'], ['BBB','F2'] rows, and they click 'F2', I want it to autopopulate the editor with 'BBB'.  This can be done with EditorTools but how does one do it with EditorDropDown or RadComboBox?

    Thanks, Sandhia
  4. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 27 Feb 2012 Link to this post

    Hello,

    RadComboBox does not offer the requested item shortcut functionality out-of-the box and it is not possible to assign a different shortcut to each item in the combo. This feature is also not supported by the custom dropdowns of RadEditor.

    To achieve your requirement you could implement a custom toolstrip and assign shortcuts to the different tools in it. Every toolstrip item will execute a different command.

    All the best,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top