I've added another button to the standard edit template, 'Update then edit next row'. I need to create an event that will put the next row, if it exists, into edit mode.
Can someone give me a general outline of which javascript methods i need to get the current row and then put the next row into edit mode?
I don't mind doing this in my updateAndEditNextRow_OnClick method, but would prefer to keep this client-side.
protected void rgDemandForecast_OnItemCreated(object source, GridItemEventArgs e)
{
if (e.Item is Telerik.Web.UI.GridEditFormItem && e.Item.IsInEditMode)
{
LinkButton linkButton = new LinkButton();
linkButton.Text = "Update And Edit Next Row";
linkButton.CommandName = "Update";
linkButton.Attributes["onclick"] = "some javascript";
//or
linkButton.Click += updateAndEditNextRow_OnClick;
LinkButton update = e.Item.FindControl("UpdateButton") as LinkButton;
update.Parent.Controls.Add(new LiteralControl(" "));
update.Parent.Controls.Add(linkButton);
}
}
Can someone give me a general outline of which javascript methods i need to get the current row and then put the next row into edit mode?
I don't mind doing this in my updateAndEditNextRow_OnClick method, but would prefer to keep this client-side.