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

e.commands not sending commands

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 15 Nov 2016, 08:30 PM

While in Batch Edit mode and using a hierarchy table I am getting an error in the BatchEditCommand event. 

foreach (GridBatchEditingCommand command in e.Commands)

{

    Hashtable newValues = command.NewValues;

Hashtable oldValues = command.OldValues;

string newFirstName = newValues["FirstName"].ToString();

}

In the foreach method there is an error thrown saying that a column with the unique name "System" cannot be found.

The SaveAllHiearchyLevels attribute is set to true.  When I set the SaveAllHiearchyLevels attribute to false I do not get the error, but the e.commands = 0;

Note: The Grid is also being created from code behind and added to the page in the Init page event.

 

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 18 Nov 2016, 02:16 PM
Hi Tim,

The behavior you describe seems rather strange. It would be hard to pinpoint what is causing it without further examination. Would you send us a runnable sample where the issue is replicated? Thus, we will be able to examine the behavior locally and look for its cause.

Regards,
Viktor Tachev
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or