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
145
Igx-grid column
posted

Hi,
I want to know how can I add a hyperlink to a single column in Igx-grid? 

Also I want to add an icon with the text in one column, but while adding icon I have to check condition of another column. Can you tell me how we can use if condition with another column in igx-grid? 

Please let me know.

Thanks in advance!

Parents
No Data
Reply
  • 60
    Offline posted

    Hello Vaishnavi,


    Thank you for contacting Infragistics Developer Support.


    I have created a small sample illustrating how hyperlinks inside cell templates could be achieved in IgxGrid.  Please keep in mind that the link is added to the cell itself based on the cell value rather than on the entire column. Columns consist of cells and cells are the one holding the data.


    My sample also includes a way to achieve your second requirement as well. “Custom Item” column is templated with an icon and what icon is going to be displayed depends on the value of “Sale Amount” column If it is greater than 3000 than tick icon is displayed and if the cell value of “Sale Amount” is less than 300 the icon is different.


    Please have a look at the provided sample and let me know whether it helps you achieve your requirement.

    Regards, 

    Malin Hadzhiev

    Entry Level Software Developer

    Infragistics 

Children