I have a grid that has a field with the file name on the server. I want to have a onrowclick that downloads the file. For example, the file (docFile) is in the uploads directory and onrowclick that file (based on the docID) is opened in the window. I am trying to do this using the following code but it doesn't work.
Just in case someone else is wondering, what I needed to do was use the column numbers (starting with number 0) in the datagrid instead of the column names. Column #5 was the name of the file and column 0 was the ID for the row. So the code that worked looked like this: