I have a radgrid and a user has made a choice in a radcombobox in a row. I have then set the row selected to true (in javascript) and I also have reference to the rows index (if needed). Anyway, now I need to change a asp:image control and a asp:label controls values based on the combobox choice...
I was trying something like this (see script below) but it continues to return null... I would like to leverage the fact that I have the row set as selected if that would help actually find the image control
Here is the GridTemplageColumn:
I was trying something like this (see script below) but it continues to return null... I would like to leverage the fact that I have the row set as selected if that would help actually find the image control
function
getControl(rowIndex) {
var
masterTable = $find(
"<%=RadGridAudits.ClientID%>"
).get_masterTableView();
var
imageState = masterTable.get_dataItems()[rowIndex].findControl(
'ImageState'
);
// change the img to another image at this point...
}Here is the GridTemplageColumn:
<
telerik:GridTemplateColumn
DataField
=
"TagAuditState"
HeaderText
=
"Audit State"
SortExpression
=
"TagAuditState"
UniqueName
=
"TagAuditState"
>
<
ItemTemplate
>
<
asp:Image
ID
=
"ImageState"
runat
=
"server"
/>
<
asp:Label
ID
=
"LabelTagAuditState"
runat
=
"server"
SkinID
=
"EditForms"
Text='<%# Eval("TagAuditState") %>' />
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>