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

[Solved] ImageManager in RadGrid

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Up
Top achievements
Rank 1
Up asked on 09 Jul 2013, 06:44 PM
I use a RadGrid for displaying, inserting, deleting and updating rows.
I want to have any input field for an image path, that is selected via the standalone ImageManager.
In display mode just the path should be shown without the button for the ImageManager. In update mode the path already saved in the database should be displayed.
I found this article:
http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx

That is working pretty good outside the grid. However how can I realize such a textbox and an upload button inside a RadGrid item in edit / insert mode? Anyhow I have to register the JavaScript event handler, but how to get the ClientIDs for building the correct JS?

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 15 Jul 2013, 11:11 AM
Hello,

You could use a GridTemplateColumn and add a TextBox and a Button in its EditItemTemplate and InsertItemTemplate. There is a several ways to get the TextBox in JavaScript. One of the possible solutions is to get the current edit/insert item and find the controls by using findControl() function. I prepared a small sample and attached it to this thread.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Up
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or