Hi,
I have a requirement to have the toggle template cell to expand and collapse. How can I set the template cell to collapse on load?
Regards,
Renzi
Hi,
I have a requirement to have the toggle template cell to expand and collapse. How can I set the template cell to collapse on load?
Regards,
Renzi
Hi Renzi, you can toggle template cell on the ready event instead of load as follows
Note: Please check the name of the button from button properties panel
// Get Adapter by Name
var
canvasService = dundas.context.getService(“CanvasService”);
//Replace the button name “button1” with the actual button name from properties panel
var otherViewModel = canvasService.getViewModelByName(“button1”);
//Trigger the Click Action
var
otherAdapter = otherViewModel.businessObject;
$(otherAdapter.container).tapClick();
Hope this helps!
Thanks. This solution worked for me.