Hi!
I get this error: 'Microsoft JScript runtime error: Invalid set operation on read-only property'.
When I have this code wrapped in an <telerik:RadAjaxPanel>:
-----------------------------------------------------------------------------
<asp:Button ID="TestButton" runat="server" Text="ShowCalendar" OnClick="TestButton_Click" />
<asp:Panel ID="DatePanel" runat="server" Visible="false">
<telerik:RadDatePicker ID="DatePicker" runat="server" ShowPopupOnFocus="true" DateInput-ReadOnly="true" />
</asp:Panel>
Button Code:
----------------
protected void TestButton_Click(object sender, EventArgs e)
{
DatePanel.Visible = true;
}
All I'm trying to do is set the panel to visible = true. Doesn't seem to work, I can reproduce this behaviour everytime.
EDIT:
If I set the Panels Visible="true" before the page starts I can show and hide the panel as much as I like without any problems. But I want it to be hidden initially.
EDIT [SOLVED]:
I solved it by settings the panel style to style="display: none;" And then in code remove the style using DatePanel.Style.Remove("display"); when I want to show the panel, this is only needed once after that I can use visible as I would normally. Strange problem.
Regards, Jerry
I get this error: 'Microsoft JScript runtime error: Invalid set operation on read-only property'.
When I have this code wrapped in an <telerik:RadAjaxPanel>:
-----------------------------------------------------------------------------
<asp:Button ID="TestButton" runat="server" Text="ShowCalendar" OnClick="TestButton_Click" />
<asp:Panel ID="DatePanel" runat="server" Visible="false">
<telerik:RadDatePicker ID="DatePicker" runat="server" ShowPopupOnFocus="true" DateInput-ReadOnly="true" />
</asp:Panel>
Button Code:
----------------
protected void TestButton_Click(object sender, EventArgs e)
{
DatePanel.Visible = true;
}
All I'm trying to do is set the panel to visible = true. Doesn't seem to work, I can reproduce this behaviour everytime.
EDIT:
If I set the Panels Visible="true" before the page starts I can show and hide the panel as much as I like without any problems. But I want it to be hidden initially.
EDIT [SOLVED]:
I solved it by settings the panel style to style="display: none;" And then in code remove the style using DatePanel.Style.Remove("display"); when I want to show the panel, this is only needed once after that I can use visible as I would normally. Strange problem.
Regards, Jerry