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.
4 Answers, 1 is accepted
0
Stephanie
Top achievements
Rank 1
answered on 16 Dec 2015, 04:15 PM
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.
0
Cholo
Top achievements
Rank 2
answered on 23 Mar 2016, 08:10 AM
Can you share your code? Just the and the code please?
0
Stephanie
Top achievements
Rank 1
answered on 23 Mar 2016, 12:10 PM
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
0
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
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.