Having issue loading the control...

6 posts, 0 answers
  1. Vijaianand
    Vijaianand avatar
    82 posts
    Member since:
    Jul 2012

    Posted 23 Sep 2011 Link to this post

    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.
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 26 Sep 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vijaianand
    Vijaianand avatar
    82 posts
    Member since:
    Jul 2012

    Posted 26 Sep 2011 Link to this post

    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. 
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 26 Sep 2011 Link to this post

    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
  6. Vijaianand
    Vijaianand avatar
    82 posts
    Member since:
    Jul 2012

    Posted 26 Sep 2011 Link to this post

    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. 
  7. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 30 Sep 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017