EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 04, 2025, 10:18:46 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
I need to change the iconCls property of datagrid toolbar at runtime
Pages: [
1
]
« previous
next »
Print
Author
Topic: I need to change the iconCls property of datagrid toolbar at runtime (Read 12233 times)
jmansur
Newbie
Posts: 31
I need to change the iconCls property of datagrid toolbar at runtime
«
on:
August 05, 2015, 06:05:21 AM »
Hi. Excuse my poor English.
I neet to change the icon, of one option of the datagrid toolbar based on a condition .
I dont know, how to do this.
Somebody help me?
Thankssss
«
Last Edit: August 05, 2015, 07:00:12 AM by jmansur
»
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: How to change an icon
«
Reply #1 on:
August 05, 2015, 06:35:21 AM »
You may need to describe your issue in more detail.
Logged
jmansur
Newbie
Posts: 31
Re: How to change an icon
«
Reply #2 on:
August 05, 2015, 06:38:30 AM »
I have this toolbar in my datagrid.
{
id:'idExportarExcel',
text: 'Exportar a Excel',
iconCls: 'icon-excel_16',
handler: function(){
window.open( $('#tt').html());
window.open('data:application/vnd.ms-excel,' + $('#tt').html());
}
},
{
id:'idOrdenarPor',
text: 'Ordenar Por',
iconCls: 'icon-ordenar_16',
handler: function(){alert('Ordenar Por')}
}
I need to change the iconCls propertie of id:'idExportarExcel' at runtime
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: I need to change the iconCls property of datagrid toolbar at runtime
«
Reply #3 on:
August 05, 2015, 08:31:20 AM »
Please re-create the linkbutton with another 'iconCls' property value.
Code:
$('#idExportarExcel').linkbutton({
iconCls: ...
});
Logged
jmansur
Newbie
Posts: 31
Re: I need to change the iconCls property of datagrid toolbar at runtime
«
Reply #4 on:
August 06, 2015, 10:31:26 AM »
spectacular.
thank you.
Best Regardsss
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...