This is what I am looking for. But, instead of color I need to display different text or image based on property value on the client.
How can I pass the extenstions property to a javascript function to build the right html?
Eg:
"{\"id\":\"region\",\"property\":\"innerHTML\",\"value\":\"Extensions.Region\"},"
and in the client I have a function:
RenderRegion(o)
{
if( o == 'something' )
{
return "Something was returned";
}
elseif( o == "something else")
{
return "<img src="somthing.gif" />";
}
else
{
return "<img src="x.gif" />";
}
}
I tried:
{\"id\":\"sla\",\"property\":\"innerHTML\",\"value\":\"RenderRegion(Extensions.Region)\"},
But this did not work. Any suggestions?
Thanks.