Call Telerik APIs from a Sharepoint Form

Thread is closed for posting
2 posts, 0 answers
  1. Bob
    Bob avatar
    33 posts
    Member since:
    Aug 2009

    Posted 06 Dec 2015 Link to this post

    Hello, we are currently using Telerik to create network directories from ASP interfaces and in the code below, i'm trying to use a few of those UI API components of the UI interface, to create a new network directory from a Sharepoint Form, so any suggestions on how to use the following APIs or suggestions on using any other available Telerik APIs would be much appreciated!  

    <script type="text/javascript">

    function PreSaveItem()  //Sharepoint method
      return true;
    function getData()  // existing Telerik APIs from User Interface below
      var def = $.Deferred();
      fhfaToken.getUserToken().done(function (eToken) {

        var d = {};

        d['parentObjectID'] = 1550109;
        d['objectName'] = “Test5”;
        d['objectTypeID'] = “”;

            url: "",
            data: d,
            headers: { "X-TEST-UserToken": eToken.userToken },

        }).done(function(ajaxData) {
        }).fail(function (jqXHR, textStatus, errorThrown) {
            def.reject(jqXHR, textStatus, errorThrown);

      return def.promise();

    var fhfaToken = {
        userToken: "",
        userId: "",
        getUserToken: function () {
            var that = this;
            var def = $.Deferred();
            if (that.userToken !== "") {
                return def.promise();
                url: "http://[]/_Services/Authentication/UserToken.ashx",
                dataType: "jsonp"
            }).done(function (eToken) {
                that.userToken = eToken.userToken;
                that.userId = eToken.userId;
            }).fail(function (jqXHR, textStatus, errorThrown) {
                def.reject(jqXHR, textStatus, errorThrown);
            return def.promise();

  2. Doroteya
    Doroteya avatar
    498 posts

    Posted 09 Dec 2015 Link to this post

    Hello rc,

    Thank you for contacting us.

    Based on the provided information I was unable to completely understand the situation on your side. Therefore, I would kindly ask you to provide me with the following additional information:

    1. Do you experience any errors? If so, what are their text messages?
    2. Do you use the Telerik Data Access product?
    3. Which controls' suite do you use on your side: Telerik UI for ASP.NET AJAX, or Telerik Kendo UI, or else?
    4. What is the architecture of your application (the structure of the solution and the roles of the projects in the application)?

    Thank you in advance for your understanding and cooperation.

    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Back to Top