Related Items: Edit only
Posted: 13 Apr 2018
Hi there,
i need to get rid of the "+ new item" link on top of the related items control, so that only "edit" is available.
$("#idHomePageNewItem").hide(' ');
or .html(''); does the trick, but after related-items-control refreshes, the '+ new item' link is there again, so i tried
Sys.WebForms.PageRequestManager.getInstance().add_endRequest( () => {
$("#idHomePageNewItem").hide();
console.log("hiding again...")
});
but that is not working, probably because it's in client rendering.....
now what?
Thanks,
Armin
i need to get rid of the "+ new item" link on top of the related items control, so that only "edit" is available.
$("#idHomePageNewItem").hide(' ');
or .html(''); does the trick, but after related-items-control refreshes, the '+ new item' link is there again, so i tried
Sys.WebForms.PageRequestManager.getInstance().add_endRequest( () => {
$("#idHomePageNewItem").hide();
console.log("hiding again...")
});
but that is not working, probably because it's in client rendering.....
now what?
Thanks,
Armin