Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

ColdFusion data source for jqGrid

$
0
0

I am using jqGrid for my application and found the example from jQuery web site for first grid like following.

jqGrid expect url to GET data from server side code and data type is XML.

I would like to know can I use CFQUERY or CFSTOREPROC to feed jqGrid to create the grid.

Your information and help is great appreciated,

 

Regards,

 

Iccsi,

 

 

$(function () {

    $("#list").jqGrid({

        url: "example.php",

        datatype: "xml",

        mtype: "GET",

        colNames: ["Inv No", "Date", "Amount", "Tax", "Total", "Notes"],

        colModel: [

            { name: "invid", width: 55 },

            { name: "invdate", width: 90 },

            { name: "amount", width: 80, align: "right" },

            { name: "tax", width: 80, align: "right" },

            { name: "total", width: 80, align: "right" },

            { name: "note", width: 150, sortable: false }

        ],

        pager: "#pager",

        rowNum: 10,

        rowList: [10, 20, 30],

        sortname: "invid",

        sortorder: "desc",

        viewrecords: true,

        gridview: true,

        autoencode: true,

        caption: "My first grid"

    });

});


Viewing all articles
Browse latest Browse all 14291

Trending Articles



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