ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: gopigupta on February 16, 2022, 10:24:29 am

Title: Radio Buttons on Grid toolbar
Post by: gopigupta on February 16, 2022, 10:24:29 am
Hello,

I am using Paramquery grid(v8.2.1). I want to show radio buttons on toolbar. Can anyone please help on how to implement radio buttons on grid toolbar? 
Title: Re: Radio Buttons on Grid toolbar
Post by: paramvir on February 17, 2022, 12:06:18 pm
Radio button can be added in toolbar by using type: HTML string and init callback as follows:

Code: [Select]
{
type: '<span><input type="radio" name="RR" value="A"/>A <input type="radio" name="RR" value="B"/> B </span>',
init: function( ele ){
$(ele).find('input').on('change', function(evt){
alert(evt.target.value);
});
}
},

https://paramquery.com/pro/api#option-toolbar