Last post Feb 11, 2011 07:48 AM by sjnaughton
Feb 08, 2011 05:52 AM|Olov|LINK
I have been struggling to do a custom page on which I want to display (using dynamic data) a regular formview (normal edit) and one or several grids with child data (not in the formview). I have been studying all examples I can find, but no solution fits
me. Perhaps it can't be done?
An example: I want to have a custom page to view/edit a customer (in one tab) and on the same page (in another tab) show a dynamic grid with orders belonging to the customer.
This link has a solution that is close, but here the grid is a field template and shows in the same formview.
This post is also close, but I fail to make it work in DD 4.0
I hope someone have done this and succeeded and can share some pointers...
Feb 09, 2011 11:43 AM|joe_dotnet|LINK
You can create an attribute to mark the fields that you need include in tabs, then modify your Edit Page Template
to include marked fields in a Tab Container and hide in the formview
I hope you can use the idea
Feb 10, 2011 06:31 PM|sjnaughton|LINK
I do have a version working in .Net 4 now but I have not had the time to extract from the current project and do an article on it, it would need some modification to work the way you want however see below
Dynami Data 4
Feb 11, 2011 07:21 AM|Olov|LINK
That looks nice, I hope you can find the time to add this to your excellent series of solutions for dynamic data.
In the meantime, I have used something based on this:
http://msdn.microsoft.com/en-us/library/dd329362.aspx. It creates the result I want, but it doesn't feel that dynamic.
One problem I have been having could be traced to the radgrid from Telerik that autogenerates the wrong columns (it tried to used columns from the parent table instead of the child, and those could not be found in the datasource obviously). When I switched
to an ordinary gridview, my code (based on the above link) worked correctly. I'm going to go back and revisit my other solutions that never worked and give them a new try with the gridview.
Feb 11, 2011 07:48 AM|sjnaughton|LINK
Hi Olov, I have an updated Telerik DynamicRadGrid if you want to e-mail me I will send you the source so you can try that, I had a lot of issues with it at first and with their help I fixed a lot of the DD issues.