Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-292168: Error shown for comment in razor file

$
0
0
Reporter cliff vaughn (bbypowerdude) cliff vaughn (bbypowerdude)
Created Mar 29, 2012 5:38:26 AM
Updated Mar 29, 2012 5:38:26 AM
Priority Normal
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
Given the following:

@model EntityTemplateListModel

@using Telerik.Web.Mvc.UI

@*<div class="idp-popup-subtitle">@Html.LabelFor(model => model.Templates)</div>
<div class="editor-row">
<div class="editor-field">
@Html.TemplateCheckBoxListFor(m => m.AppliedTemplates, Model.TemplateSelectList, null)
</div>
</div>*@


@{
var id = ViewContext.RouteData.Values["id"];
string controller = ViewContext.RouteData.Values["Controller"] as string;
}

<div style="width: 100%" class="templates-container">
<table>
<tr>
<td>
<div class="available-users-container">
<h3>Available Templates</h3>
@(Html.Telerik().Grid(Model.AvailableTemplates)
.Name("availableTemplates")
.HtmlAttributes(new { @class = "grid-table" })
.DataKeys(keys => keys.Add(c => c.Id))
.Pageable(pager => pager.Enabled(true))
.Sortable(sortSettings => sortSettings.Enabled(true))
.DataBinding(dataBinding => dataBinding.Ajax().Select("GetAvailableTemplates", controller, new { id = id }))
.ClientEvents(clientEvents => clientEvents.OnComplete("TemplateMove"))
.EnableCustomBinding(true)
.Scrollable(scrolling => scrolling.Height(350))
.Columns(columns =>
{
columns.Bound(c => c.Name)
.Title("Template Name")
.HtmlAttributes(new { @class = "nameColumn" })
.HeaderHtmlAttributes(new { @class = "nameAvailableTemplateColumnHeader" });

columns.Command(commands => commands.Custom("move").Text(">")
.SendDataKeys(true)
.Ajax(true)
.Action("Select", controller, new { entityId = id })
.ButtonType(GridButtonType.Text))
.HtmlAttributes(new { @class = "removeAction" })
.HeaderHtmlAttributes(new { @class = "removeActionHeader" });
})
)

</div>
</td>
<td>
<div class="selected-users-container">
<h3>Selected Templates</h3>
@(Html.Telerik().Grid(Model.AppliedTemplates)
.Name("selectedTemplates")
.HtmlAttributes(new { @class = "grid-table" })
.DataKeys(keys => keys.Add(c => c.Id))
.Pageable(pager => pager.Enabled(true))
.DataBinding(dataBinding => dataBinding.Ajax().Select("GetSelectedTemplates", controller, new { id = id }))
.ClientEvents(clientEvents => clientEvents.OnComplete("TemplateMove").OnDataBound("TemplateDataBound"))
.Scrollable(scrolling => scrolling.Height(350))
.Columns(columns =>
{
columns.Command(commands => commands.Custom("move")
.Text("<")
.SendDataKeys(true)
.Ajax(true)
.Action("Unselect", controller, new { entityId = id })
.ButtonType(GridButtonType.Text))
.HtmlAttributes(new { @class = "removeAction" })
.HeaderHtmlAttributes(new { @class = "removeActionHeader" });

columns.Bound(c => c.Name)
.Title("Template Name")
.HtmlAttributes(new { @class = "nameColumn" })
.HeaderHtmlAttributes(new { @class = "nameAppliedTemplateColumnHeader" });

columns.Command(commands => commands.Custom("moveup")
.Text("Up")
.SendDataKeys(true)
.Ajax(true)
.Action("MoveUp", controller)
.ButtonType(GridButtonType.Text))
.HtmlAttributes(new { @class = "moveUp" })
.HeaderHtmlAttributes(new { @class = "removeActionHeader" });

columns.Command(commands => commands.Custom("movedown")
.Text("Down")
.SendDataKeys(true)
.Ajax(true)
.Action("MoveDown", controller)
.ButtonType(GridButtonType.Text))
.HtmlAttributes(new { @class = "moveDown" })
.HeaderHtmlAttributes(new { @class = "removeActionHeader" });

/*columns.Template(
@<text>
<input type="image" src="/Content/images/moveUp.png" class="moveUp"/>
<input type="image" src="/Content/images/moveDown.png" class="idp-siteContent-template-buttons-movedown"/>
</text>
).ClientTemplate(
"<a class='idp-siteContent-template-buttons-moveup moveUp'><image src='/Content/images/moveUp.png'/></a>" +
"<input type='image' src='/Content/images/moveDown.png' class='idp-siteContent-template-buttons-movedown moveDown'/> "
)
.HtmlAttributes(new { @class = "priorityColumn" } ).HeaderHtmlAttributes(new { @class = "priorityActionHeader" }).Title("Priority");*/
})
)
</div>
</td>
</tr>

</table>

</div>


An error is shown at ".ClientTemplate" even though it's inside of /* */.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>