binding custom editor value to the grid column

2 posts, 0 answers
  1. Guest10
    Guest10 avatar
    9 posts
    Member since:
    Jul 2016

    Posted 16 Dec 2016 Link to this post



    I have following kenodgrid


            .Columns(columns =>
                columns.Bound(x => x.evId).Visible(false);
                columns.Bound(x => x.PId).Title("Company").HeaderHtmlAttributes(new { style = "white-space: normal" }).EditorTemplateName("PEEditor")  .ClientTemplate("#=CompanyName#")

      columns.Command(command =>

     .ToolBar(toolbar => toolbar.Create())
        .Editable(editable => editable.Mode(GridEditMode.InLine))

    .DataSource(dataSource => dataSource

     .Create(update => update.Action("CreateEV", "EVController"))



    @model object

    @(Html.Kendo().ComboBoxFor(m => m)
         .DataSource(source =>
             source.Read(read =>
                 read.Action("GetPEData", "EVController"); //Set the Action and Controller names.


    ---------------- CreateEV controller

            public ActionResult CreateEV([DataSourceRequest] DataSourceRequest request, evViewModel evt)


    // create code here



    Dropdown shows value perfectly in edit mode

    Question: when I select he values and update/create the record I don't see any value in "evt.PID ". it is null.

    In other words how do I get the value selected in dropdown  to model grid and pass on create action


    Thanks for your help




  2. Eyup
    Eyup avatar
    4081 posts

    Posted 20 Dec 2016 Link to this post


    I've replied to your query in the following post:

    I suggest that we continue our conversation on the mentioned thread.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top