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
475
Multiple hyperlinks in a cell using ColumnStyle.URL
posted

Dear All,

I have a grid cell which need to display multiple file names as hyperlink and on click, it should open the document from the URL mentioned. What is happening is when i set the columnstyle = columnstyle.URL the text value in the entire cell become hyperlink not differentiating the individual files as hyperlink.

for eg. in a cell i show the value as

\\MyServer\MyDoc.doc

\\MyServer\New.doc

 

When running the code the text in the entire become as single hyperlink. I want to have different hyperlink for individual files in the cell.

Any help would be greatly appreciated.

Thanks,

Arun.K.S

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    You can't do this with a style of URL. The URL style will interpret the entire cell contents as a single link (as you said).

    What you would have to do is use a Style of FormattedText and then the Value of the cell would have to return XML that provides multiple links.

    For example, the cell value would be something like this:

    <a href="http://www.Google.com">Google</a><br/><br/><a href="http://www.Infragitsics.com">Infragistics</a>

     

Children