Errors when edit web parts

3 posts, 0 answers
  1. plusHR
    plusHR avatar
    58 posts
    Member since:
    Aug 2012

    Posted 21 Mar 2012 Link to this post

    Hi all.

    I have the list and grid view and using the designer is okay however on numerous occasions if you click on edit web part, the view selected changes and shows the wrong title in edit mode receive regular errors like;

    Server Error in '/' Application.
    --------------------------------------------------------------------------------
     
    The specified view is invalid.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
     
    Exception Details: System.ArgumentException: The specified view is invalid.
     
    Source Error:
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
     
    Stack Trace:
     
     
    [ArgumentException: The specified view is invalid.]
       Microsoft.SharePoint.SPViewCollection.get_Item(Guid guid) +26039668
       Telerik.Ajax.SharePoint.TelerikDataBoundWebPart.get_CurrentView() +321
       Telerik.Ajax.SharePoint.SPListBoundRadControlToolPart.SetUpListViewCombo() +725
       System.Web.UI.Control.EnsureChildControls() +146
       System.Web.UI.Control.PreRenderRecursiveInternal() +61
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
     
      
     
     
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4971

  2. plusHR
    plusHR avatar
    58 posts
    Member since:
    Aug 2012

    Posted 21 Mar 2012 Link to this post

    It appears then if you edit the web part to set-up additional settings it looses the list source, hence going back into the rad designer the data binding is not set?

  3. Marin
    Admin
    Marin avatar
    1045 posts

    Posted 26 Mar 2012 Link to this post

    Hello Paul,

     Can you specify how and when exactly you change the selected view? Note that the once the grid is bound to a certain view of the SPList it should remain unchanged because otherwise you can get errors as below. Or if the view is changed you should rebind the grid from the designer, choosing again its datasource.

    Kind regards,
    Marin
    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