e.commands not sending commands

2 posts, 0 answers
  1. Tim
    Tim avatar
    7 posts
    Member since:
    Jan 2016

    Posted 15 Nov 2016 Link to this post

    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.



  2. Viktor Tachev
    Viktor Tachev avatar
    2291 posts

    Posted 18 Nov 2016 Link to this post

    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.

    Viktor Tachev
    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Back to Top