Hi team,
I’d like to know how to create jqxSwitchButton Widget in jqxGrid.
I thought createwidget api could do this, but it doesn’t recognize jqxSwitchButton.
Here is some of my code for creating a jqxSwitchButton in a column.
Would you give me an advice how to create it please?
...
columntype: 'custom',
createwidget: function (row, column, value, cellElement) {
// add widget's html element to the cellElement and then create the widget.
var buttonDiv = $("<div id='switch_" + row.boundindex + "'></div>");
$(cellElement).append(buttonDiv);
buttonDiv.jqxSwitchButton({
height: 27,
width: 81
});
},
initwidget: function (row, column, value, cellElement) {
// update the widget by using its cellElement.
console.log("initwidget");
},
...