This question is locked. New answers and comments are not allowed.
Hi All,
I have a grid that as it stands works ok. NOw I'm introducing 1 level drilldown. Depending on the selection I want to go to different views, so I am attempting to use the following Code:
Now when I press the icon to drill down, this function gets called. However, How Do I pass values to this function on the fly? I thought that it should have an accompanying DetailView, but I cannot get this to work.
in another form I have the following:
And this gives me the values i want in the variable section, applying this trick in another form and it doesn't work.
I have a grid that as it stands works ok. NOw I'm introducing 1 level drilldown. Depending on the selection I want to go to different views, so I am attempting to use the following Code:
.ClientEvents(events => events.OnDetailViewExpand("displaySectionDataByType"))in another form I have the following:
.DetailView(detailview => detailview.ClientTemplate("<div id='section_<#= ControllerName #>_<#= SectionID #>_<#= PolicyZoneID #>'>Loading section summary data<img src='/Content/bar-circle.gif' /></div>")) .ClientEvents(events => events.OnDetailViewExpand("displaySectionDataByType"))then in the function I have:var cell = event.detailRow.cells[1]; var section = $('div', cell).attr("id");