This question is locked. New answers and comments are not allowed.
Hi,
I have a grid with one column that gets it's values from a dropdownlist using this code (below)
Everything worked Great until Q2 version was deployed and than the Template Data is not shown anymore in Edit Mode.
(it is show in any other way, but if you add a new row and pick something from the dropdown list or if you edit the row - you don't see anything until data is save and re-fetched by the ajax call)
Any ideas how to make it work again as before ?
REMARK - This happens on FIREFOX (ver. 7.0.1) but not in IE - in IE it works OK !
and this script in the page:
I have a grid with one column that gets it's values from a dropdownlist using this code (below)
Everything worked Great until Q2 version was deployed and than the Template Data is not shown anymore in Edit Mode.
(it is show in any other way, but if you add a new row and pick something from the dropdown list or if you edit the row - you don't see anything until data is save and re-fetched by the ajax call)
Any ideas how to make it work again as before ?
REMARK - This happens on FIREFOX (ver. 7.0.1) but not in IE - in IE it works OK !
c.Bound(o => o.ActivityID).Title("activity").Width(500).ClientTemplate( "<#= Activity.ActivityID#>" + " - " + "<#= Activity.ActivityName #>" + " cost: " + "<#= Activity.Cost #>" + " $" + " time: " + "<#=Activity.ActivityTimeHours#>" + " housr");// + " hours");and this script in the page:
<script type="text/javascript"> function onEdit(e) { if ($(e.form).find("#Cost").val() == "") { $(e.form).find('#ActivityID').data('tDropDownList').select(function (dataItem) { return dataItem.Text == e.dataItem['ActivityID']; }) } else { $(e.form).find('#ActivityID').attr("disabled", "disabled"); } };</script>