All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Would you please let me know how to change the Insert and Cancel at the bottom of Edit to be something else
maybe button or image button link Here is what I want to change http://www.prikachi.com/images/262/6838262D.jpg
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
(e.Item.OwnerTableView.IsItemInserted)
LinkButton insertButton = (LinkButton)e.Item.FindControl(
"PerformInsertButton"
);
insertButton.Visible =
false
;
ImageButton insertBtn =
new
ImageButton();
insertBtn.CommandName =
"PerformInsert"
insertBtn.ToolTip =
"Insert"
insertBtn.ImageUrl =
"Insertimg.jpg"
insertButton.Parent.Controls.Add(insertBtn);
insertButton.Parent.Controls.Add(
LiteralControl(
" "
));
}
else
LinkButton updateButton = (LinkButton)e.Item.FindControl(
"UpdateButton"
updateButton.Visible =
ImageButton update =
update.CommandName =
"Update"
update.ToolTip =
update.ImageUrl =
"Updateimg.jpg"
updateButton.Parent.Controls.Add(update);
updateButton.Parent.Controls.Add(
LinkButton cancelButton = (LinkButton)e.Item.FindControl(
"CancelButton"
cancelButton.Visible =
ImageButton cancelbtn =
cancelbtn.CommandName =
"Cancel"
cancelbtn.ToolTip =
cancelbtn.ImageUrl =
"Cancelimg.jpg"
cancelButton.Parent.Controls.Add(cancelbtn);