title: Telerik RadGrid + RadAjaxManager
body: <p>Let's go straight to the problem.</p>
  
  <p>I have two gridviews from which one generates the data source to another one. Both gridviews have ability to edit the item (row), but editing only works in first gridview (the one that generates data for the other one), when I click on edit in the second gridview nothing happens. I've been searching the web for a while and (I believe) found out that what I need is AJAX Manager.</p>
  
  <p>I've checked couple of examples/Demos from Telerik's site, but I'm still not sure how to make editing in the second gridview work. When I click "Edit" button in second gridview nothing happens at all.</p>
  
  <p>Both gridviews have edit forms inside and both gridview's edit form types are "WebUserControl". </p>
  
  <p>Currently RadAjaxManager looks like this:</p>
  
  <pre><code>    &lt;telerik:RadAjaxManager ID="ramAsseti" runat="server"&gt;
      &lt;AjaxSettings&gt;
          &lt;telerik:AjaxSetting AjaxControlID="gvKontakti"&gt;
              &lt;UpdatedControls&gt;
                  &lt;telerik:AjaxUpdatedControl ControlID="gvAsseti" /&gt;
              &lt;/UpdatedControls&gt;
          &lt;/telerik:AjaxSetting&gt;
      &lt;/AjaxSettings&gt;
  &lt;/telerik:RadAjaxManager&gt;
  </code></pre>
  
  <p>Could someone help me out with some suggestions. Any help would be appreciated.</p>
  
  <p>EDIT: In the meantime I've added one more RadGrid and updated RadAjaxManager and what I got is that first two RadGrids work (by "work" I mean I can click Edit and UserControls are displayed), but the last one doesn't work. For some strange reason Delete function <em>does</em> work in the last RadGrid (gvAsseti).</p>
  
  <p>Here is the code (skip boundfields as they work fine):</p>
  
  <pre><code>    &lt;telerik:RadScriptManager ID="RadScriptManager1" runat="server"&gt;
  &lt;/telerik:RadScriptManager&gt;
  &lt;telerik:RadAjaxManager ID="ramAsseti" runat="server"&gt;
      &lt;AjaxSettings&gt;
          &lt;telerik:AjaxSetting AjaxControlID="gvTvrtke"&gt;
              &lt;UpdatedControls&gt;
                  &lt;telerik:AjaxUpdatedControl ControlID="gvTvrtke" /&gt;
                  &lt;telerik:AjaxUpdatedControl ControlID="gvKontakti" /&gt;
                  &lt;telerik:AjaxUpdatedControl ControlID="gvAsseti" /&gt;
              &lt;/UpdatedControls&gt;
          &lt;/telerik:AjaxSetting&gt;
      &lt;/AjaxSettings&gt;
  &lt;/telerik:RadAjaxManager&gt;
  &lt;telerik:RadGrid ID="gvTvrtke" runat="server" AllowPaging="True" AllowSorting="True"
      AutoGenerateColumns="False" CellSpacing="0" GridLines="None" OnNeedDataSource="gvTvrtke_NeedDataSource"
      OnItemCommand="gvTvrtke_ItemCommand"&gt;
      &lt;MasterTableView DataKeyNames="idFirma" CommandItemDisplay="TopAndBottom" InsertItemPageIndexAction="ShowItemOnCurrentPage"&gt;
          &lt;CommandItemSettings AddNewRecordText="Dodaj novu tvrtku" RefreshText="Osvježi" /&gt;
          &lt;Columns&gt;
              &lt;telerik:GridButtonColumn UniqueName="ShowAssetsColumn" ButtonType="LinkButton" DataTextFormatString="Kontakti"
                  DataTextField="idTvrtka" CommandName="ShowContacts"&gt;
              &lt;/telerik:GridButtonColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Naziv" DataField="Naziv" HeaderText="Naziv"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="OIB" HeaderText="OIB" DataField="OIB"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Tel1" HeaderText="Telefon 1" DataField="Tel1"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Tel2" HeaderText="Telefon 2" DataField="Tel2"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Fax" HeaderText="Fax" DataField="Fax"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Mob1" HeaderText="Mobitel 1" DataField="Mob1"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Mob2" HeaderText="Mobitel 2" DataField="Mob2"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Email1" HeaderText="E-mail 1" DataField="Email1"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Email2" HeaderText="E-mail 2" DataField="Email2"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Adresa1" HeaderText="Adresa" DataField="Adresa1"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Web" HeaderText="Web" DataField="Web"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridCheckBoxColumn UniqueName="Aktivan" HeaderText="Aktivan" DataField="Aktivan"&gt;
              &lt;/telerik:GridCheckBoxColumn&gt;
              &lt;telerik:GridEditCommandColumn UniqueName="EditCommandColumn"&gt;
              &lt;/telerik:GridEditCommandColumn&gt;
              &lt;telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
                  ConfirmDialogType="RadWindow" ConfirmText="Brisanje tvrtke!" /&gt;
          &lt;/Columns&gt;
          &lt;EditFormSettings UserControlName="UserControls/TvrtkaUserControl.ascx" EditFormType="WebUserControl"&gt;
              &lt;EditColumn UniqueName="EditCommandColumn1"&gt;
              &lt;/EditColumn&gt;
          &lt;/EditFormSettings&gt;
      &lt;/MasterTableView&gt;
  &lt;/telerik:RadGrid&gt;
  &lt;telerik:RadGrid ID="gvKontakti" runat="server" AllowPaging="True" AllowSorting="True"
      AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Default" OnNeedDataSource="gvKontakti_NeedDataSource"
      OnDeleteCommand="gvKontakti_DeleteCommand" OnInsertCommand="gvKontakti_InsertCommand"
      OnPreRender="gvKontakti_PreRender" OnUpdateCommand="gvKontakti_UpdateCommand"
      OnItemCommand="gvKontakti_ItemCommand"&gt;
      &lt;MasterTableView DataKeyNames="idKontakt" CommandItemDisplay="TopAndBottom" InsertItemPageIndexAction="ShowItemOnCurrentPage"&gt;
          &lt;CommandItemSettings AddNewRecordText="Dodaj novi kontakt" RefreshText="Osvježi" /&gt;
          &lt;Columns&gt;
              &lt;telerik:GridButtonColumn UniqueName="ShowAssetsColumn" ButtonType="LinkButton" DataTextFormatString="Asseti"
                  DataTextField="idKontakt" CommandName="ShowAssets"&gt;
              &lt;/telerik:GridButtonColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Kontakt" DataField="Naziv" HeaderText="Kontakt"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Funkcija" HeaderText="Funkcija" DataField="Funkcija"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Tel1" HeaderText="Telefon 1" DataField="Tel1"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Tel2" HeaderText="Telefon 2" DataField="Tel2"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Mob1" HeaderText="Mobitel 1" DataField="Mob1"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Mob2" HeaderText="Mobitel 2" DataField="Mob2"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Email1" HeaderText="E-mail 1" DataField="Email1"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Email2" HeaderText="E-mail 2" DataField="Email2"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Fax" HeaderText="Fax" DataField="Fax"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridCheckBoxColumn UniqueName="Aktivan" HeaderText="Aktivan" DataField="Aktivan"&gt;
              &lt;/telerik:GridCheckBoxColumn&gt;
              &lt;telerik:GridEditCommandColumn UniqueName="EditCommandColumn"&gt;
              &lt;/telerik:GridEditCommandColumn&gt;
              &lt;telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
                  ConfirmDialogType="RadWindow" ConfirmText="Brisanje kontakta!" /&gt;
          &lt;/Columns&gt;
          &lt;EditFormSettings UserControlName="UserControls/KontaktUserControl.ascx" EditFormType="WebUserControl"&gt;
              &lt;EditColumn UniqueName="EditCommandColumn1"&gt;
              &lt;/EditColumn&gt;
          &lt;/EditFormSettings&gt;
      &lt;/MasterTableView&gt;
  &lt;/telerik:RadGrid&gt;
  &lt;telerik:RadGrid ID="gvAsseti" runat="server" OnNeedDataSource="gvAsseti_NeedDataSource"
      AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0"
      GridLines="None" ondeletecommand="gvAsseti_DeleteCommand" 
      oninsertcommand="gvAsseti_InsertCommand" 
      onupdatecommand="gvAsseti_UpdateCommand"&gt;
      &lt;MasterTableView DataKeyNames="idAsset" CommandItemDisplay="TopAndBottom" InsertItemPageIndexAction="ShowItemOnCurrentPage"&gt;
          &lt;CommandItemSettings AddNewRecordText="Dodaj novi asset" RefreshText="Prikaži sve assete" /&gt;
          &lt;Columns&gt;
              &lt;telerik:GridBoundColumn UniqueName="Naziv" DataField="Naziv" HeaderText="Naziv"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Kod1" HeaderText="Kod 1" DataField="Kod1"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="Kod2" HeaderText="Kod 2" DataField="Kod"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn UniqueName="DatumGarancije" HeaderText="Datum garancije"
                  DataField="DatumGarancije"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridCheckBoxColumn UniqueName="Aktivan" HeaderText="Aktivan" DataField="Aktivan"&gt;
              &lt;/telerik:GridCheckBoxColumn&gt;
              &lt;telerik:GridEditCommandColumn UniqueName="EditCommandColumn"&gt;
              &lt;/telerik:GridEditCommandColumn&gt;
              &lt;telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
                  ConfirmDialogType="RadWindow" ConfirmText="Brisanje asseta!" /&gt;
          &lt;/Columns&gt;
          &lt;EditFormSettings UserControlName="UserControls/AssetUserControl.ascx" EditFormType="WebUserControl"&gt;
              &lt;EditColumn UniqueName="EditCommandColumn1"&gt;
              &lt;/EditColumn&gt;
          &lt;/EditFormSettings&gt;
      &lt;/MasterTableView&gt;
  &lt;/telerik:RadGrid&gt;
  </code></pre>