set style of insert/cancel in Editforms forms

2 posts, 0 answers
  1. kieran
    kieran avatar
    19 posts
    Member since:
    Jul 2006

    Posted 01 Jul 2009 Link to this post


    When set style of edit on grids to EditForms, it all works fine except how do you apply style or change the styles of the insert/update/cancel buttons on these Editforms and also their position, they appear on the bottom left of the edit form

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 02 Jul 2009 Link to this post

    Hello Kieran,

    You can acces the buttons and set the required styles as shown in the example below:
    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
            if (e.Item is GridEditFormItem && e.Item.IsInEditMode && !e.Item.OwnerTableView.IsItemInserted) 
                GridEditFormItem editItem = (GridEditFormItem)e.Item; 
                LinkButton btnUpdate = (LinkButton)editItem.FindControl("UpdateButton"); 
                LinkButton btnCancel = (LinkButton)editItem.FindControl("CancelButton"); 
            if (e.Item is GridEditFormInsertItem && e.Item.OwnerTableView.IsItemInserted) 
                GridEditFormInsertItem editItem = (GridEditFormInsertItem)e.Item; 
                LinkButton btnInsert = (LinkButton)editItem.FindControl("PerformInsertButton"); 
                LinkButton btnCancel = (LinkButton)editItem.FindControl("CancelButton"); 

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top