I work with the RenderDay event, of WebMonthCalendar .
I want to pass the event additional parameters.
Something like:
RednereDay = "WebMonthCalendar(WebDropDown1.CurrentValue)"
How to do?
Hi drpoalim,
What exactly are you trying to achieve? The RenderDay event accepts two parameters - the WebMonthCalendar client-side object and the event object. If you want to get the current value of a WebDropDown on the page, you can use the following code:
var dropDown = $find("WebDropDown1");
var currentValue = dropDown.get_currentValue();
Let me know if you have any questions.
I have a complicated JS code, that gest the values to render.
The code needs to use parameters from controls on the form.
I want to use the same code for WebMonthCalendars, that I
put in different forms.
Tehrefore I want to write the JS in a file, that is used by diferent forms.
If I use in the code, inside the JS file,
I wont be able, to use the same JS for different forms, because not all forms have WebDropDown1.
I need to get the parameters first, from the form, and send them to the event.