ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: nzxgq0 on March 11, 2020, 10:53:38 pm

Title: How to add datepicker to the toolbar
Post by: nzxgq0 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.
Title: Re: How to add datepicker to the toolbar
Post by: paramvir 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();
}
},
Title: Re: How to add datepicker to the toolbar
Post by: nzxgq0 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.