Note that there are some explanatory texts on larger screens.

plurals
  1. POInline markup blocks cannot be nested. Only one level of inline markup is allowed. MVC RAZOR
    text
    copied!<p>I one one modal window with telerik grid inside. But i need to render images in my grid so as i understand i cant use @ twice. Here is blog post about this issue <a href="http://blogs.telerik.com/xamlteam/posts/11-01-27/mvc3-and-grid-hierarchy.aspx">Link</a></p> <p>Can someone assist me please.</p> <p>My Code</p> <pre><code>@{ Html.Telerik().Window() .Name("images") .Title("Select an Image") .Content(@&lt;text&gt; @(Html.Telerik().ComboBox() .Name("AjaxComboBox66") .AutoFill(true) .SelectedIndex(0) .BindTo(new SelectList(Model.PhotoFolders, "ID", "Name")) .Filterable(filtering =&gt; filtering.FilterMode(AutoCompleteFilterMode.StartsWith)) .HighlightFirstMatch(true) .ClientEvents(events =&gt; events .OnChange("onChange") ) ) @(Html.Telerik().Grid&lt;AjaxImages&gt;() .Name("Grid") .DataKeys(keys =&gt; keys.Add(c =&gt; c.ID)) .Columns(columns =&gt; { columns.Template( @&lt;text&gt; &lt;img src='@item.Url' /&gt; //Here is my error. I need helper function &lt;/text&gt; ).Title("Picture"); }) .DataBinding(dataBinding =&gt; dataBinding.Ajax().Select("GetImages", "UserProducts")) .Scrollable(scrolling =&gt; scrolling.Enabled(true)) .Sortable(sorting =&gt; sorting.Enabled(true)) .Pageable(paging =&gt; paging.Enabled(true).PageSize(20).Total(100).Style(GridPagerStyles.NextPreviousAndNumeric)) .Filterable(filtering =&gt; filtering.Enabled(true)) .Groupable(grouping =&gt; grouping.Enabled(false)) .EnableCustomBinding(true) .Footer(true)) &lt;/text&gt;) .Width(400) .Draggable(true) .Modal(true) .Visible(false) .Render(); } </code></pre> <p>My GetImages function return me json with "ID" and "URL".</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload