Non-operating destroy command

2 posts, 1 answers
  1. Answer
    Jan Kaare
    Jan Kaare avatar
    16 posts
    Member since:
    Dec 2010

    Posted 14 Apr 2013 Link to this post

    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)?
  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 15 Apr 2013 Link to this post

    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)
         ....other config settings...

    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!
Back to Top