Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - precator

Pages: [1]
1
Help for ParamQuery Grid (free version) / Re: linking to url in a cell
« on: October 30, 2013, 07:19:40 pm »
whenever I try to access an index or rowData I get an undefined.. Attaching the code.. Any idea what is wrong? I put the render function in the colModel.

var colM = [
            {
                title: "OrderID", dataIndx: "OrderID", width: 100, render: function (ui) {
                    var rowData = ui.rowData;
                    return "textbefore" + rowData[1] + "textafter" ;
                }
            },
            { title: "CustomerName", dataIndx: "CustomerName", width: 130 },
            { title: "UnitPrice", dataIndx: "UnitPrice", width: 100, align: "right",dataType: "float" },
            { title: "OrderDate", dataIndx: "OrderDate", width: 100 }
        ];

2
Help for ParamQuery Grid (free version) / Re: linking to url in a cell
« on: October 29, 2013, 10:14:24 pm »
Can you provide an example where I just prepend text and append at the end?

like I want to create a url link from the id field. I see there is a render function but no example on how to do that..

I see there is this >> function( ui ){};   << but not sure what to do with that..

3
Help for ParamQuery Grid (free version) / linking to url in a cell
« on: October 29, 2013, 05:09:26 am »
Is there any way to link to a url from say an id column? like instead of just having the number I would like it linkable to say a details page and pass the id in..

4
I followed the remote sorting example but it doesnt seem to be hitting my Ajax Method. I am using MVC 4.  This is what I have for my code.  GridExample is my Controller and Paging is my ActionResult. Could anyone help me? The grid loads but no data is populating..

return {
                    url: "GridExample/Paging", data: "cur_page=" + this.curPage + "&records_per_page=" +
                        this.rPP + "&sortBy=" + sort[this.sortIndx] + "&dir=" + sortDir
                };


Pages: [1]