Tuesday, 11 March 2014

SharePoint AddPostRenderCallback

SharePoint AddPostRenderCallback
Open Control Template
Search for below code
<div class="_#= noResultsClassName =#_">_#= $noResults =#_</div>
<!--#_
}
_#-->
After above code you can add AddPostRenderCallback and inside AddPostRenderCallback method you can call SubMethod also
<!--#_
AddPostRenderCallback(ctx, function(){
alert('Hi');
SubMethod("Hi");
});
SubMethod(str)
{
alert(str);
}
_#-->