Hi,
I've just found myself in a predicament where ClientInstanceName can't be used. I have some ClientSideEvents hooked into ASPxSpinEdit controls that are added to templates in a ASPxGridView, once one of these events are triggered i want to iterate through all the other ASPxSpinEdit controls on the same Row/VisibleIndex. To do this i thought that just iterating and using document.getElemenyById would be sufficient, but the object returned does not support the ASPxClientSpinEdit methods; meaning i can't extract the text/value from the object returned.
I can't use the ASPxGridView's GetRowValues either because the values in the ASPxSpinEdit controls might have been changed.
How can i extract the ASPxClientSpinEdit values using only javascript?
*Bump 1*
I'm seriously in a situation where the only thing i have access to is the name of the ASPxClientSpinEdit in a loop, is there any way for me to get the ASPxClientSpinEdit object using the name in a string format?
Is there no method where i can send in the ClientInstanceName and get a handle to the ASPxClientSpinEdit control?
for (var x = 0; x < numColumns; x++) {
if (ASPxGridViewRows.GetColumn(x).visible) {
var controlId = 'ctl00......_ASPxSpinEdit' + x;
// The following does not return the ASPxClientSpinEdit object, it would be great if there was a DevExpress equivalent method where i could pass in
// the ClientInstaneName and get a handle to the control
document.getElementById(controlId).SetReadOnly(false);
}
}