This is a migrated thread and some comments may be shown as answers.

Grid: Server Edit Templates

0 Answers 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dahv
Top achievements
Rank 1
dahv asked on 03 Jun 2011, 09:47 PM
Hi. I'm want to personalize the grid using telerik mvc controlls, but i'm using VB.net and all examples that telerik have are using c#. My problem es when I want to create the file .ascx in the editorTemplates folder, I try to use the same lines that have the example:

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Employee>" %>

<%= Html.Telerik().DropDownList()
        .Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
        .BindTo(new SelectList((IEnumerable) ViewData["employees"], "Id", "Name", Model.EmployeeID.ToString()))
%>


The problem it's the IEnumerable, I don't know why with VB.Net don't recognize the IEnumerable. So If some one can help me to make this in VB.Net. Thanks.
Tags
General Discussions
Asked by
dahv
Top achievements
Rank 1
Share this question
or