EasyUI Forum
November 05, 2025, 07:17:44 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Easyui datagrid groupview on: May 21, 2013, 09:24:16 AM
You can do something with onExpandRow:

Code:
$(function(){	
$('#dg').datagrid({
view: detailview,
onExpandRow: function(index,row){
                                                //What you want to do after click in the figure
alert('Hey there =p');
}
});
}
2  General Category / EasyUI for jQuery / Re: How to show a message in the datagrid when no records? on: May 20, 2013, 10:17:39 AM
I had this problem last week. I used a work arround solution in php:

      
Code:
            if( $r == 'No records'){  
                $r[0]['Field1'] = 'No records to show.';
$r[0]['Field2']='';
$r[0]['Field3'] = '';
$r[0]['Field4'] = '';
$r[0]['Field5'] = '';
             }
echo json_encode($r);

Choose in what field you want to show your message.

Hope this help. See yah!
3  General Category / EasyUI for jQuery / Re: Datagrid - How can I display an image in a Cell? on: May 17, 2013, 11:29:13 AM
Thanks for reply.

I solved this problem returning in select an string like this: '<img src="myimage.png" />'.
4  General Category / EasyUI for jQuery / Datagrid - How can I display an image in a Cell? on: May 16, 2013, 12:40:40 PM
Hi there

How can I display an image in a Cell?
I'm using the grid like this example: http://www.jeasyui.com/tutorial/datagrid/datagrid22.php and the content of grid have been loaded dynamically.

Thanks.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!