This is a migrated thread and some comments may be shown as answers.

Having issue loading the control...

5 Answers 59 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Vijaianand
Top achievements
Rank 1
Vijaianand asked on 23 Sep 2011, 04:39 PM
I have a calendar control in the panel in the page. If the panel is visible, I show it and make it disabled on situation and enable it back. If the panel is not visible, obviously control is not loaded yet but when make panel visible and enable the calender it doesn't show the calender icon instead shows "Open the calender" message on the right with textbox. It looks like control is not loading properly by making it panel visible in the run time. 

Please let me know is there a way to fix it.

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 26 Sep 2011, 11:19 AM
Hello Vijaianand,

Most probably the reason for this problem is that the RadCalendar is shown as a result of an AJAX request. Please try setting EnableAjaxSkinRendering property of the RadCalendar to true in Page_Load (both on initial load and after every postback).

Give it a try and let me know if this helps to resolve the problem.

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Vijaianand
Top achievements
Rank 1
answered on 26 Sep 2011, 01:48 PM
You are right about Ajax loading but the solution didn't fix the issue. I still have the same problem. I tried to set that property on every load but still showing the same problem. 
0
Pavlina
Telerik team
answered on 26 Sep 2011, 02:09 PM
Hello Vijaianand,

Could you post your aspx and code-behind. Thus we will be able to reproduce the issue locally and provide a solution.

Best wishes,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Vijaianand
Top achievements
Rank 1
answered on 26 Sep 2011, 04:33 PM
Here is the ASPX part,
<asp:Panel ID="pnlIDP" runat="server" Visible="false">
   <tr>
              <th>
                     <asp:Literal ID="litMsg" runat="server" Visible="false"></asp:Literal>
                                                   </th>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        Overview<br>
                                                        <asp:TextBox TextMode="MultiLine" ID='txtOverview' Style="width: 450px; height: 100px;
                                                            color: black" runat="server">
                                                        </asp:TextBox>
                                                        <telerik:RadToolTip ID="RadToolTip1" runat="server" ManualClose="true" ShowEvent="OnClick"
                                                            HideEvent="LeaveTargetAndToolTip" RelativeTo="Element" Position="MiddleRight"
                                                            ShowCallout="true" TargetControlID="txtOverview" Width="125px" Text="Summarize current assignment, key achievements, and anticipated work plans over the next year.">
                                                        </telerik:RadToolTip>
                                                    </th>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        Strengths<br>
                                                        <asp:TextBox TextMode="MultiLine" ID='txtStrength' Style="width: 450px; height: 100px;
                                                            color: black" runat="server"> </asp:TextBox>
                                                        <telerik:RadToolTip ID="RadToolTip2" runat="server" ManualClose="true" ShowEvent="OnClick"
                                                            HideEvent="LeaveTargetAndToolTip" RelativeTo="Element" Position="MiddleRight"
                                                            ShowCallout="true" TargetControlID="txtStrength" Width="125px" Text="Discuss employee's strengths (e.g. interpersonal, work ethic, work output, openness, quality of work, etc)">
                                                        </telerik:RadToolTip>
                                                    </th>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        Improvement Areas<br>
                                                        <asp:TextBox TextMode="MultiLine" ID='txtImprv' Style="width: 450px; height: 100px;
                                                            color: black" runat="server"> </asp:TextBox>
                                                        <telerik:RadToolTip ID="RadToolTip3" runat="server" ManualClose="true" ShowEvent="OnClick"
                                                            HideEvent="LeaveTargetAndToolTip" RelativeTo="Element" Position="MiddleRight"
                                                            ShowCallout="true" TargetControlID="txtImprv" Width="125px" Text="Discuss areas where employee is working to improve performance, or areas where employee is learning new skills in preparation of a future or expanded role.">
                                                        </telerik:RadToolTip>
                                                        </div>
                                                    </th>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        Development Plan<br>
                                                        <asp:TextBox TextMode="MultiLine" ID='txtDevPlan' Style="width: 450px; height: 100px;
                                                            color: black" runat="server"> </asp:TextBox>
                                                        <telerik:RadToolTip ID="RadToolTip4" runat="server" ManualClose="true" ShowEvent="OnClick"
                                                            RelativeTo="Element" Position="MiddleRight" ShowCallout="true" TargetControlID="txtDevPlan"
                                                            HideEvent="LeaveTargetAndToolTip" Width="125px" Text="Summarize ideas related to the employee's long term development. Include ideas on next assignment, keeping in mind the Hess career scaffold concept especially in early career. Discussion on employee's aspiriations 3-5 years in the future is also welcome.">
                                                        </telerik:RadToolTip>
                                                    </th>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        Date Next Move:
                                                        <telerik:RadDatePicker ID="calDateEntered" runat="server">
                                                        </telerik:RadDatePicker>
                                                    </th>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        Location and Comments on Next Best Move<br>
                                                        <asp:TextBox TextMode="MultiLine" ID='txtLocComments' Style="width: 305px; height: 60px;
                                                            color: black" runat="server"></asp:TextBox>
                                                    </th>
                                                </tr>
                                                <tr>
                                                    <th>
                                                        Entered By: <asp:Literal ID="litEnteredBy" runat="server"></asp:Literal>
                                                       <!-- <telerik:RadComboBox ID="cboEntered" ItemsPerRequest="10" ShowMoreResultsBox="true"
                                                            EnableAutomaticLoadOnDemand="true" DataSourceID="EmpSqlDataSrc" DataTextField="Employee"
                                                            DataValueField="EmployeeId" EnableVirtualScrolling="true" IsCaseSensitive="false"
                                                            MarkFirstMatch="true"  EnableAjaxSkinRendering="true" runat="server">
                                                        </telerik:RadComboBox>
                                                        <asp:SqlDataSource ID="EmpSqlDataSrc" runat="server" ConnectionString="<%$ ConnectionStrings:PetroTechConnectionString %>"
                                                            SelectCommand="SELECT RTRIM(EmployeeId) As EmployeeId, [Employee],[NTID] FROM [Employees] ">
                                                        </asp:SqlDataSource> -->
                                                    </th>
                                                </tr>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlEdit" runat="server" Visible="false">
                                                <tr>
                                                    <td style="text-align: right">
                                                        <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="sp_button" />
                                                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="sp_button" />
                                                    </td>
                                                </tr>
                                            </asp:Panel>
                                        </table>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="ddlIDPYear" />
                                        <asp:AsyncPostBackTrigger ControlID="btnSave" />
                                        <asp:AsyncPostBackTrigger ControlID="btnCreate" />
                                        <asp:AsyncPostBackTrigger ControlID="btnCancel" />
                                    </Triggers>
                                </asp:UpdatePanel>


Below is the code where I make the panel visible using async postback. 
Protected Sub btnCreate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCreate.Click
        ClearIDPData()
        pnlYear.Visible = False
        pnlIDP.Visible = True
        litMsg.Text = "New IDP for Period - " & _currPeriod
        litMsg.Visible = True
        pnlCreate.Visible = False
        pnlEdit.Visible = True
        ViewState("Create") = "True"
        SetEditMode(True)

At this time, it doesn't render the skin. 
0
Pavlina
Telerik team
answered on 30 Sep 2011, 12:17 PM
Hello Vijaianand,

I tried to replicate the described issue but to no avail. I am attaching the test page for your reference. Please give it a try and let me know what is the difference in your case.
 
Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Calendar
Asked by
Vijaianand
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Vijaianand
Top achievements
Rank 1
Share this question
or