This is a migrated thread and some comments may be shown as answers.

Browse to File Dialog for each Row?

9 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 11 Nov 2008, 03:09 PM
Hi,
I was wondering if it was possible to have a button on each row to browse to a file? I would like to store the path in the corresponding field for each row. I have a table for statuses. For each status I want the customer to choose an image.

Thanks for any help.

Derek.

9 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 12 Nov 2008, 04:42 PM
Hello Derek,

Thank you for contacting us.

Yes, we support button columns in our grid and this is exhibited in the Column Types example in our examples framework. Please, review the example and the code and give this feature a spin. Do not hesitate to write me back if you have further questions.

Greetings,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Derek
Top achievements
Rank 1
answered on 14 Nov 2008, 11:05 AM
Thanks, but unfortunately I get hundreds of errors when trying to run the examples under Visual Basic Express edition 2008. But I can still look at the code.
0
Nick
Telerik team
answered on 14 Nov 2008, 12:47 PM
Hello Derek,

Are you working with our latest release? This is a known issue in our previous release so please download 2008.3 (Q3 2008).

Do not hesitate to write me back if you have further questions.

All the best,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Derek
Top achievements
Rank 1
answered on 14 Nov 2008, 01:21 PM
Thanks, I will certainly get the latest version, I was running Q2 2008
0
Derek
Top achievements
Rank 1
answered on 14 Nov 2008, 03:22 PM
Hi, I downloaded the latest version but unfortunately, I can't run the examples. I get over 100 errors starting with 'properties is not a member of wincontrols'.  I can still see code, but it would have been nice to see the examples running.  Thanks.
0
Derek
Top achievements
Rank 1
answered on 14 Nov 2008, 05:08 PM
Hi again. I found the example code but I have an error with this code:

Dim

 

commandColumn As New GridViewCommandColumn()

 

commandColumn.UniqueName =

"CommandColumn"

 

commandColumn.UseDefaultText =

False

 

commandColumn.FieldName =

"Icon"

 

commandColumn.HeaderText =

"Select"

 

RadGridViewMain.MasterGridViewTemplate.Columns.Add(commandColumn)

When I run the application it says "Object reference not set to an instance of an object."  for the last line.

Thanks for any help.





0
Jack
Telerik team
answered on 17 Nov 2008, 02:56 PM
Hi Derek,

Thank you for getting back to us.

Do you use VS2008? We still experience problems with converting the examples from C# and compile them on VS2008 - it breaks the datasource connections during the 2005-->2008 conversion process. Sorry for this. The C# version of the examples should compile fine. The controls are not impacted by this problem.

I could not reproduce the issue with the GridViewCommandColumn. Nevertheless, I want to investigate this case further. Could you please open a support ticket and send me your application. This will help me reproducing the issue and finding a proper solution for you.

Thank you in advance for your cooperation.
 

Best wishes,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Derek
Top achievements
Rank 1
answered on 17 Nov 2008, 04:16 PM
hi Thanks for the reply.  I will try the C# version.   I fixed my problem.  I was naming the column, but one with that name already existed! how silly of me, but the error messge didn't make sense.

Thanks,

Derek.
0
Jack
Telerik team
answered on 18 Nov 2008, 05:09 PM
Hi Derek,

I am glad to hear you have found a solution to this issue. Do not hesitate to contact us if you have other questions.

All the best,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Derek
Top achievements
Rank 1
Answers by
Nick
Telerik team
Derek
Top achievements
Rank 1
Jack
Telerik team
Share this question
or