EasyUI Forum
September 14, 2025, 04:03:21 AM *
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 within a edatagrid  (Read 6064 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: January 21, 2015, 04:12:14 AM »

Hello,
I want to show a messager instead of a standard-alert.
How to?

Here's my edatagrid:

  $('#edgPferd').edatagrid({
   title : 'Pferde-Bestand'
  ,iconCls:'icon-Pferd'
  ,width:'100%'
  ,height:'auto'
  ,collapsible:'true'
  ,columns:[[ 
    {field:'OLT30A001T_KEY',title:'PferdKey',width:080,sortable:'true',hidden:'true'}
  ...
  ]] ,//columns
  toolbar     : '#tobPferd',
  url         : 'pferd.act.php?frm=frmHOM&act=T&sel=' + vSEL,
 ...
  ,onLoadSuccess: function(objects){
   //alert('onLoadSuccess');
   //$.each(objects.rows, function(i, row) {alert(i + ' : ' + row.HOM_NAME);});
   var total = objects.total;
    if (vFOR == 1 && total > 0){
     alert('Sie haben bereits ' + total + ' Pferd(e) als Besitzer eingetragen:');
          !!!--> here the messager should appear !!!
   }
  }
 });//edatagrid
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: January 21, 2015, 09:07:04 AM »

Please call $.messager.alert function to display your alert window.
Code:
$.messager.alert('My Title','Here is a message!');
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!