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

Inserting new table on new page weird problem.

4 Answers 84 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
muhammad
Top achievements
Rank 1
muhammad asked on 06 Aug 2012, 11:10 AM
Hi Telerik Team,
                        I am working on Rad Rich Text box and trying to insert new table after a table which has been stretch to next page. Which works fine till inserting. But if you try to hover over the new table it throws an exception as follows:

'Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index'

After investigation I have found from the source code in class 'TableMovementUILayer' that on new page it is adding new rectangle with x and y values =0 and the new rectangle for new table as well, On mouse over event when its trying to access the index of active table its throwing the above exception. Now I need some assistance in this regard. Can you please provide me some work around or a quick fix for the issue please thanks.


Regards.

4 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 07 Aug 2012, 03:35 PM
Hello Muhammad,

Thank you for reporting this failure. It is a known issue for version 2012 Q2 (2012.2 607) and has already been fixed in 2012 Q2 SP1 (2012.2 725).

A temporal solution if you decide to continue using 2012 Q2 version of the controls (2012.2 607) will be to disable the TableMovementLayer in the following way:

public partial class MainPage : UserControl
{
    class CustomUILayerBuilder : UILayersBuilder
    {
        protected override void BuildUILayersOverride(IUILayerContainer uiLayerContainer)
        {
            base.BuildUILayersOverride(uiLayerContainer);
 
            uiLayerContainer.UILayers.Remove(DefaultUILayers.TableMovementLayer);
        }
    }
 
    public MainPage()
    {
        InitializeComponent();
        this.editor.UILayersBuilder = new CustomUILayerBuilder();
    }
}

The concept behind UILayers is described in this article is you are interested.

If you upgrade to the service pack, the problem should not occur even if you do not remove the layer.
 
I hope this information helps. Don't hesitate to contact us if you have other questions.

 Regards,
Vasil
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
muhammad
Top achievements
Rank 1
answered on 08 Aug 2012, 01:54 PM
Vasil,
        yes its working now thanks.

Regards.
0
Robert
Top achievements
Rank 1
answered on 15 Aug 2012, 03:59 PM
Hi,

I get a similar error but with version 2012.2.725.40.
0
Martin Ivanov
Telerik team
answered on 17 Aug 2012, 09:21 AM
Hello Rob,

Can you be a bit more descriptive? As far as we understand, you are using the latest version 2012.2.725 and you still get the same exception. Up to now, all users have confirmed that the issue is solved in 2012.2.725.

Are the steps to reproduce the issue the same? If not, please list them, so that we could narrow down the problem.

You could also copy the whole stack trace, the inner exception message if any, and we will look into the issue.

All the best,
Martin
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
muhammad
Top achievements
Rank 1
Answers by
Vasil
Telerik team
muhammad
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or