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?
Hello drpoalim,
If you have any other questions, please feel free to contact me.
Hi drpoalim,
Thank you for your reply.
Unfortunately, such feature is not supported by the WebMonthCalendar.
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,
var dropDown = $find("WebDropDown1");
var currentValue = dropDown.get_currentValue();
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.
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:
Let me know if you have any questions.