Document ruler and RadDocument distance

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    1 posts
    Member since:
    Oct 2012

    Posted 14 Nov 2012 Link to this post

    How can i determined?
    For example: When i change layout mode flow to paged the distance changing the document ruler and the raddocument.
    I would like copy drag from listbox to document some text.Quote of the mouse position, and set the caret position, when drop completed.
    When layout mode flow, allright, but paged mode not good.
  2. Petya
    Petya avatar
    983 posts

    Posted 16 Nov 2012 Link to this post

    Hello Thomas,

    As the DocumentRuler and the RadRichTextBox are normally shown in the same grid row, the RadRichTextBox adjusting its position using the Margin property, you should also do the same when calculating the drop position. Please find attached a demo project with the following setup:

    A RadTreeView with some items and a RadRichTextBox are placed on the main page. You can drag and drop items from the tree view in the editor. The editor is set to be in Paged layout mode. In addition, the caret location is shown and the inserted text depends on the style of the current span.

    If you are experiencing any issues get back to us with additional details on what to change in the demo.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top