In fancytree table, a checkbox rendered with data-role as 'flipswitch' is displayed only as a normal checkbox. Same control when used outside the fancytree table displays as desired.
As this is my first post, I am unable to insert a pictures that would have explained the issue in a clear manner. Please refer to the link here. Outside fancytree (on top), the flip switch is displayed correctly and inside fancytree, against item DO|On/Off it is displayed as a normal checkbox. A slider has also been added and note differences in how the control is rendered outside and inside fancytree table.
Javascript code used to render the fancytree column is also given below.
renderColumns: function(event, data) {
var node = data.node;
$tdList = $(node.tr).find(">td");
$tdList.eq(1).html(
"<input type='checkbox' data-role='flipswitch' name='switch' id='switch'>" );
}
What should I do to make fancy tree display the switch correctly? Your help is appreciated.