Pass query string value in via tool tip

4 posts, 0 answers
  1. Karl Wilkens
    Karl Wilkens avatar
    206 posts
    Member since:
    Oct 2012

    Posted 05 Oct 2014 Link to this post

    Hi,

    Assume we are creating a new appointment by double click. I want to be able to add a value that currently exists on the query string and is available - client side. The overall goal is to be able to process the new appointment with the query string value in the web service Insert event.

    I tried this client side by setting OnClientFormCreated as a client handler.

     function OnClientFormCreated(sender, args) {
          var app = args.get_appointment();
          app.set_toolTip(getParameterByName("EventID"));
          alert(app.get_tooltip());
      }

    However this does not work - perhaps because the appointment does not yet exist? Any thoughts on how to achieve this with a newly created appointment? Thanks.
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 08 Oct 2014 Link to this post

    Hello,

    When creating an new appointment In the OnClientFormCreated client-side event handler there is an appointment object. After user completes the advanced form the appointment is updated based on the information typed in the advanced form and sent to the service.

    The problem in the provided code is that the method for retrieving the appointment tool tip is actually get_toolTip(). The second "T" in tool tip should be capitalized.


    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Karl Wilkens
    Karl Wilkens avatar
    206 posts
    Member since:
    Oct 2012

    Posted 15 Oct 2014 in reply to Boyan Dimitrov Link to this post

    Thank you. That works fine. The next challenge is that my overall goal was to obtain the tooltip (an integer id) server side in the insert method, but on the server side, the ToolTip is the same as the subject, i.e. non-numeric. 

    What I am trying to do is pass a unique ID in when we create the new appointment. Any help appreciated.
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 20 Oct 2014 Link to this post

    Hello,

    Please find here how you can send additional information from the client-side to web service.


    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top