Hi community,
I have a several RadDatePicker and one RadMonthYearPicker control on a simple page.
I was trying to hide some of them by condition through client side event only, so I write a handler and try to use client object methods to hide them.
My handler looks like:
function handler(){ alert("before"); $find("<%= RadDatePicker1.ClientID %>").set_visible(false); $find("<%= RadMonthYearPicker1.ClientID %>").set_visible(false); alert("after");}Both alert message pop up without any javascripts error, but none of the control is hidden...
This is my first trial, then I try to work around with get_textBox() and hide the text box rendered.
function handler2(){ alert("before"); $($find("<%= RadDatePicker1.ClientID %>").get_textBox()).hide(); $($find("<%= RadMonthYearPicker1.ClientID %>").get_textBox()).hide(); alert("after");}Now the DatePicker is hidden but not the MonthYearPicker...
What have I do wrong and how can I achieve such easy tasks?
I am using Telerik Ajax 2012.1.411, and my browser is Chrome & IE8+
Thanks!
