This is a migrated thread and some comments may be shown as answers.

[Solved] drill dowm ClientEvents

0 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
william
Top achievements
Rank 1
william asked on 19 Dec 2011, 04:14 PM
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:

.ClientEvents(events => events.OnDetailViewExpand("displaySectionDataByType"))
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:
.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");
And this gives me the values i want in the variable section, applying this trick in another form and it doesn't work.
Tags
Grid
Asked by
william
Top achievements
Rank 1
Share this question
or