Quantcast
Viewing all articles
Browse latest Browse all 7205

How to use the LayoutView/CardView as a master View in master-detail mode

This example illustrates how to emulate a master-detail mode for the LayoutView/CardView.

Image may be NSFW.
Clik here to view.

Question Comments

Added By: Marcus Gabriel at: 8/20/2013 11:44:10 AM    

A screenshot how the result looks would help to quickly find out if this sample is what someone is looking for.

Added By: Svetlana (DevExpress Support) at: 8/20/2013 1:05:06 PM    

Hi,

I have added an image showing how the application works. Thank you for your idea.

Added By: Sean Birmingham 1 at: 8/8/2015 5:33:30 PM    

I am attempting a similar solution but the layout view (lvPictures) is itself a detail view (of gvLocation) and I want the detail grid view displayed in the PopupContainerControl to be a view (gvPicTags) I've created in the grid designer that itself uses editors created in the grid designer's In Place Editor Repository to add/update/delete records in gvPicTags.  Is this possible?

I've implemented the solution posted here to display the detail grid but doesn't appear to be picking up the grid layout (gvPicTags) I've created.  It does however display the raw data correctly...

Added By: Sean Birmingham 1 at: 8/8/2015 6:14:13 PM    

Funny, sometimes writing a question helps clarify the solution...

In the lvPictures_GotFocus I execute:

       helper = New MasterDetailHelper(layoutView1, ViewType.Grid, gvPicTags)
       helper.CreateDetail()

LayoutView1 is the sender object (lvPictures) and I added an additional parameter referencing the detail grid view (gvPicTags) which I created in the designer.  In CreateView() I changed the detailView_Renamed assignment for GridView from New GridView(DetailGrid) to the detailGridView (gvPicTags) which I passed via the new parameter.

Added By: Svetlana (DevExpress Support) at: 8/10/2015 9:57:22 AM    Thank you for informing us that the issue has been resolved. Please do not hesitate to contact us in case of any difficulty. Added By: Sean Birmingham 1 at: 9/18/2015 4:22:50 PM    

I've implemented as detailed above with a grid that allows rows to be added and deleted.  The PopupEditContainer resizes on popup but I'm stumped how to resize the contianer when a row has been added or deleted without closing the container.  Is this possible and how can I modify the code to resize the PopupContainerEdit when a row is added or deleted?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>