smartpart and infragistics controls

Nov 17, 2009 at 11:49 AM
Edited Nov 17, 2009 at 11:50 AM

Hi,

 

I try to use smartpart with infragistics controls.

For example I created an ascx user control with ultrawebgrid.

When I add it in smartpart following your instructions I can see the ultrawebgrid. Sorting is ok. Drag and drop columns bring error.

Also after saving the page I get the error :

 

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.IdentifyDocumentType(Page p) +121
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Initialize() +73
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Control_Init() +15
   Infragistics.WebUI.UltraWebGrid.UltraWebGrid.OnInit(EventArgs e) +42
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
   System.Web.UI.ControlCollection.Add(Control child) +80
   SmartPart.SmartPart.CreateChildControls() +46
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

I appreciate if you can help me.

Regards,

Dimitris