want to display all but a specific firm on the dropdown

2 posts, 0 answers
  1. Padam
    Padam avatar
    1 posts
    Member since:
    Dec 2014

    Posted 26 Jan 2015 Link to this post

    function ConfirmMigrate(e){
                    var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
                    $("#window").data("kendoWindow").content(detailsTemplate(dataItem));
                   // var name = dataItem.SubscriberFirmName;
                     $('#Subscribers').kendoDropDownList();
                    var dropDown = $("#Subscribers").data("kendoDropDownList");
                    var itemToRemove = dropDown.dataSource.at(0);// displays all but the first Subscriber.
                    dropDown.dataSource.remove(itemToRemove);
        
    I would like to display all but a specific firm on the dropdown. In my case it would be the name.
    At the moment , drop down displays all but first subscriber on the table but I would like to pass the name of the firm as a parameter  and do not include the name in the drop down.  
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 28 Jan 2015 Link to this post

    Hello Padam,

    If you want to remove an item from the dataSource, you can do it like this:

    http://dojo.telerik.com/@Kiril/IvOQe

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top