Related Items: Edit only
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
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Armin,
Try to add the following code to the CSS Editor in Forms Designer:
Try to add the following code to the CSS Editor in Forms Designer:
Code: Select all
#idHomePageNewItem {
display: none;
}
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests