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

Cannot save data from inline editing

1 Answer 9 Views
Grid
This is a migrated thread and some comments may be shown as answers.
husni
Top achievements
Rank 1
husni asked on 15 Aug 2015, 11:26 AM
I recently tried the facility for CRUD data using inline editing, I just tried to run the save command but failed. I combine three files:
1. SQL to store data that has been inputted
2. Javascript to run commands on kendo ui.
3. PHP as an object that is used as a variable for the operation of the data.

I have successfully used this concept to the method of the popup, but for my inline application failed. ask for help. Thank you

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 19 Aug 2015, 07:08 AM
Hello husni,

The current configuration contains invalid JavaScript code, which should throw an error: 
transport: {
    read: function (s) {
        s.success(e);
    },
    update: function (s) {      
        url:group.editgroup(); // invalid JavaScript statement
        s.success();
    },
    create: function (s) {
        url:group.save();  // invalid JavaScript statement
        s.success();
    },
}
I would recommend configuring the Grid's DataSource, so that it uses either objects or functions for the transport operations. Also, it is probably a good idea to initialize the Grid on page load and let its DataSource to create the Ajax requests, instead of manually making them and pushing the results into the DataSource. You can find more detail in the Grid Editing documentation article.

Regards,
Alexander Popov
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
husni
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or