How do I set the data source for a detail table in a hierarchical grid using client side code?
I can see that you can set the master table data source as follows, but how and when do I load the child data into the detail tables?
<script type="text/javascript">
function pageLoad() {
var data =
[
{ "ID": 1, "Text": "Text1" },
{ "ID": 2, "Text": "Text2" }
];
var mtv = $find("RadGrid1").get_masterTableView();
mtv.set_dataSource(data);
mtv.dataBind();
}
</script>