Hey there,
I am attempting to get the ID of an editor inside of a datagrid with javascript and am having difficulties.
The code:
document.getElementById('<%=ce_image.ClientID%>')
Works to get the ID without the datagrid, but is not successful when inside the datagrid. I took a look at the rendered page to see that the code above is rendered as:
document.getElementByID('CE_ce_image_ID')
in the page without the datagrid. Assuming that the method of hardcoding the ID into the script might work I attempted the code:
document.getElementById('CE_DataGrid1__ctl3_ce_image_ID')
after looking inside rendered datagrid page. This method, unfortunately, does not solve the problem.
Does anyone know how to get the clientID of a cuteeditor inside a datagrid with Javascript?
-Jason