What are the possible types of data transports?

4 posts, 0 answers
  1. Brian Vallelunga
    Brian Vallelunga avatar
    101 posts
    Member since:
    May 2008

    Posted 09 Aug 2012 Link to this post

    I've seen references to "odata" and "aspnetmvc-ajax", but what are the others? I'm specifically looking for the default type that would be called manually in: kendo.data.transports["somevalue"]

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 10 Aug 2012 Link to this post

    Hello Brian,

    Odata is the only one type that should be used by end users. Aspnetmvc-ajax is used by Kendo UI Complete for ASP.NET MVC to perform the Ajax binding and we do not recommend to use it on its own.

    I hope this information helps. 

    Regards,
    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Brian Vallelunga
    Brian Vallelunga avatar
    101 posts
    Member since:
    May 2008

    Posted 10 Aug 2012 Link to this post

    What is the default parameterMap if no function is specified? I'm asking this because I need to specify a parameterMap function for update calls, but want to allow the default parameterMap for read calls.
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 13 Aug 2012 Link to this post

    Hello,

     The default parameter map returns the options as they are. You can do something like this:

    parameterMap: function(options, type) {

         if (type != "update") {
               return options;
         }

         // map the data as you wish
    }

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top