Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1030
Infragistics XamGrid not working properly after upgrading from 12.1 to 13.1
posted

Hi team,

We recently upgraded our silverlight infragistics from version 12.1 to 13.1

So far we were using version 12.1 and everything was running fine. But after upgrading to 13.1 some of our existing working functionality is now broken.

In one case, XamGris is bound to a data source which gets updated (new values inserted into collection) if we update any value from existing data source collection (using XamGrid column edit function).

Now this functionality was working fine with 12.1 version and is not working with 13.1

When I try to insert new value to bound collection while editing any record form bound collection, it throws an exception which says something like this

'Object reference not found of an instance of an object - at EvaluateEditingBinding() function of a Cell'

I have attached a demo where I have created two projects. Each of them has same functionality but one contains XamGrid version 12.1 and other contains XamGrid 13.1

It workf fine with 12.1 but breaks with 13.1

Please find attached project and run Defalt.aspx of Web project.

Please help us solve this issue as a very critical component of our existing product is failing due to this upgrade and has become a show stopper for next release.

Thanks,

Chris Foster

 

Demo_XamGrid.rar
  • 34510
    Offline posted

    Hi Chris,

    When I ran your sample, both versions actually produced the exception.  I was running the latest service release available for 12.1.  The reason for the exception is the fact that every time the EmployeeView collection is accessed it is being cleared and repopulated.  In the middle of editing a cell this is not a good idea.  Before the cell has a chance to fully exit edit mode the sample has already cleared the grid's data source and repopulated it.  The cell visuals for the last set of data ended up getting thrown out which led to an exception when trying to evaluate the current binding.  You're logic for repopulating the data source should wait till the cell has fully exited edit mode.

    I added a quick Dispatcher to the code in order to add a slight delay for inserting an item when the Country changes.  You should probably rethink how you intend to edit the data.  You shouldn't be clearing the data source the cell relies on in the middle of editing.  Wait till after the cell has finished editing before completely clear and repopulate the data source.  The CellExitedEditMode off the XamGrid would be a good candidate for this code.

    Demo_XamGrid.zip