EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on September 07, 2012, 11:53:02 PM



Title: Message Box message for destroyRow in edatagrid
Post by: jaimi on September 07, 2012, 11:53:02 PM
I created an edatagrid according to the tutorial

<a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" ';
onclick="javascript:$(\'#dag_project\').edatagrid(\'destroyRow\')">l&ouml;schen</a> ';

At clicking the button a message box appears "Are you sure you want to delete?"
How can I modify this message?

After deleting the row the pagination shows still the former amount of records until I click the reload button. How do I have to modify that the reload is done after deleting automatically?

Thank you


Title: Re: Message Box message for destroyRow in edatagrid
Post by: stworthy on September 08, 2012, 05:22:28 PM
To solve this issue, please include the patch file in the page head.

Code:
	<script type="text/javascript" src="jquery.edatagrid.js"></script>
<script type="text/javascript" src="datagrid-patch.js"></script>


Title: Re: Message Box message for destroyRow in edatagrid
Post by: jaimi on September 08, 2012, 10:48:48 PM
Thanks a lot. The reload works now for delete but still not for update.
I saw that you changed the funcionality within the patch fpr instert, delete and append.
I was not able to add the update thing. By the way what is the difference between append and insert?

What about the message text? How can I change it to a german version?


Title: Re: Message Box message for destroyRow in edatagrid
Post by: stworthy on September 09, 2012, 03:09:11 AM
The edatagrid plugin offers a 'destroyMsg' option that can be overridden in different languages. For more information please refer to http://www.jeasyui.com/extension/edatagrid.php.


Title: Re: Message Box message for destroyRow in edatagrid
Post by: jaimi on September 09, 2012, 04:07:56 AM
Thanks the message box works now as I want.