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

Kendo Grid + Kendo Drop Drop Down Issue

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ashok
Top achievements
Rank 1
Ashok asked on 20 Jul 2015, 01:51 PM
When we add Kendo drop down in a kendo grid (inside Client Template) and run the application. Text box appears inside the column instead of  Kendo drop down. Can you guide us?

1 Answer, 1 is accepted

Sort by
0
BAJIVALI
Top achievements
Rank 1
answered on 20 Jul 2015, 06:55 PM

Hi Tejas,

 

dont know exactly if i can answer your question .this is how i coded my view to obtain similar result.

 

@(Html.Kendo().Grid<BHEBS.Areas.Admin.Models.OCRateType>()
      .Name("ocGrid")
      .Columns(columns =>
      {
          columns.ForeignKey(p => p.ContractorOwnerId, Model.Contractors, "ContractorOwnerId", "ContractorName").Width(100).EditorTemplateName("GridForeignKey");
          columns.Bound(p => p.Rate).Width(40).EditorTemplateName("Currency");
          columns.Bound(p => p.EffectiveDate).Width(60).Format("{0:MM/dd/yyyy}").EditorTemplateName("DateTime");
          columns.Command(command => command.Destroy()).Width(60);
      })
      .ToolBar(toolbar =>
      {
          toolbar.Create();

      })
      .Editable(editable => editable.Mode(Kendo.Mvc.UI.GridEditMode.InCell))
      .Pageable()
      .DataSource(dataSource => dataSource
          .Ajax()
                  .Model(model => model.Id(p => p.Id))
          )
                                )​

Tags
Grid
Asked by
Ashok
Top achievements
Rank 1
Answers by
BAJIVALI
Top achievements
Rank 1
Share this question
or