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

kendo ui editor template help

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ALEXANDER
Top achievements
Rank 1
ALEXANDER asked on 27 Mar 2014, 11:33 AM
hi,
im using kendo ui and im having a problem. thee is a combo box that hold some text values, and i hv a kendo grid that has many columns. one of the columns has editor template and that editor template has a combobox . that combobox has to be rebinded on the index change of the outer combo box but it just binds on the first time and is not updated when the index of the outer combobox is changed. any help wud be appreciated. can provide more details if need. im pretty new to the mvc.

this is my editortemplate

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

<%=        
    Html.Kendo().ComboBoxFor(m => m)
   .BindTo((System.Collections.IEnumerable)ViewData["Prd_Groups"])
   .DataValueField("PRD_GROUP")
   .DataTextField("PRD_GROUP")
   .Name("PRD_GROUP")   
   //use the data-skip attribute to prevent adding the default value binding and add the data-bind attribute for the custom binder
   .DataSource(dataSource => dataSource
    
    .Read(read => read.Action("loadprdgrp", "MarketMaster"))
  )
   .HtmlAttributes(new { data_skip = "true", data_bind = "nullableValue: PRD_GROUP" })
 %> 

























1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 31 Mar 2014, 08:27 AM
Hi Alex,

I would suggest to check the following CodeLibrary examples which demonstrates how to implement cascading DropDownLists inside Grid with:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
ALEXANDER
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or