Quantcast
Viewing all articles
Browse latest Browse all 7205

Master-Detail GridView on different PageControl TabPages

This example illustrates how to define a master-detail GridView located on different PageControl TabPages.

The main implementation details:

- Define both grids in separate PartialView files. See the KA20010: Why can the alert message with the HTML/JavaScript/CSS content appear when using callback-aware extensions? KB Article for more information;
- Handle the master grid's client-side FocusedRowChanged event;
- Perform a custom callback of the detail grid via the client-side ASPxClientGridView.PerformCallback method;
- Handle the detail grid's client-side BeginCallback event;
- Pass the required data (for example, the master grid's data FocusedRow keyValue / visibleIndex) as a parameter. See the Passing Values to a Controller Action through Callbacks help topic for more information;
- Handle the detail grid's CallbackRouteValues.Action method, retrieve the passed parameter and initialize the Model object according to this data.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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