This is a migrated thread and some comments may be shown as answers.

Dynamic DataSource Filtering

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adhip
Top achievements
Rank 1
Adhip asked on 26 Sep 2016, 01:53 PM

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

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 28 Sep 2016, 09:53 AM

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
Tags
General Discussions
Asked by
Adhip
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or