Automatically expanding the Action Log items
I would like to expand the Action Log by default. It's that section here: <div data-control="actionLog" data-control-applied="true">
I think the form uses the Telerik Kendo UI, but I was unable to figure out how to expand or collapse all rows. I see a demo here:
I thought this thread seemed promising but I'm missing some inherent knowledge
https://community.cireson.com/discussion/comment/15586
The "expand all" and "collapse all" button looks like the ideal solution, though I would like to start with "expanded". Anybody done this aleady?
Best Answer
-
Shane_White Cireson Support Super IT Monkey ✭✭✭✭✭
Hi @LeeJones
Add this to your Custom.js file in custom space and let me know if this is what you are after!
$(document).on('ajaxStop', function () {
var actionLog = $('.k-plus')
if (actionLog.length > 0) {
actionLog.click()
$(document).off('ajaxStop')
}
});
Hope this helps.
Thanks,
Shane.
5
Answers
Hi @LeeJones
Add this to your Custom.js file in custom space and let me know if this is what you are after!
$(document).on('ajaxStop', function () {
var actionLog = $('.k-plus')
if (actionLog.length > 0) {
actionLog.click()
$(document).off('ajaxStop')
}
});
Hope this helps.
Thanks,
Shane.
OK, so that worked. I don't understand why it worked as I didn't find 'k-plus' anywhere in the page. But it worked!
I can recommend this community solution for a nicer overview of the action log on the portal:
https://community.cireson.com/discussion/1861/custom-expanded-action-log-comments#latest