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

Pass query string value in via tool tip

3 Answers 32 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Karl Wilkens
Top achievements
Rank 1
Karl Wilkens asked on 05 Oct 2014, 02:31 PM
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.

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 08 Oct 2014, 11:52 AM
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.

 
0
Karl Wilkens
Top achievements
Rank 1
answered on 15 Oct 2014, 10:52 AM
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.
0
Boyan Dimitrov
Telerik team
answered on 20 Oct 2014, 09:02 AM
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.

 
Tags
Scheduler
Asked by
Karl Wilkens
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Karl Wilkens
Top achievements
Rank 1
Share this question
or