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

Null Value when Edit

4 Answers 163 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christos
Top achievements
Rank 1
Christos asked on 07 Oct 2013, 07:56 PM
Hello,

I have a simple Kendo Grid with an id (int) and a type (string) data types as columns. When i try to do an edit the value of that string is returned null in the controller instead of the value i provided in the grid.

Any ideas why this is happening?

Thanks!

4 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 08 Oct 2013, 08:46 AM
Hello Christos,

Without seeing the implementation we can only guess what is the reason for this behavior. Could you please share the source code or provide a runnable project where the issue is reproduced? This would help us pinpoint the exact reasons and advice you further.

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Christos
Top achievements
Rank 1
answered on 09 Oct 2013, 05:40 PM
Hello Alexander -

Here is the link to an isolated project: 
http://chlogic.com/UATP.KendoUIMvcApplication.zip

Steps to reproduce the problem:
  • Run the project (go to root, for example http://localhost:55655/)
  • Click on Payments at the top right
  • Change values for the BIll column (for example enter E, F, G for each row)
  • Click "Save changes"
It saves null values.

In the source code at PaymentsController.cs line 48  paymentVM.ProcessingState is always null which it should have the new value.

Please let me know what the problem is asap because we are evaluating this product.

Thanks!
0
Accepted
Alexander Popov
Telerik team
answered on 10 Oct 2013, 10:08 AM
Hello again,

Thank you for the attached project. I reviewed it and noticed that the accessors for the ProcessingState property are missing. Setting them as shown below fixes the issue:  
public class tbl_BS_PaymentsViewModel
{
    public int PaymentID { get; set; }
    public string ProcessingState { get; set; }
}


Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Christos
Top achievements
Rank 1
answered on 10 Oct 2013, 01:59 PM
Thanks!
Tags
Grid
Asked by
Christos
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Christos
Top achievements
Rank 1
Share this question
or