Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
hyperlink un column with javascript / igHierarchicalGrid
posted

Hello, I would like to know who to add a link in a column with igHierarchicalGrid.

Can I add a parameter at the creation of the column ?

like : 

{ headerText: "CLIENT", key: "nom", width: "150px", dataType: "string", link : "http://www.google.fr"},

Here my code :

$(window).load(function () {
;
                
     $("#grid1").igGrid({
        
                    features: [
                        {name: "Paging",type: "local",pageSize: 10},
                        {name: "Sorting",type: "local"},
                        {name: "Filtering",type: "local"},
                        {name: "Resizing",allowDoubleClickToResize: true},
                    ],
                    autoGenerateColumns: false,
                    dataSource: 'popup_1.php?ind=<?php echo $_GET['ind']; ?>&pop=07',
                    responseDataKey: 'records',                    
                    initialDataBindDepth: -1,                                                                
                    height: 500,
                    width : 950,
                    
                    columns: [
                        { headerText: "CLIENT", key: "nom", width: "150px", dataType: "string"},
                        { headerText: "NB SOC", key: "nb_societes", width: "50px", dataType: "string" },
                        { headerText: "SD", key: "sd_validation", width: "50px", dataType: "string" },
                        { headerText: "SEGMENT", key: "entite_co_validation", width: "100px", dataType: "string" },
                        { headerText: "CONSEILLER", key: "co_validation", width: "150px", dataType: "string" },
                        { headerText: "ENTITE CLIENTELE", key: "entite_rc_validation", width: "100px", dataType: "string" },
                        { headerText: "RC", key: "rc_validation", width: "150px", dataType: "string" },
                        { headerText: "ENTITE", key: "rc_validation", width: "150px", dataType: "string" }
                    ]                  
                });

            });

I receive my dataSource from a php page, it's an array with json_encode().

Thanks for helping !

ps : sorry for my English, I'm Frensh