Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

JSLink Pagination Issue

$
0
0

Hi,

I am using JSLink for one the view in my list.  The data is rendered as per the tags defined in the JS file.  There is no issue. The following is my first screenshot where the data rendered properly no issues.

When I click on pagination button, it will take me to the old view as shown in the below screenshot.

Following is the code I am using, is there any pagination code need to be included.  Please provide me such sample code.

// Create a namespace for our functions so we don't collide with anything else
var Submissions = Submissions || {};
// Create a function for customizing the Field Rendering of our fields
(function ()
{
    var overrideCtx = {};
    overrideCtx.Templates = {};
    overrideCtx.Templates.Header = "<h2>My Favorite Submissions</h2>";
    overrideCtx.Templates.Item = customItem;
    // Register the rendering template
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
})();
function customItem(ctx) {
    var itemStyle = "display:inline-block;width:200px;height:120px;border:black 1px solid;color:green";
    return "<div style=" + itemStyle + "'>" +
        ctx.CurrentItem.DueIn + "<div>";
}


My Recent Gallery Upload: PowerShell Script for Creating Site Collection with Host Headers


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>