EasyUI Forum
December 16, 2025, 04:09:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Message Box message for destroyRow in edatagrid  (Read 20453 times)
jaimi
Full Member
***
Posts: 121


View Profile
« 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
« Last Edit: September 08, 2012, 12:37:09 AM by jaimi » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 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?
« Last Edit: September 09, 2012, 02:08:41 AM by jaimi » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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.
« Last Edit: September 09, 2012, 03:11:46 AM by stworthy » Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #4 on: September 09, 2012, 04:07:56 AM »

Thanks the message box works now as I want.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!