Hierarchy grid edit, update and delete

5 posts, 0 answers
  1. Stephanie
    Stephanie avatar
    8 posts
    Member since:
    Dec 2013

    Posted 15 Dec 2015 Link to this post

    I have a hierarchy grid that has 6 detail tables.  All the data for the grid is bound in code behind.

    I need to create custom insert, edit and delete templates for each of the detail tables.  The information I have found has the datasource client side.  I need information to create these server side.

     

  2. Stephanie
    Stephanie avatar
    8 posts
    Member since:
    Dec 2013

    Posted 16 Dec 2015 Link to this post

    I found a solution.  I placed a hidden field in each edit form to distinguish which form I was using and created the insert / update queries in the grid ItemCommand.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Cholo
    Cholo avatar
    14 posts
    Member since:
    Mar 2016

    Posted 23 Mar in reply to Stephanie Link to this post

    Can you share your code? Just the radgrid and the code behind please?
  5. Stephanie
    Stephanie avatar
    8 posts
    Member since:
    Dec 2013

    Posted 23 Mar in reply to Cholo Link to this post

    There is too much code to copy and paste but this is what I did for each edit form:

    Put the hidden field at the end of the edit form:

    <asp:HiddenField ID="hiddenType" runat="server" Value="NewConnector" />

    then in your item command, update command, delete command or insert command reference the hidden field:

      If CType(item.FindControl("hiddenType"), HiddenField).Value = "NewConnector"  then

         

  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 25 Mar Link to this post

    Hi Cholo,

    See the project I have attached in the other thread you have opened for the same issue and see if it works for you.


    Regards,
    Maria Ilieva
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017