I have a RadGrid on an ASP.Net page with VB.net as the code-behind.
The columns are not auto-generated. Some columns are hidden when the RadGrid is first loaded by setting the Display property to false. This is the Summary View. I have a RadioButtonList to allow the user to choose between Summary View and Detail View. When the user selects Detail View, the columns that were hidden have their Display property set to True and then can see the hidden columns and their data. This is done in the PreRender event procedure for the RadGrid.
I need to add a new column that has a link, image button, push button, or something that when clicked on will open a new window using radopen in a javascript function with a different ASP.Net page that has some of values from the row that was clicked on.
Also I am using the RadTabStrip so the user can see the windows that were opened.
I have looked at several threads in this forum regarding people trying to do the same thing or something similar and have tried the sample code that someone from Telerik provided or sample code other people posted. Nothing worked. I have tried a GridButtonColumn and a GridTemplateColumn.
For now, I have set up a simple Javascript function that calls the alert function for testing. The javascript function was put in a separate javascript file called scripts.js which is loaded by the ASP.Net page with RadGrid by using the following line of code: <script src="/Scripts/scripts.js" type="text/javascript"></script> .
The closest I was able to get something to work just showed the alert window pop up but was not able to access the data from the row that was clicked on.
One of the things I have tried caused an error to occur when selecting Detail View.
Please help. Thanks!
Sincerely,
Keith Jackson