We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DropDownList selected items display

Thread ID:

Created:

Updated:

Platform:

Replies:

119400 Jun 16,2015 11:59 AM Jun 17,2015 09:15 AM ASP.NET MVC 1
loading
Tags: DropDownList
Bruce
Asked On June 16, 2015 11:59 AM

Hello.

Is it possible to display number of selected items instead of threir enumeration? For example: when selecting items  I want to display "10 of 30 items selected" instead of "item1,item2,item3....".

Thank you.

Kasithangam C [Syncfusion]
Replied On June 17, 2015 09:15 AM

Hi Bruce,

Thanks for using Syncfusion Products,

We have achieved your requirement “want to display "10 of 30 items selected” in the following sample and please find the sample under the following location.

Sample Location:Dropdown Sample

In the above sample, we have displayed the No. of dropdown items selected in the button click.Please find the code for same,

<code>

function click() {

        var DropDownListObj = $("#bikeList").data("ejDropDownList");

        var item = DropDownListObj.element.val();

        alert(item.split(",").length +"  of " + DropDownListObj.listitems.length + " items selected");

    }

</code>
Please let us know if you need further assistance.

Regards,

Kasithangam


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;