Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am using two Kendo Dropdownlists as Cascading dropdowns, but when my form is being submitted, the value and text both of the second dropdown is not being passed to the action method.
My partial view is being opened with Editortemplate of the Kendo grid, my dropdowns are as below
<pre>@model DHCS.BH.Provider.Models.ProviderService

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="k-edit-form-container">
        <ul class="errors"></ul>
        <div class="editor-label" style="display:none;">
            @Html.LabelFor(model => model.PKProviderServiceId)
        </div>
        <div class="editor-field" style="display:none;">
            @Html.Kendo().TextBoxFor(model => model.ProviderId)
        </div>
        <div class="editor-label" style="display:none;">
            @Html.LabelFor(model => model.ServFuncCatMCModeOfServiceId)
        </div>
        <div class="editor-field" style="display:none;">
            @Html.Kendo().TextBoxFor(model => model.ServFuncCatMCModeOfServiceId)
        </div>
        <div class="editor-label" style="display:none;">
            @Html.LabelFor(model => model.ServiceFunctionCategoryId)
        </div>
        <div class="editor-field" style="display:none;">
            @Html.Kendo().TextBoxFor(model => model.ServiceFunctionCategoryId)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.MSSF)
        </div>
        <div class="editor-field">
            @Html.Kendo().DropDownListFor(model => model.MSSF).Name("MSSF").DataSource(source => { source.Read(read => { read.Action("GetMSSF", "LookUp"); }); }).OptionLabel("Select").DataTextField("Text").DataValueField("Text")@*.HtmlAttributes(new { id = "idMSSF" })*@
            @Html.ValidationMessageFor(model => model.MSSF, "", new { @class = "text-danger" })
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.MCMS)
        </div>
        <div class="editor-field">           
            @Html.Kendo().DropDownListFor(model => model.MCMS).Name("MCMS").OptionLabel("Select").DataTextField("Text").DataValueField("Text").DataSource(source => { source.Read(read => { read.Action("GetMCMSByMSSF", "Provider").Data("filterMCMS"); }).ServerFiltering(true); }).Events(e => e.DataBound("onMCMSDataBound")).AutoBind(false).CascadeFrom("MSSF")
            @Html.ValidationMessageFor(model => model.MCMS, "", new { @class = "text-danger" })
        </div>
</div>
}


<style>
    .k-edit-buttons.k-state-default {
        visibility: visible;
    }

</style>


Please help me if I am missing anything, any help would be greatly helpful, thanks in advance.

What I have tried:

googling trying with different options etc but nothing helped so far.
Posted
Updated 5-Oct-18 8:24am

do you need to discuss it together?
 
Share this answer
 
Comments
Nelek 5-Oct-18 6:01am    
Please don't use "solution" to chat with people. You should have used the "have a question or comment" widget instead (or the tiny reply, if you want to add it to an existent comment)
Sure, please let me know how my friend, I really need the help for this.
 
Share this answer
 
Comments
Richard Deeming 9-Oct-18 13:53pm    
Neither of these "solutions" are solutions to the question. vcbeaut should have clicked the "Have a Question or Comment?" button under your question, and you should have clicked the "Reply" button next to his comment.

This is at least the fourth time you have been told not to post comments as "solutions".

What's worse is that you have marked his non-solution as the accepted answer, so now your question is showing as "solved".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900