cancel insert on updating

5 posts, 1 answers
  1. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 19 Mar 2013 Link to this post

    I am doing manual editing. How can I close the insert template if I select edit and close the edit template if I select insert?

    Thanks, Marty
  2. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 22 Mar 2013 Link to this post

    Hi Marty,

    I prepared a small sample where I demonstrates how to achieve only one opened Edit/Insert  form at the same time. Give it a try and let me know about the results.

    Kind regards,
    Kostadin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 14 May 2013 Link to this post

    do you have a listview example?

  5. Answer
    Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 18 May 2013 Link to this post

    Hello Marty,

    You could use the almost the same approach as the one in RadGrid. For instance:
    protected void RadListView1_ItemCommand(object sender, Telerik.Web.UI.RadListViewCommandEventArgs e)
        {
            if (e.CommandName == RadListView.InitInsertCommandName)
            {
                RadListView1.EditIndexes.Clear();
            }
     
            if (e.CommandName == RadListView.EditCommandName)
            {
                if (RadListView1.IsItemInserted)
                {
                    RadListView1.IsItemInserted = false;
                }
            }
        }

    All the best,
    Kostadin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 19 May 2013 Link to this post

    that did it.  I was using:

    RadListView1.ShowInsertItem(RadListViewInsertItemPosition.None); in conjunction with Visible="<%# !Container.IsItemInserted %>"
    on my Add button and the button would hide and stay hidden.

    Thanks, Marty
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017