Towards making it easier to provide help, I would like to briefly describe what I want to do with Telerik Grid.
I am developing an application where the grid is used to display 4 rows of 5 columns of thumbnail images. Paging is enabled because there can be a thousand rows of data. There is a caption directly under each thumbnail. There is a hidden field that has the user ID associated with the thumbnail image.
Clicking on the thumbnail, invokes a client side event handler which gets the user ID for that image. An Ajax call is made to the server with the user ID to get the url of a full size image, and various user data. The full size image and associated user information will be displayed on a separate tab at the end of the Ajax call by JavaScript on the client.
I am using a GridTemplateColumn to allow me to build the more involved grid cell that contains and image, caption, and hidden field HtmlControls with the runat=”server”
I am assuming that I can either set the grid DataSource property and call the DataBind method or handle this in the NeedDataSource event.
I plan to use the ItemDataBound event to set the alt and url attribute of the <img>tag along with the caption text held in a <div> container. I will also need to set the value attribute of the hidden field to the user ID.
My data source will be a List<AlbumInfoItemCollection> that has four properties. Each property is a get accessor for an AlbumInfoItem. The AlbumInfoItem class has properties that hold all the information necessary to set the url, caption, and user ID.
Basic Problem/Question
My basic problem is when handling the ItemDataBound event, I need to know the syntax to get the row instance of the AlbumInfoItemCollection.
I would imagine that they do exist, but I could not find any examples that did this.
Thanks in advance,
Carl Taylor
Suwanee, GA
PS I absolutely love your product!!!