EasyUI Forum
May 01, 2024, 09:26:05 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: Action dropdown button in datagrid cell  (Read 5252 times)
chorauoc
Newbie
*
Posts: 23


View Profile Email
« on: September 03, 2018, 01:03:27 AM »

Hi,

I wan to add an action drop-down button (Bootstrap or something else) in datagrid cell. So how can i achieve this ?

Boostrap action dropdowns
Quote
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 03, 2018, 05:49:23 PM »

Please try this code:
Code:
$('#dg').datagrid({
columns: [[
{field:'name',title:'Name',width:100},
{field:'action',title:'Action',width:150,align:'center',
formatter: function(value){
return '<span class="action">'+value+'</span>';
}
}
]],
data: data,
onLoadSuccess: function(){
$(this).datagrid('getPanel').find('.action').menubutton({
menu: '#actionMenu'
});
}
});
Logged
roberto
Jr. Member
**
Posts: 88


View Profile Email
« Reply #2 on: November 18, 2018, 11:38:59 PM »

Hi
I tried this but it did not work for me. Can you show a practical example? (please)
Logged
roberto
Jr. Member
**
Posts: 88


View Profile Email
« Reply #3 on: November 19, 2018, 07:35:50 PM »

sorry, it's working!  Grin
great
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!