FormView Will Not Go Into Edit Mode w/RadAjaxManager

2 posts, 0 answers
  1. Shawn
    Shawn avatar
    83 posts
    Member since:
    Jan 2009

    Posted 26 Jul 2013 Link to this post

    I have 2 RadTreeViews and a FormView on a form.

    When something is clicked from the first TreeView, it populates the second one.  When something is clicked from the second RadTreeView, it populates the FormView.  All of this works perfectly up to here.

    When I click the "Edit" link button of the FormView at this point, nothing happens.  Even when i attempt to do it manually from code - nothing happens.

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                 <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                 <telerik:AjaxSetting AjaxControlID="treeSellers">
                         <telerik:AjaxUpdatedControl ControlID="lblBuyers" UpdatePanelCssClass="" />
                         <telerik:AjaxUpdatedControl ControlID="treeBuyers" UpdatePanelCssClass="" />
                 <telerik:AjaxSetting AjaxControlID="treeBuyers">
                         <telerik:AjaxUpdatedControl ControlID="formBuyerDetails" UpdatePanelCssClass="" />

    Simple Edit Button on the FormView's ItemTemplate:
    <asp:LinkButton ID="link_edit" runat="server" CommandName="Edit">Edit</asp:LinkButton>

    Protected Sub formBuyerDetails_ItemCommand(sender As Object, e As FormViewCommandEventArgs) Handles formBuyerDetails.ItemCommand
          If (e.CommandName = "Edit") Then
              formBuyerDetails.ChangeMode(FormViewMode.Edit) 'Doesnt Work
          ElseIf (e.CommandName = "Cancel") Then
              formBuyerDetails.ChangeMode(FormViewMode.ReadOnly) 'This probably doesnt either, but I cant even get here
          ElseIf (e.CommandName = "UpdateBuyer") Then
              'UPDATE function here
          End If
      End Sub

  2. Konstantin Dikov
    Konstantin Dikov avatar
    1744 posts

    Posted 31 Jul 2013 Link to this post

    Hello Shawn,

    I have tried to reproduce your scenario using as much as possible from your code snippets, but everything is working as expected on my side. 

    Please have a look at the attached project and see what differs from your project.

    If you are still experience difficulties with implementing your logic, please try to prepare a simple, runnable project that replicates the described issue and send it for further inspection.


    Konstantin Dikov
    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top