Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8057401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:01:09+00:00 2026-06-05T09:01:09+00:00

My work is on MVC3 with Razor, So this is the Scenario I have

  • 0

My work is on MVC3 with Razor, So this is the Scenario
I have an Editor Template which has a Telerik DropDownList control in it.
My requirement is to display the same Telerik DropDownList multiple times from the Editor Template by calling the

EditorFor(m=>m.Assignee.Options,"OptionsList")
EditorFor(m=>m.Assignee.Options,"OptionsList")

So if i do this, the style for both the controls get rendered properly, but the “functionality” of the Telerik DDL gets affected for the second control(it doesn’t drop at all), the first one works fine.

Afterwards, i tried to use some other control (here too the control’s working was based on jQuery just like Teleriks) and i repeated the above scenario. SAME RESULT.
First control got rendered and worked properly, rest of the repeated controls broke.
I found out that the issue was becoz of the Script(jQuery) that were used by the controls in the Editor Template.
My question is, is it possible to use a jQuery based control in Editor Template and make it work for mulitple times in the same page?
If so any solution or link which i can refer to?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:01:10+00:00Added an answer on June 5, 2026 at 9:01 am

    I think this is due to your name and id attributes having the same values.

    In your editor template try making the name and the id attributes unique.

    @(Html.Telerik().DropDownList()
      .Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))   //unique
      .HtmlAttributes(new { id = ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty) + "_wrapper" })  //unique
      .SelectedIndex(...)
      .BindTo(...)
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MVC3 Razor view which has a link that requires user login
I have a strongly typed MVC3 Razor view in which I want to display
I work with c# MVC3 & razor, Entity Framework and Linq. I have a
I have something like this in Site.Master in an asp.net mvc3 (not razor) project:
Using MVC3.0 with the razor view engine. I have an entity titled Vendors which
I'm currently working on my first MVC3 application at work (using the Razor view
Work on this small test application to learn threading/locking. I have the following code,
I'm using jQuery Validate Unobtrusive with ASP.NET MVC3 Razor. I have a page with
I am new to MVC3 and Razor. I have an attention banner on the
I'm experimenting with ASP.NET MVC3 Razor and I'm fairly impressed. This is the way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.