dhtmlGrid and link

Hello. Thank you for this great product. I have a problem with my links in grid - links cannot show.



I try to add link to my grid. I use MySQL tables and get.php for XML data.

In the Section I use:



    

    

    

    

    



In the get.php I use:

        print("<row id=’".$row[‘cat_id’]."’>");

            …

            print(“Edit^http://www.nothing.com/”.$row[‘cat_id’]."");

            …

        print("");    



In the initialisation of dhtmlGrid:

var mygrid;

    function doInitGrid()

    {

     mygrid = new dhtmlXGridObject(‘mygrid_container’);

     mygrid.enableAutoHeigth(true);

     mygrid.setImagePath(“codebase/imgs/”);

     mygrid.setHeader(“Категория,Раздел,Действия:”);

     mygrid.setInitWidths(",,*");

     mygrid.setColAlign(“left,center,left”);

     mygrid.setSkin(“light”);

     mygrid.init();

     mygrid.load("/admin/php/get.php");

        mygrid.setColSorting(“str,str,link”);

        mygrid.setColTypes(“ro,ro,ro”);

    }



Well, and I can’t see link: I see data in my Cell… “Edit^http://nothing.com…”;

What are I doing wrong?



Thank you.

a) column types and sorting types need to be set before data loading
b) you can specify necessary column as link ( as part of setColTypes command, not setColSorting )

        mygrid.setColSorting(“str,str,str”);

        mygrid.setColTypes(“ro,ro,link”);

        mygrid.init();