EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: tashar on September 19, 2014, 06:20:12 AM



Title: PropertyGrid and Popup
Post by: tashar on September 19, 2014, 06:20:12 AM
I was just wondering if there is a way to open up a Dialog box or at least get a click event from the property Gird?

For example the Datebox, when you click on the calendar, it has a dropdown showing a calendar view to select a date.  What I was wanting to do , is when you click the drop down icon I would either get a popup window or or an event that the button was clicked.

Thanks.


Title: Re: PropertyGrid and Popup
Post by: stworthy on September 19, 2014, 07:52:16 AM
You can use the textbox editor and add some extra icons to it.
Code:
"editor":{
"type":"textbox",
"options":{
"icons":[{
iconCls:'icon-add',
handler:function(e){
alert('hello')
}
}]
}
}


Title: Re: PropertyGrid and Popup
Post by: tashar on September 19, 2014, 08:46:20 AM
So for the Property Grid, I would just pass the Options Part correct?


You can use the textbox editor and add some extra icons to it.
Code:
"editor":{
"type":"textbox",
"options":{
"icons":[{
iconCls:'icon-add',
handler:function(e){
alert('hello')
}
}]
}
}


Title: Re: PropertyGrid and Popup
Post by: stworthy on September 19, 2014, 06:05:55 PM
Please refer to this example http://jsfiddle.net/faqnaq6v/


Title: Re: PropertyGrid and Popup
Post by: tashar on September 22, 2014, 04:51:44 AM
Please refer to this example http://jsfiddle.net/faqnaq6v/

Thanks stworthy! that helps alot!