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

Red image visible after save changes

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shashank
Top achievements
Rank 1
Shashank asked on 10 Aug 2014, 09:25 PM
Hello,

I have a grid CRUD project but after I edit a value and press save changes still the red image in corner of column does not go away. Any help would be great. I am attaching my project.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 13 Aug 2014, 07:31 AM
Hello,

The problem will occur because a null response is returned from the server. You should return a DataSourceResult with the updated items:
[WebMethod]
public static DataSourceResult Update(IEnumerable<ProductViewModel> products)
{
    ...
    return new DataSourceResult
        {
            Data = products
        }; 
}

 or at least an empty object in order to avoid the problem.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Shashank
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or