Widgets > [No Target Defined] > Features > Paging |
The wijfileexplorer widget displays files and folders in one continuous window. However, by setting allowPaging to true, you can divide large amounts of data into pages of a specified size for easier viewing. You can use pageSize option to determine the number of records to show on each page. By default, it shows ten.
Complete the following steps:
<body></body>
tags of the page, just after @RenderBody():
<div id="fileexplorer" style="width:750px;height:350px"></div>
<script type="text/javascript">
$(document).ready(function () {
$("#fileexplorer").wijfileexplorer({
actionUri: "fileexplorer.ashx",
viewPaths: ["~/Content/FileExplorer/Example"],
allowPaging: true,
pageSize: 5
});
});
</script>
When you run the project, notice that only 5 files and folders appear in one page and a pager appears at the bottom of the widget.