This question is locked. New answers and comments are not allowed.
I need the ability to perform dynamic selection and totalling. So if you select rows 3-5, then the total of a column will be calculated dynamically.
I expect to do this via JScript. But I need an event to fire as rows are selected and then the ability to access the grid to recover the values needing totalling.
Here is what I've got so far (the display is working fine, it is the interaction that has me stalled):
I expect to do this via JScript. But I need an event to fire as rows are selected and then the ability to access the grid to recover the values needing totalling.
Here is what I've got so far (the display is working fine, it is the interaction that has me stalled):
<%=Html.Telerik().Grid(Model) |
.Name("WellGrid") |
.ClientEvents(events => events.OnRowSelected("onRowSelected")) |
.Columns(columns =>{ |
columns.Bound(o => o.WellID); |
columns.Bound(o => o.WellName); |
columns.Bound(o => o.CompletionDate); |
columns.Bound(o => o.TotalCost); |
}) |
.Sortable() |
.Filterable() |
.Scrollable() %> |
<textarea id="TextArea1" cols="20" rows="2"></textarea> |
<script language="jscript" type="text/jscript"> |
function onRowSelected(e) { |
TextArea1.value = ?????????? |
} |
</script> |