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

How can i change the url?

1 Answer 493 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Chilam
Top achievements
Rank 1
Chilam asked on 16 Apr 2012, 09:30 AM
i use the restful mode in the server,when i update the object,the url must be '/demo/{id}' and submit type must be "put".

but the update url was definition 
                    transport: {
                        update: {
                            url: "/demo/{id}"
                        }
    }
how can i change url when i need update.
For example,when i update the record,the id is "abcdefg",i need change the url become '/demo/abcdefg' .

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 16 Apr 2012, 03:32 PM
Hi Chilam,

The url of the transports can accept a function. For more information on this topic and sample code please check this forum thread.
I hope this functionality will help you to solve the case.

Greetings,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Chilam
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or