Dynamic DataSource Filtering

2 posts, 0 answers
  1. Adhip
    Adhip avatar
    4 posts
    Member since:
    Aug 2016

    Posted 26 Sep Link to this post

    Hi,
    Now I am creating a page with a few asp .net mvc components such as bar chart, pie chart etc. Now I want to filter all of the datasource's in these components after selecting a specific value from the set of values in the listview that are being displayed on the side of the page using the script given below. 

    function onChange(arg) {
            var selected = $.map(this.select(), function(item) {
                $("#select").html($(item).text());
            }
    }

    So I essentially want to filter all the components in the page using a value from the list.

    Can someone show me how this is done using an example?

     

    Thanks & Regards,

    Adhip

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 28 Sep Link to this post

    Hello Adhip,

    This can be accomplished by getting the client-side references of the chart widgets and filtering the exposed datasource objects by using the filter method.

    If you have difficulties on implementing that, please provide a simple, locally runnable solution of the configuration you have in order to define what the situation is.

    Regards,
    Ianko
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top