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

Non-operating destroy command

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan Kaare
Top achievements
Rank 2
Jan Kaare asked on 14 Apr 2013, 06:32 PM
For the grid’s standardized destroy command item, I find the row deletion mechanism to operate correctly whenever the $DataSource->autoSync(true); is set within the PHP wrapper grid settings.

When this $DataSource->autoSync(true); is removed from the PHP wrapper grid settings, the row is deleted from the graphical user interface only, ie. it’s not deleted from the database. When user then later refreshes the page with the grid inside, the “deleted” row is back again...

How to let this destroy mechanism operate with no such $DataSource->autoSync(true)?

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 15 Apr 2013, 07:16 AM
Hello Jan,

Sending removed items to server depends on Grid edit mode configuration. If the Grid is configured for inline or popup editing it will push removed items on button click. However in batch editing mode changes will be pushed after `Save changes` button is pressed as in the Batch editing demo.

Here is the corresponding configuration from Inline editing demo:

$grid->addColumn($productName, $unitPrice, $unitsInStock, $discontinued, $command)
     ->dataSource($dataSource)
     ....other config settings...
     ->editable('inline');

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