Lost the cursor position from editor after java script action does

2 posts, 0 answers
  1. Hariharan
    Hariharan avatar
    9 posts
    Member since:
    Nov 2011

    Posted 08 Dec 2011 Link to this post

    Telerik team,

    I have face a new issue while try to implement the custom property inspector.

    Here I attach a image,
    <xref format="dita" href="#bnf_38311" otherprops="BNF:topic: Immunisation schedule" type="topic">
    section 14.1
    </xref>
    If i click the text "section 14.1" in the yellow highlighted text,I can create a panel(with input fields) outside editor using java script .And i filled the selected tag attributes in the relevant fields.

    But after filled ,the cursor from editor gone away. But i need that the cursor should stay in the selected position in this editor.

    Is this natutre of editor or due to my operation in java script (create a panel outside for display the properties) should gone away?

    Is any possibility should after create a panel,should stay the cursor in the editor itself.

    Note:
    One more point i found while investigating this issues,

    When i click the tag,out side the editor panel created and the cursor should stay in that position in editor.

    But when i click the outside input field,It moves out from editor to that fields.

    Is any possibility to get the current position before leave from editor or get the selected tag details?

    Kindly share your suggesstion/comments to solve my problem.

    Thank you
  2. Rumen
    Admin
    Rumen avatar
    14431 posts

    Posted 08 Dec 2011 Link to this post

    Hello Hariharan,

    I have two suggestions:
    1) Try to store the selection and restore it using the getRange method.
    2) If this does not work for your scenario, implement a custom module or a custom dialog which should store the selection.


    Best wishes,
    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