or
columns.Template(
@<text>
<img alt="@item.CountryIcon" style='width:30px;height:auto' src="@Url.Content("http://url.com/" + item.CountryIcon) "/>
</text>).Title(
"Icon_2").Width(30);
columns.Bound(b => b.CountryIcon)
.ClientTemplate(
" <img alt='<#= CountryIcon #>' style='width:30px;height:auto' src=" + Url.Content("http://url.com/") + "<#= CountryIcon #> />")
.Title(
"Icon").Width(30);
The problem with the client template code is that the image is not shown on page load and only after the Ajax call is made.
<telerik:RadWindowManager> in head section of that "open.asp". When I run again, it said it needs<telerik:RadScriptManager> .
When I put RadScriptManager on the page. It gave me the error stating "The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases".
How can solve this problem?
Any help would be appreciated.
Thanks in advance.
Sincerely,
JJ
The data binds just fine pickup the is_closed column from the database
<td align="left" colspan="3"> <telerik:RadTreeView runat="server" ID="RadTreeView1" DataSourceID="SqlDataSource1" DataFieldID="pk" DataFieldParentID="parent_pk" CheckBoxes="True" CheckChildNodes="True" TriStateCheckBoxes="False" DataValueField="is_closed" onnodecheck="RadTreeView1_NodeCheck" > <DataBindings> <telerik:RadTreeNodeBinding TextField="Description" Expanded="True" AllowDrag="False" AllowDrop="False" CheckedField="is_closed" AllowEdit="False" /> </DataBindings> </telerik:RadTreeView> </td>