I have a working WebDataGrid - it displays my data, and seems to update in on screen. However when I hit Save, or atttempt to insert a record, I get the following Javascript error:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Clicking thorugh this take me back to my page, but the changes have NOT been persisted.
If I select anything which takes me off that page, I get the following error:
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.Web.UI.GridControls.GridBot.LoadAdditionalClientState(Object state) +673 Infragistics.Web.UI.Framework.RunBot.HandleRaisePostDataChangedEvent() +202 Infragistics.Web.UI.GridControls.GridBot.HandleRaisePostDataChangedEvent() +73 Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.RaisePostDataChangedEvent() +34 System.Web.UI.Page.RaiseChangedEvents() +165 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485
This is holding up development since not being able to test basic edit/save functions is kinda important. My object data source is straighforward:
<asp:ObjectDataSource ID="dsClinics" runat="server" DataObjectTypeName="Psoriasis.Clinic" DeleteMethod="Delete" InsertMethod="Update" SelectMethod="GetAllClinics" TypeName="Psoriasis.ClinicsManager" UpdateMethod="Update"> </asp:ObjectDataSource>
The Update/Delete/Insert methods all take an object of type Clinic as declared. The methods are all static, and this arrangement works with normal Edit templates.
I am using the latest version: 2009.2.2056
Hello ,
Please, submit a support ticket for this.
Now it gets really strange - if I run my website outside the IDE, it all works fine - I can edit and update data without a problem (sans bool fields still). But when I run it within Visual Studio in debug mode, I get the errors and data is not saved
WHAT IS GOING ON HERE??
Further details. If I remove the BOOLEAN properties in my object from the grid, I can insert a new record, but I still cannot edit an existing one.
Boolean properties, even when specified a Bool data types in the column binding cause data conversion errors when inserting a record if they are left null - as there is no way in the grid to set default values?
Quick update - Deleting a row works - sort of. I get:
Microsoft JScript runtime error: 'this._targetContainer.style' is null or not an object
along the way... But I still can't insert or update.