Error in EditMode"Batch" when changing row

3 posts, 0 answers
  1. Sébastien
    Sébastien avatar
    12 posts
    Member since:
    Apr 2016

    Posted 26 Jul Link to this post

    Hi,

    Using the RadGrid in Batch Editing mode and the EditType is set to row. I forbid edition in some columns with:

    function BatchEditOpening(sender, args) {
        var col = args.get_columnUniqueName();
     
        if (isNaN(col.substring(0,1))) {
            args.set_cancel(true);
        }
    }

    It works, but when I want to jump in another row, I am getting the following error:"The property "style" of an undefined or zero reference can not be retrieved." (I translate the error). When I comment this code, it work.

    What am I doing wrong?

    Thanks!

     

  2. Sébastien
    Sébastien avatar
    12 posts
    Member since:
    Apr 2016

    Posted 27 Jul in reply to Sébastien Link to this post

    EDIT: By removing this code and adding "Readonly = true" to the columns, it work. But the problem is that these columns are no longer available in properties "OldValues" and "NewValues".

    I need to access these columns too.

    What is the issue here?

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sébastien
    Sébastien avatar
    12 posts
    Member since:
    Apr 2016

    Posted 28 Jul in reply to Sébastien Link to this post

    The solution I found is to add the column in DataKeyNames collection of the MasterTableView. So the key/value is available again.
Back to Top