EasyUI Forum
September 13, 2025, 04:52:54 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: PropertyGrid and Popup  (Read 8890 times)
tashar
Newbie
*
Posts: 3


View Profile Email
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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')
}
}]
}
}
Logged
tashar
Newbie
*
Posts: 3


View Profile Email
« Reply #2 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')
}
}]
}
}
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: September 19, 2014, 06:05:55 PM »

Please refer to this example http://jsfiddle.net/faqnaq6v/
Logged
tashar
Newbie
*
Posts: 3


View Profile Email
« Reply #4 on: September 22, 2014, 04:51:44 AM »

Please refer to this example http://jsfiddle.net/faqnaq6v/

Thanks stworthy! that helps alot!
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!