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

GanttDataSource - transport-parameter-map is never called

2 Answers 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 09 Mar 2021, 02:30 PM

I have the code below as per the docs, all is fine except the parameter map function never gets called (for any operation, read or create etc.)

 

    <ganttdatasource ref="ganttdatasource1"
        :transport-read="gRead    
        :transport-parameter-map="parameterMap"
        ......
    </ganttdatasource>

    <gantt
        data-source-ref="ganttdatasource1"
......
    ></gantt>

    methods: {
        parameterMap: function(options, operation) {
            console.log("parameterMap!", options)       //Never see this
            .....
        }

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar
Telerik team
answered on 10 Mar 2021, 12:08 PM

Hi Al,

I don't know the whole Gantt and DataSource implementation that you have in your application, but here is a StackBlitz example demonstrating how the parameterMap function is executed on every read call. 

You can compare the provided example to the implementation in your application. Thus you may notice what is the reason why the parameterMap is not called. 

Another reason why the parameterMap is not called is the notice from the second link above: "The parameterMap function will not be called when using custom functions for the read, update, create, and destroy operations."

I hope the above details will help you resolve the issue in your application.

Regards,
Petar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 10 Mar 2021, 12:19 PM

Thanks, I missed this bit in the docs: "The parameterMap function will not be called when using custom functions for the read, update, create, and destroy operations."

 

Tags
General Discussions
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Petar
Telerik team
Al
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or