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 6538589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:45:12+00:00 2026-05-25T10:45:12+00:00

I need to have a Telerik MVC grid with a combobox (in edit mode)

  • 0

I need to have a Telerik MVC grid with a combobox (in edit mode) that is populated based on criteria in each row. So when I click edit on one row, the resulting combobox will have items in it that will be different than the translator combobox in other rows. I figured this row should be loaded on demand, but I can’t figure out how to create a combobox in a grid without an editor template. It looks like I can’t pass parameters to an editor template.

Here’s the use case for this:
Imagine I have a list of languages with translators in a grid. When editing each row, a translator combobox would be displayed with only translators for that particular language. So French will have a translator combobox with names like Pierre, Francois, and Jacque, but Spanish will have names like Jose, Mario, and possibly Pierre because he speaks both French and Spanish.

Any ideas on how to achieve this with Telerik MVC Grid and Combobox?

Thanks in advance,
Steve

UPDATE:
Atanas,
Any chance you can provide a working example? I get errors. Here is my javascript based on your code:

function TaskGrid_OnEdit(e) 
{
    var combobox = $(e.row).find("#ComboBoxId").data("tComboBox");
    //var values = getValuesForDataItem(e.dataItem); // get the values for the current data item      

    var values =
        [
            { Text:"Product 1", Value:"1" },
            { Text:"Product 2", Value:"2" },
            { Text:"Product 3", Value:"3" },
        ];
    combobox.dataBind(values); // fill the combobox
}

Here is the editor template, I don’t bind it to anything here:

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

<%: Html.Telerik().DropDownListFor(s => s.SupplierID).Name("ComboBoxId") %>

By the way, the model in your editor template doesn’t map to any models you have in the solution. Should the model there be mapped to the data you are populating the combo with or the model of the list that’s populating the grid?

Steve

  • 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-05-25T10:45:13+00:00Added an answer on May 25, 2026 at 10:45 am

    For embedding a combobox in a grid you can check this code library project (just replace the dropdownlist with a combobox). You still need to use an editor template though.
    In order to populate the combobox with values specific to the current row you can use the OnEdit event of the grid. There you can setup the combobox using its dataBind method (to bind it client-side) or call its reload method to fill it using ajax. Here is some code:

    function Grid_onEdit(e) {
       var combobox = $(e.row).find("#ComboBoxId").data("tComboBox");
       var values = getValuesForDataItem(e.dataItem); // get the values for the current data item
       combobox.dataBind(values); // fill the combobox
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a Telerik MVC Grid that is populated with Patients. What I
I have a telerik MVC 3 grid, that contains checkbox column. if the user
I have a Telerik RadGrid. The initial DataSource that is bound to the grid
I have a Telerik Menu in usercontrol that located in aspx page, I need
mvc3, telerik mvc 2011.2.712 I have a grid with a DetailView. In the DetailView,
I have been following this example http://demos.telerik.com/aspnet-mvc/grid/selectionclientside?theme=webblue , and have finished it for my
I have a Telerik Grid, with two columns I need to keep second column
I have need for a function pointer that takes two arguments and returns a
I need to have a summary field in each page of the report and
I have two combobox. I need get some value from first combobox1 after combobox1

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.