Hi,
I have a RadScheduler control which is bound to appointments client side via a web service. I have defaulted the control to open the advanced insert/edit form when inserting/updating appointments. I would like to be able to pre-set the text in the subject text box when inserting a new appointment. I have hooked up to the OnClientFormCreated event and tried access the controls from javascript and set the text. I have tried the following:
and also:
Occasionally when I place an alert after these pieces of code I can see the text in the text box but once the function completes it is removed and left with a blank text box.
Can this functionality be achieved? Any help much appreciated.
Thanks
David
I have a RadScheduler control which is bound to appointments client side via a web service. I have defaulted the control to open the advanced insert/edit form when inserting/updating appointments. I would like to be able to pre-set the text in the subject text box when inserting a new appointment. I have hooked up to the OnClientFormCreated event and tried access the controls from javascript and set the text. I have tried the following:
var subjectJQueryObj = $telerik.$("[id$='Subject']");var subjectBox = document.getElementById(subjectJQueryObj.attr('id'));subjectBox.value = "hello";var subjectJQueryObj = $telerik.$("[id$='Subject']");var subjectRadTextBox = $find(subjectJQueryObj.attr("id"));subjectRadTextBox.set_value("hello");Occasionally when I place an alert after these pieces of code I can see the text in the text box but once the function completes it is removed and left with a blank text box.
Can this functionality be achieved? Any help much appreciated.
Thanks
David