This question is locked. New answers and comments are not allowed.
Hi,
My situation is on one page I have more than one (but unknown) instances of a partial view containing this telerik field:
Then I have a cost field that is supposed to display a cost based for each partial view based on this field. The problem is the JS function that displays the cost doesn't work for all partial views because the cost field is named totalCost for each partial view. To fix this I thought to append some number to the field so we can distingiush the fields in each partial view. The problem is then the JS function somehow needs a parameter for us to pass in this number. Is this possible? If not, any thoughts on another way to fix my problem?
What I need to do is pass a parameter to the OnChange function for the text field...
Thanks,
James :-)
My situation is on one page I have more than one (but unknown) instances of a partial view containing this telerik field:
<%= Html.Telerik().NumericTextBoxFor(k => k.ReceiptItemFeatured.Days).MinValue(0).DecimalDigits(0). ClientEvents(k => k.OnChange("DaysFeaturedChanged"))%>Then I have a cost field that is supposed to display a cost based for each partial view based on this field. The problem is the JS function that displays the cost doesn't work for all partial views because the cost field is named totalCost for each partial view. To fix this I thought to append some number to the field so we can distingiush the fields in each partial view. The problem is then the JS function somehow needs a parameter for us to pass in this number. Is this possible? If not, any thoughts on another way to fix my problem?
What I need to do is pass a parameter to the OnChange function for the text field...
Cost: $<span id="totalCost"></span>Thanks,
James :-)