I've search high and low for help on what I am trying to do, which seems pretty simple.
Basically, I want to create a number of RadDocks depending upon how many rows I have in a table which holds photos and data associated with them. I am trying to add a few buttons to the RadDock that will do stuff, like delete a photo.
Here is what I have so far:
DataTable dtPhotos = GetAllByGalleryID(ID);
(dtPhotos.Rows.Count > 0)
RadDock dock =
"<div style=\"position:relative; top:7px; height:70px;\"><img class=\"galleryPhoto\" src=\"/properties/images/"
dock.DockMode = DockMode.Docked;
dock.UniqueName = Guid.NewGuid().ToString();
dock.Width = Unit.Pixel(100);
dock.Height = Unit.Pixel(75);
dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.Close;
Button delete =
delete.CommandArgument = dr[
"return confirm('Are you sure you want to delete this photo?')"
How do I wire up a simple Button inside the RadDock to an Event Handler?