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

is it posible to maintain the insertion point thru a post back?

1 Answer 26 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 19 Jan 2009, 12:27 AM
I use the editor and my own fileupload which causes a postback

I want to insert the object I upload at the insertion point in the editor, but the problem is that it gets lost, or the focus gets lost upon the postback.

Is there a way on the client that I could retreive the insert position, store it in a variable and then restore it after the post back or when I do the insert?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Jan 2009, 04:38 PM
Hi Marc,

You can maintain the insertion point only if the content is updated after Ajax callback.

When submitting the page with a Postback the editor is recreated and its objects are destroyed. After the postback the content area is recreated too, it is a new content area and the cursor position is lost.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Marc
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or