Author Topic: How to add datepicker to the toolbar  (Read 2362 times)

nzxgq0

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 25
    • View Profile
How to add datepicker to the toolbar
« on: March 11, 2020, 10:53:38 pm »
Hello,

Is there any way to add the date filters (fromDate and toDate) to the toolbar so I can use them for remote filtering?
JQuery-ui provides the Datepicker widget however I haven't figured out how to use it on the toolbar.

Thanks in advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to add datepicker to the toolbar
« Reply #1 on: March 12, 2020, 06:38:51 am »
Toolbar item has init callback which can be used to initialize the toolbar item control e.g., datepicker or color picker.

Code: [Select]
{
type: 'textbox',
init: function(ele){
$(ele).datepicker();
}
},

nzxgq0

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How to add datepicker to the toolbar
« Reply #2 on: March 12, 2020, 08:35:17 pm »
Toolbar item has init callback which can be used to initialize the toolbar item control e.g., datepicker or color picker.

Code: [Select]
{
type: 'textbox',
init: function(ele){
$(ele).datepicker();
}
},

very good. thanks.