0
votes

I am working with a Telerik Radgrid on an aspx page, which basically has to bind to a datatable, which gets populated by data returned from a web service. I need to be able to fill out some of the columns in the RADGRID based on the data returned by the web service. For example, I need to be able to build the Hyperlink column based on the parts data returned by the web service. I need a way to access the datasource before the grid item gets populated and direct execution to a routine which builds the URL for the parts on a website.

Can anybody please suggest an efficient way to do this? I highly appreciate any help/suggestions.

Thanks Karthik

1
As in you have data that is in (lets say) column one and the hyperlink column should use data from column one to populate the link? Like this --> i.imgur.com/xSmfm.png - KreepN
The data I need is not even technically bound to the grid...it is one of the attributes returned by the web service, which i do not show in the grid.The web service returns a list of "Part" objects per row, which I will need to use to build the hyperlink URL. - karry
You could always cheat and bind it to the grid, allowing you to access the data, but then hide the columns so the users could never get the data. Would that work? - KreepN
that seems like a good approach...let me try that out ...will update this thread with the results ..Thanks for your help... - karry

1 Answers

2
votes

(Moving my comment to an answer, because I'm thinking this will work out for you.)

You could always cheat and bind it to the grid, allowing you to access the data, but then hide the columns so the users could never get the data.

Let me know how it works out.

EDIT:

My select statement is "select top 5 ProductName from products"

I then created a hyperlink column and assigned the properties under the data tab as such.

When run, it makes the data clickable and when clicked, it navigates to the url seen in the SS.

That what you need?

enter image description here