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

Send Up Empty String Value in Update

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 25 Sep 2017, 09:05 PM

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?

1 Answer, 1 is accepted

Sort by
0
Ian
Top achievements
Rank 1
answered on 27 Sep 2017, 01:56 PM
Never mind.  I found a work around.
Tags
Grid
Asked by
Ian
Top achievements
Rank 1
Answers by
Ian
Top achievements
Rank 1
Share this question
or