Update, cancel only in editmode

3 posts, 0 answers
  1. Carl-Johan
    Carl-Johan avatar
    22 posts
    Member since:
    May 2008

    Posted 29 Jun 2010 Link to this post

    I have a radgrid that I edit InPlace.
     
    I would like to show Update and Cancel buttons only when the row is in editmode, how do I do that?
  2. Carl-Johan
    Carl-Johan avatar
    22 posts
    Member since:
    May 2008

    Posted 29 Jun 2010 Link to this post

    EditItemTemplate

     

    I fixed it myself:
    <ItemTemplate>
    <asp:ImageButton  CommandName="Edit" CommandArgument='XX' ID="XX" runat="server" ImageUrl="" />
    </ItemTemplate>

    <EditItemTemplate>
    <asp:ImageButton  CommandName="Update" CommandArgument='XX' ID="XX" runat="server" ImageUrl="" />
    <asp:ImageButton  CommandName="Cancel" CommandArgument='XX' ID="XX" runat="server" ImageUrl="" />
    </EditItemTemplate>

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Jun 2010 Link to this post

    Hi Carl,

    As an alernate, you can also use GridEditCommandColumn which is dedicated column for editing/updating the row in grid.

    aspx:
     
        <telerik:GridEditCommandColumn UniqueName="editColumn" ButtonType="ImageButton" EditImageUrl="../Images/Edit.gif" 
            UpdateImageUrl="../Images/Refresh.gif" CancelImageUrl="../Images/Cancel.gif" 
            InsertImageUrl="../Images/insert.gif"
        </telerik:GridEditCommandColumn> 


    -Shinu.
Back to Top