You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Introduction

In order to disable sorting in an advanced grid, all you have to do is set this code below as Custom HTML inside the same form.

Custom HTML
<script>
    $(document).ready(function(){
        $('.pq_grid').pqGrid('option','sortable',false);
    })
</script>


Example

Figure 1: Configuration of Sample App


Figure 2: Runtime of Sample App


It may not be immediately noticeable in Figure 2, but if you try and click on any of the column names of the table, you will not be able to sort it as we have disabled sorting via Javascript. Feel free to explore the sample app from the download link below.


Download the Sample App

  • No labels