mardi 26 avril 2016

working with validations on dropdownlist in kendolistview

I am having a editTemplate for kendolistview which is working fine. I have a dropdown in that template as below

<li>
                <label>
                    <strong>Country :</strong>
                    <input name="CountryId" class="InputRequired" id="CountryId" data-source="countryDataSource" data-role="dropdownlist" data-text-field="Name" data-value-field="CountryId" data-filter="contains" required="required" validationmessage="Country is required." />
                    <span data-for="CountryId" class="k-invalid-msg"></span>
                </label>
            </li>

Even after writing required="required", validation does not firing as it is mentioned in below url that input validation works . http://ift.tt/1T1VHfM

Please help asap

here is my datasource

  var countryData = [];

 var countryDataSource = new kendo.data.DataSource({
        data: countryData
    });

Aucun commentaire:

Enregistrer un commentaire