This question is locked. New answers and comments are not allowed.
Hi,
I am trying to create custom drop down for toolbar in RadEditor. Below is the code that i am trying to use ...
I am trying to loop through OutputParameters collection in my Model but i am getting compilation error "Code blocks are not supported in this context".
Can anybody help me resolve this issue.
Thanks for sharing your wisdom.
I am trying to create custom drop down for toolbar in RadEditor. Below is the code that i am trying to use ...
<telerik:RadEditor ID="RadEditor1" runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" Width="710px"><br>
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="InsertImage" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="InsertTable" />
<telerik:EditorSeparator />
<telerik:EditorDropDown Name="OutParaList" Text="Output Properties" Width="66px" >
<% foreach(var itm in Model.OutputParameters) { %>
<telerik:EditorDropDownItem Name="<%:itm.Name %>" Value="<%:itm.Name %>"></telerik:EditorDropDownItem >
<% } %>
</telerik:EditorDropDown>
</telerik:EditorToolGroup>
</Tools>
.....
</telerik:RadEditor>I am trying to loop through OutputParameters collection in my Model but i am getting compilation error "Code blocks are not supported in this context".
Can anybody help me resolve this issue.
Thanks for sharing your wisdom.
