Null Value when Edit

5 posts, 1 answers
  1. Christos
    Christos avatar
    5 posts
    Member since:
    Feb 2012

    Posted 07 Oct 2013 Link to this post

    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!
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1442 posts

    Posted 08 Oct 2013 Link to this post

    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!
  3. Christos
    Christos avatar
    5 posts
    Member since:
    Feb 2012

    Posted 09 Oct 2013 Link to this post

    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!
  4. Answer
    Alexander Popov
    Admin
    Alexander Popov avatar
    1442 posts

    Posted 10 Oct 2013 Link to this post

    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!
  5. Christos
    Christos avatar
    5 posts
    Member since:
    Feb 2012

    Posted 10 Oct 2013 Link to this post

    Thanks!
Back to Top