I have a RadGrid with an Edit Form Template. In the template, I have a couple RadNumericTextBoxes that I need to enable/disable depending on some checkboxes in the form.
In my javascript, when I do $find("<%= RadNumericTextBoxInGridEditFormTemplate.ClientId %>"), I get a compilation error when I visit the page that says RadNumericTextBoxInGridEditFormTemplate does not exist. This is understandable because it is not there yet.
I am working around this by doing
var
indirect = $(
".my-class"
); // Specified using CssClass="my-class" on RadNumericTextBoxInGridEditFormTemplate
var
textbox = $find(indirect.attr(
"id"
));
which works. I am just wondering if there's a better/more approved way to do this.