We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DomainGridDataControl AddNew

Thread ID:

Created:

Updated:

Platform:

Replies:

110932 Sep 1,2013 09:55 PM Oct 10,2013 07:23 AM Silverlight 1
loading
Tags: GridControl
Chui Tey
Asked On September 1, 2013 09:55 PM

I'm having difficulty adding new rows with the DomainGridDataControl. Are there any samples I can look at?

Whenever I double click on the blank row to try to insert data, I get the NullPointerException at.

   at Syncfusion.Windows.Data.CollectionViewAdv.AddNew()
   at Syncfusion.Windows.Controls.Grid.GridDataCurrentRecordManager.BeginEdit(Int32 recordIndex)
   at Syncfusion.Windows.Controls.Grid.GridDataCurrentRecordManager.OnGridCurrentCellStartEditing(Object sender, SyncfusionCancelRoutedEventArgs args)
   at Syncfusion.Windows.Controls.Grid.GridControlBase.OnCurrentCellStartEditing(SyncfusionCancelRoutedEventArgs e)
   at Syncfusion.Windows.Controls.Grid.GridControlBase.RaiseCurrentCellStartEditing()
   at Syncfusion.Windows.Controls.Grid.GridCurrentCell.BeginEdit(Boolean focusCellUIElement)
   at Syncfusion.Windows.Controls.Grid.GridSelectCellsMouseController.MouseDown(MouseControllerEventArgs e)
   at Syncfusion.Windows.Controls.Scroll.MouseControllerDispatcher.MouseDown(MouseButtonEventArgs e)
   at Syncfusion.Windows.Controls.Scroll.MouseControllerDispatcher.OnMouseDown(MouseButtonEventArgs e)
   at Syncfusion.Windows.Controls.Scroll.ScrollControl.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at Syncfusion.Windows.Controls.Grid.GridControlBase.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonDown(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

Thangapriya V [Syncfusion]
Replied On October 10, 2013 07:23 AM

Hi Chui,


Sorry for the delay caused.


In our implementation, we get the type of the column properties from its default constructor. When we try to type in AddNewRow, it will try to get the model details. But in DomainGridDataControl, we could not get column properties from the model, since the model is Domain Service Entity class and the Entity class does not have the default constructor. So NullReferenceException will be thrown when we try to type in AddNewRow, as the constructor is set to null. We have fixed that exception in our current source.

However, we do not provide confidential information and patches in the general forum.

You can also create an incident in our Direct trac account with the below link.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

That would be helpful for us to fix the issues and provide you the patch through incident.

But we regret to let you know that we do not have support for adding new row by using AddNewRow functionality in DomainGridDataControl.

Please let us know if you need any further assistance.


Regards,

Thangapriya


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;