Send Up Empty String Value in Update

2 posts, 0 answers
  1. Ian
    Ian avatar
    2 posts
    Member since:
    Dec 2016

    Posted 25 Sep Link to this post

    In my ASP.NET Core application I use a Razor template to create a Kendo grid based on one of my ViewModels.  The grid itself is set to use InCell editing and one of the columns generated corresponds to a string variable in the ViewModel.  When I clear the string cell in the grid and trigger an update to the grid's datasource I would expect the value of the string variable in the model of the datasource request to be an empty string.  However, when I stop at a break point in the controller and look at the properties of the model the string value has a value of null.

     

    What would I need to do to pass along an empty string in the model to the controller action?

  2. Ian
    Ian avatar
    2 posts
    Member since:
    Dec 2016

    Posted 27 Sep in reply to Ian Link to this post

    Never mind.  I found a work around.
Back to Top