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

Errors when edit web parts

2 Answers 74 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
plusHR
Top achievements
Rank 1
plusHR asked on 21 Mar 2012, 10:56 AM
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 Answers, 1 is accepted

Sort by
0
plusHR
Top achievements
Rank 1
answered on 21 Mar 2012, 10:58 AM
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?
0
Marin
Telerik team
answered on 26 Mar 2012, 10:37 AM
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.
Tags
Sharepoint Integration
Asked by
plusHR
Top achievements
Rank 1
Answers by
plusHR
Top achievements
Rank 1
Marin
Telerik team
Share this question
or