Execute custom code after SharePoint List/Library default events (Sort/filter/ Taxonomy Key filter etc.) are fired
Today I came to build a jQuery solution that was supposed to
do some text replace operation on SharePoint’s default list views. At first
glance the task looked so easy that it can be implemented in a while.
Below is the method I which you can place your code and the
code will get executed after SharePoint’s default events are fired.
SPClientTemplates.TemplateManager.RegisterTemplateOverrides({
OnPostRender: function(ctx) {
//Your
code to be executed after the event returns
}
});
Above code injects our code to OnPostRender
event and will treat it as default code so whenever any event is fired our code
will get executed.
Regards,
Keyur Pandya
Comments
Post a Comment