Hi,
I'm trying to automatically focus the first row in a list when the user enters the page.
I've been trying to programatically click the first row using jQuery (loading the script through the JSLink property on the list), but without luck. Is there a better way, or what am I missing here? Any ideas?
Here's my code:
function onPostRender(ctx) {
$(".ms-selectitem-icon:first", $(".ms-listviewtable")).trigger("click");
}
SPClientTemplates.TemplateManager.RegisterTemplateOverrides({
Templates: {
OnPostRender: onPostRender
}
});