Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

English
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.
Code Block
titleCustom HTML
<script>
    $(document).ready(function(){
        $('.pq_grid').pqGrid('option','sortable',false);
    })
</script>


Example

Image Added

Figure 1: Configuration of Sample App


Image Added

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