or
<telerik:radeditor> <Tools> <telerik:EditorToolGroup> <telerik:EditorTool Name="LinkManager" /> <telerik:EditorTool Name="Unlink" /> <telerik:EditorTool Name="ImageManager" /> <telerik:EditorTool Name="DocumentManager" /> </telerik:EditorToolGroup> </Tools></telerik:radeditor>public void InstantiateIn(Control container) { ctrlAcquis = new Literal(); ctrlAcquis.DataBinding += new EventHandler(ctrl1_DataBinding); Table tb = new Table(); TableRow r = new TableRow(); TableCell c1 = new TableCell(); TableCell c2 = new TableCell(); r.Cells.Add(c1); r.Cells.Add(c2); tb.Rows.Add(r); c1.Controls.Add(ctrlAcquis); container.Controls.Add(tb); }foreach(GridDataItem item in RadGrid1.MasterTableView.Items) { Image img = item["MyColumn"].FindControl("Image1") as Image; item["MyColumn"].Text = img.AlternateText; } ctrlAcquis public void InstantiateIn(Control container) { ctrlAcquis = new Literal(); ctrlAcquis.ID = "ctrlAcquis"; ctrlAcquis.DataBinding += new EventHandler(ctrl1_DataBinding); Table tb = new Table(); TableRow r = new TableRow(); TableCell c1 = new TableCell(); TableCell c2 = new TableCell(); r.Cells.Add(c1); r.Cells.Add(c2); tb.Rows.Add(r); c1.Controls.Add(ctrlAcquis); container.Controls.Add(tb); } function OnCommand(sender, eventArgs) {
// code omitted here that used radConfirm to get user to approve the selected command
// ...
// code which is executed if user confirms selected command var grid = sender; var MasterTable = grid.get_masterTableView(); itemIndex = eventArgs.get_commandArgument(); masterTable.fireCommand("MyCustomCommand", itemIndex);}