Inserting new table on new page weird problem.

5 posts, 0 answers
  1. muhammad
    muhammad avatar
    28 posts
    Member since:
    Jul 2010

    Posted 06 Aug 2012 Link to this post

    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.
  2. Vasil
    Admin
    Vasil avatar
    124 posts

    Posted 07 Aug 2012 Link to this post

    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.

  3. DevCraft banner
  4. muhammad
    muhammad avatar
    28 posts
    Member since:
    Jul 2010

    Posted 08 Aug 2012 Link to this post

    Vasil,
            yes its working now thanks.

    Regards.
  5. Robert
    Robert avatar
    271 posts
    Member since:
    Mar 2011

    Posted 15 Aug 2012 Link to this post

    Hi,

    I get a similar error but with version 2012.2.725.40.
  6. Martin Ivanov
    Admin
    Martin Ivanov avatar
    104 posts

    Posted 17 Aug 2012 Link to this post

    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.

Back to Top
DevCraft banner