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

Multiple server CascadeComboBox not working with angularJS

1 Answer 84 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Janusz
Top achievements
Rank 1
Janusz asked on 03 Feb 2015, 03:00 PM
Hi,

I have made window with 3 comboboxes and I attached to them k-option.
I've made example here: [working example] but In my application where I have remote datasources and only last combobox works ok.
The second one (customer) not cascading from first one (client).

As I say before only difference is remote datasource, and they looks:
$scope.addClientOptions = {
                    index: -1,
                    optionLabel: " ",
                    highlightFirst: true,
                    autoBind: true,
                    filter: "contains",
                    dataTextField: "name",
                    dataValueField: "id",
                    dataSource: {
                        type: "json",
                        serverFiltering: true,
                        transport: {
                            read: {
                                url: "uni/party/client"
                            }
                        },
                        schema: {
                            data: "data",
                            total: function (result) {
                                return result.total;
                            }
                        }
                    }
                };
 
$scope.addCompanyOptions = {
                   optionLabel: " ",
                    highlightFirst: true,
                    autoBind: true,
                    filter: "contains",
                    dataTextField: "name",
                    dataValueField: "id",
                   cascadeFrom: "param_client",
                   cascadeFromField: "id",
                    dataSource: {
                        type: "json",
                        serverFiltering: true,
                        transport: {
                            read: {
                                url: "uni/party/company"
                            }
                        },
                        schema: {
                            data: "data",
                            total: function (result) {
                                return result.total;
                            }
                        }
                    }
                };
 
$scope.documenTypeAddOpions = {
                    optionLabel: " ",
                    autoBind: true,
                    filter: "contains",
                    dataTextField: "name",
                    dataValueField: "id",
                    cascadeFrom: "param_customer",
                    cascadeFromField: "id",
                    dataSource: {
                        type: "json",
                        serverFiltering: true,
                        transport: {
                            read: {
                                url: "unisono/symfony/document/type"
                            }
                        },
                        schema: {
                            data: "data",
                            total: function (result) {
                                return result.total;
                            }
                        }
                    }
                };


Only the last one (type) cascade from (customer).

How can I make It working ?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 05 Feb 2015, 11:31 AM
Hello Janusz,

Thank you for the demo. I tried to use it as a base in order to replicate the issue, but to no avail (demo link). Could you further modify it and reproduce the issue? This will help us to review the problem locally and find a proper resolution of it.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ComboBox
Asked by
Janusz
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or