Author Topic: Radio Buttons on Grid toolbar  (Read 693 times)

gopigupta

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 37
    • View Profile
Radio Buttons on Grid toolbar
« 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? 

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Radio Buttons on Grid toolbar
« Reply #1 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
« Last Edit: February 17, 2022, 12:09:17 pm by paramvir »