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

RadControlsWebApp control contains code blocks error with ajax panel

4 Answers 89 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Bramble
Top achievements
Rank 1
Bramble asked on 06 Jun 2012, 07:32 PM
I am using this code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadComboBox1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel" />
            <telerik:AjaxUpdatedControl ControlID="Label1" />
        </UpdatedControls>
    </telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server">
    
    <telerik:RadComboBox ID="RadComboBox1" runat="server"
        onselectedindexchanged="RadComboBox1_SelectedIndexChanged" AutoPostBack="True">
        <Items>
            <telerik:RadComboBoxItem runat="server" Text="item1"
                Value="RadComboBoxItem1" />
            <telerik:RadComboBoxItem runat="server" Text="item2"
                Value="RadComboBoxItem2" />
            <telerik:RadComboBoxItem runat="server" Text="item3"
                Value="RadComboBoxItem3" />
            <telerik:RadComboBoxItem runat="server" Text="item4"
                Value="RadComboBoxItem4" />
            <telerik:RadComboBoxItem runat="server" Text="item5"
                Value="RadComboBoxItem5" />
            <telerik:RadComboBoxItem runat="server" Text="item6"
                Value="RadComboBoxItem6" />
        </Items>
    </telerik:RadComboBox>
 
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
 
</telerik:RadAjaxPanel>

inside a .ascx file and I keep getting the 'The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>) ' error.  Any suggestion on how to fix this?


4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 11 Jun 2012, 11:44 AM
Hi Bramble,
 
Could you please try to wrap all the client script on the page in RadCodeBlock control like shown here:
http://www.telerik.com/help/aspnet-ajax/ajax-radscriptblock-radcodeblock.html
Also please note that it is not a supported scenario to add RadAjaxPanel into RadAjaxManager settings or mixing both controls for updating the same part of the page, Therefore I would suggest you to replace the RadAjaxPanel with regular asp Panel and add this Panel to the RadAjaxManager settings.

All the best,
Maria Ilieva
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
Sudheer
Top achievements
Rank 1
answered on 13 Jun 2014, 07:56 AM
Hi , I am still facing the problem after using the Telerik Code Blocks. I have attached my code file. Please help to check and help to fix the issue. 
0
Sudheer
Top achievements
Rank 1
answered on 13 Jun 2014, 08:49 AM
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SPReply.ascx.vb" Inherits="UserControls_SPReply" %>
<%@ Register Src="SubSubOutcome.ascx" TagName="SubSubOutcome" TagPrefix="SO" %>
<%@ Register Assembly="AICBusinessObjects" Namespace="AICBusinessObjects.AIC.WebUI"
    TagPrefix="aic" %>
<%@ Register Src="AdmissionDetails.ascx" TagName="AdmissionDetails" TagPrefix="aic" %>
<%@ Register Src="AdmissionDetails_Hospice.ascx" TagName="AdmissionDetails_Hospice"
    TagPrefix="aic" %>
<%@ Register Src="Nursing.ascx" TagName="uclNursing" TagPrefix="aic" %>
<style type="text/css">
    .style7
    {
        width: 102px;
    }
</style>
<telerik:RadCodeBlock runat="server" ID="radCodeBlock1">
    <script type="text/javascript">

        function openAdmittedDateEditor(guid, fieldName) {

            var oWnd = $find("<%=rwinDateEditor.ClientID%>");

            oWnd.setUrl("frmDateEditor.aspx?guid=" + guid + "&field=" + fieldName);
            oWnd.show();

            var y = 100; //(screen.height / 2) + ce.offsetParent.offsetTop + ce.offsetTop; //(screen.height / 2) - (oWnd.get_height()/2);
            var x = (screen.width / 2) - (oWnd.get_width() / 2);

            oWnd.MoveTo(x, y);

        }

        function ShowComLogPage(elogGUID) {
            window.parent.scrollTo(0, 0);
            var oWnd = $find("<%=RadWindowCommunicationOutcomeLog.ClientID%>");

            oWnd.setUrl('frmCommunicationLogSP.aspx?ELOGGUID=' + elogGUID);
            oWnd.show();
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.None);
            oWnd.maximize();
        }

        function OnClientClose(radWindow) {

            var args = radWindow.argument;

            if (args) {
                if (args.canceled) return;

                if (args.success = true) {
                    //alert("Reload SPReply");
                    document.getElementById("h_guid").value = "reload";
                    __doPostBack("h_guid", "reload");
                }
                else if (args.success = false) {
                    alert(args.message);
                }
            }

        }

        function ShowOutComePreview(guid) {
            window.parent.scrollTo(0, 0);
            var oWnd = $find("<%=RadWindowCommunicationOutcomeLog.ClientID%>");

            oWnd.setUrl("frmOutComePrintPreview.aspx?svc_guid=" + guid, "rwinElogView");
            oWnd.show();

            //var oWnd = radopen("frmElogPrintPreview.aspx?svc_guid=" + guid, "rwinElogView");
            oWnd.maximize();
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close);

        }

        function ShowCommLogPreview(guid, SPGUID) {
            window.parent.scrollTo(0, 0);
            var oWnd = $find("<%=RadWindowCommunicationOutcomeLog.ClientID%>");

            oWnd.setUrl("frmSpComLogPrintPreview.aspx?svc_guid=" + guid + "&sp_guid=" + SPGUID, "rwinElogView");
            oWnd.show();

            //var oWnd = radopen("frmElogPrintPreview.aspx?svc_guid=" + guid, "rwinElogView");
            oWnd.maximize();
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close);

        }
        function ShowPrintPreview(gridID) {
            $('#' + gridID + ' td:nth-child(2),#' + gridID + ' th:nth-child(2)').hide();
            $('#' + gridID + ' td:nth-child(11),#' + gridID + ' th:nth-child(11)').hide();
            print_this(gridID);
            $('#' + gridID + ' td:nth-child(2),#' + gridID + ' th:nth-child(2)').show();
            $('#' + gridID + ' td:nth-child(11),#' + gridID + ' th:nth-child(11)').show();
        }

        function print_this(container) {

            var html = document.getElementById(container).outerHTML;

            var popup_win = "toolbar=yes,location=no,directories=yes,menubar=yes,scrollbars=yes,width=1100,height=600,left=100,top=100";
            var print_form = window.open('', '', popup_win);
            print_form.document.open();
            css = '<link href="../CSS/StyleSheet3.CSS" rel="stylesheet" type="text/css" />'
                            + '<link href="../Skins/AIC/Grid.AIC.css" rel="stylesheet" type="text/css" />'
                            + '<link href="../Skins/AIC/Window.AIC.css" rel="stylesheet" type="text/css" />';

            var script = '<script type="text/javascript" src="../Js/jquery-1.4.2.min.js">' + '<//script>'.replace('//', '/');

            var header = getHeaderHtml();

            //                    header = header.replace('openwindow()', 'return false;');
            //                    header = header.replace('openwindow()', 'return false;');
            //header = header.replace('<IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px"', '<img style="display:none;"');

            //                    var jQuary = '$(document).ready(function() {'
            //                                 + '$("#PatientHeader1_imgPatientInfo").css("display","none");;'
            //                                 + '});';
            //                    jQuary = '<script>' + jQuary + '<//script>'.replace('//', '/');
            var jQuary = '';
            html = header + html + getFooterHtml()
            html = '<html><head><title>Print Preview</title>' + css + script + '</head><body>' + jQuary + html + '</body></html>';

            print_form.document.write(html);
            print_form.document.close();
            print_form.print();
            return false;

        }

        function getHeaderHtml() {

            var imgaic = "<img src='../Images/logo-aic.png' alt='AIC' style='width:120px;height:120px'/>"
            var imgcel = ""//<img src='../Images/logo-cel.png' alt='CEL' style='width:120px;height:120px'/>"
            var html = '<table width="100%" cellpadding="5px" cellspacing="2px"><tr><td>' + imgaic + '</td><td>' + imgcel + '</td><td>' + window.parent.getHeaderInfo().replace('IMG style="', 'IMG style="display:none;') + '</td></tr></table>'

            return html;
        }

        function getFooterHtml() {
            var loc = '<% = GetCurrentSPName()%>';
            var name = '<% =GetLoginUserName()%>';
            name = name.replace("`", "scod3");
            name = name.replace("'", "scod3");
            var html = '<table cellpadding="5px" cellspacing="2px" border="0">'
                + '<tr><td>Printed By</td><td>:</td><td>' + name + '</td></tr>'
                + '<tr><td>Printed On</td><td>:</td><td><% =DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss tt")%></td></tr>'
                + '<tr><td>Printed Institution</td><td>:</td><td>' + loc + '</td></tr>'
                + '</table>';

            return html;
        }
    
    </script>
</telerik:RadCodeBlock>
<telerik:RadWindow ID="RadWindowCommunicationOutcomeLog" runat="server" Modal="true"
    Behaviors="None" Skin="AIC" EnableEmbeddedSkins="false" VisibleStatusbar="False"
    OnClientClose="OnClientClose">
</telerik:RadWindow>
<telerik:RadWindow ID="rwinDateEditor" runat="server" Modal="true" Behaviors="Close"
    Skin="AIC" EnableEmbeddedSkins="false" VisibleStatusbar="False" OnClientClose="OnClientClose"
    Width="320px" Height="320px" DestroyOnClose="true">
</telerik:RadWindow>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
       <%--<AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="ddlServicetype">
                        <UpdatedControls>
                       
                         <telerik:AjaxUpdatedControl ControlID="pnlHomeNursingService" />
                          
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>--%>
    <%--<AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="HomeNursingService">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlHomeNursingService" />
                <telerik:AjaxUpdatedControl ControlID="HomeNursingService" />
                <telerik:AjaxUpdatedControl ControlID="OthersHomeNursingServiceValue" />
                <telerik:AjaxUpdatedControl ControlID="lblIfOthers2" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>--%>
</telerik:RadAjaxManager>

<telerik:RadCodeBlock runat="server" ID="radCodeBlockSPReply">
<a name="<% = CStr(Me.ServiceTypeGUID) %>" />
<br />
<br />
<div style="border: dotted 1px black; width: 100%; padding: 2px 2px 2px 2px">
    Choose Outcome
    <table width="100%" style="border: 1px solid #BFBFBF; height: 30px; font-weight: bold;
        background-color: #E2E55A">
        <tr>
            <td align="left" style="padding: 5px 5px 5px 5px; font-weight: bold">
                Reply for
                <%  If Me.AgencyCode = "" Then%>
                <% =String.Format("{0}", Me.ServiceTypeName)%>
                <%Else%>
                <%  '=String.Format("{0} - ({1})  |  {2}", Me.ServiceTypeName, Me.AgencyCode, Me.GetOfficerInfo())%>
                <%  =String.Format("{0} | {1}", Me.ServiceTypeName, Me.GetOfficerInfo())%>
                <%End If%>
            </td>
            <td align="right">
                <a href="javaScript:ShowPrintPreview('<%=RadGridELog.ClientID%>');" style="color: #FFFFFF">
                    <asp:Image ID="imgPrint" runat="server" ImageUrl="~/Images/print.png" AlternateText="Print"
                        ToolTip="Print" Style="margin-right: 10px" />
                </a>
            </td>
            <td align="right" style="width: 30px">
                <img alt="" style="margin-right: 5px" src="../Images/minus.gif" onclick="javascript:DivOpenClose(div_<% = Me.ServiceTypeGUID.ToString() %>,this);" />
            </td>
        </tr>
    </table>
</div>
<div id="div_<% = Me.ServiceTypeGUID.ToString() %>" style="border: dotted 1px black;
    border-top: none; width: 100%; padding: 2px 2px 2px 2px">
    <table cellpadding="1" cellspacing="1" width="100%">
        <tr>
            <td style="padding: 20px 30px 20px 30px">
                <table width="100%">
                    <% If ((Not GenericMethods.IsTempClose(Me.ServiceTypeGUID)) And Not Me.CaseClosed And (GenericMethods.IsAIC() Or Not Me.IsReadOnly)) Then%>
                    <tr>
                        <td>
                            <div>
                                <b style="color: Red">* Note: If patient requires additional services, you may select
                                    "Request for Additional Service" under SP Outcome. This option is not available
                                    after the referral is closed.</b>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <fieldset>
                                <legend>Status</legend><a name="<% = CStr(Me.ServiceTypeGUID) %>" />
                                <table style="margin: 7px 7px 7px 7px; width: 100%">
                                    <tr>
                                        <td align="center" class="style7">
                                            <nobr>Outcome :</nobr>
                                        </td>
                                        <td style="width: 35%">
                                            <aic:DropDownList ID="ddloutcome" runat="server" AutoPostBack="true" Skin="Sunset"
                                                Width="99%" CausesValidation="False">
                                            </aic:DropDownList>
                                        </td>
                                        <td align="right" style="width: 200px">
                                            <nobr>
                                            <asp:Label ID="lblSelectedOutcomeInput" runat="server" Visible="False" 
                                                Text="Related data of selected outcome :" />&nbsp;
                                            </nobr>
                                        </td>
                                        <td>
                                            <aic:DropDownList ID="ddlSP" runat="server" Skin="Sunset" Visible="false" Width="80%">
                                            </aic:DropDownList>
                                            <%--<telerik:RadDateTimePicker ID="dtpSelectedOutcomeDate" runat="server" Visible="False"
                                                Culture="English (United Kingdom)" EnableTyping="False">
                                                <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                </Calendar>
                                                <TimeView CellSpacing="-1" Culture="English (United Kingdom)" GridLines="Both" Interval="00:30:00"
                                                    TimeFormat="hh:mm tt">
                                                </TimeView>
                                                <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                <DateInput DateFormat="dd/MM/yyyy hh:mm tt" ShowButton="False" Enabled="false" DisabledStyle-BorderColor="Gray"
                                                    ReadOnly="True">
                                                    <DisabledStyle BorderColor="Gray"></DisabledStyle>
                                                </DateInput>
                                            </telerik:RadDateTimePicker>--%>
                                            <telerik:RadDateTimePicker runat="server" ID="dtpSelectedOutcomeDate" EnableTyping="False"
                                                Visible="false" Culture="en-GB" CssClass="text11Normal">
                                                <TimeView CellSpacing="-1" Culture="en-GB" Interval="00:30:00" TimeFormat="hh:mm tt">
                                                </TimeView>
                                                <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False">
                                                </Calendar>
                                                <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" ReadOnly="True"
                                                    LabelWidth="40%">
                                                    <EmptyMessageStyle Resize="None"></EmptyMessageStyle>
                                                    <ReadOnlyStyle Resize="None"></ReadOnlyStyle>
                                                    <FocusedStyle Resize="None"></FocusedStyle>
                                                    <DisabledStyle Resize="None"></DisabledStyle>
                                                    <InvalidStyle Resize="None"></InvalidStyle>
                                                    <HoveredStyle Resize="None"></HoveredStyle>
                                                    <EnabledStyle Resize="None"></EnabledStyle>
                                                </DateInput>
                                                <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                            </telerik:RadDateTimePicker>
                                            <%-- <telerik:RadDatePicker ID="dtpSelectedOutcomeDate" Visible="false" runat="server"
                                                Skin="Sunset" Enabled="true">
                                                <Calendar ID="calendar4" runat="server" UseRowHeadersAsSelectors="false" UseColumnHeadersAsSelectors="false"
                                                    ViewSelectorText="x" Skin="Sunset">
                                                </Calendar>
                                                <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                            </telerik:RadDatePicker>--%>
                                            <a name="<% = CStr(Me.ServiceTypeGUID) %>" />
                                            <asp:CustomValidator ID="cvalRelatedDataOfSelectedOutcome" runat="server" Text="***"
                                                ErrorMessage="Required" Display="Dynamic"></asp:CustomValidator>
                                        </td>
                                    </tr>
                                    <%-- Start --- Added by Sudheer for SP Service Enhancement addedndum 21--%>
                                    <tr id="trServiceType" runat="server" visible="false">
                                        <td align="center" class="style7">
                                            <asp:Label Style="margin-top: 10px; margin-bottom: 5px" ID="lblServiceType" runat="server"
                                                Text="Service Type :" Visible="True"></asp:Label>
                                        </td>
                                        <td style="width: 35%">
                                            <aic:DropDownList ID="ddlServiceType" runat="server" AutoPostBack="true" Skin="Sunset"
                                                Width="99%" CausesValidation="false">
                                            </aic:DropDownList>
                                            <asp:CustomValidator ID="cvalddlServiceType" runat="server" Text="***" ErrorMessage="Required"
                                                Display="Dynamic"></asp:CustomValidator>
                                        </td>
                                        <td align="right" style="width: 200px">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <%-- End --- Added by Sudheer for SP Service Enhancement addedndum 21--%>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td colspan="2">
                                            <asp:Panel BorderWidth="1" runat="server" ID="pnlHomeNursingService" BorderStyle="Solid"
                                                BorderColor="Black" Width="99%" Visible="false">
                                                <table>
                                                    <tr>
                                                        <td colspan="4">
                                                            <asp:Label ID="lblHomeNursingService" runat="server" Text="Home Nursing Service"
                                                                Font-Bold="true"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="4">
                                                            <asp:CheckBoxList ID="HomeNursingService" runat="server" Skin="Sunset" AutoPostBack="True"
                                                                Enabled="False" OnSelectedIndexChanged="HomeNursingService_SelectedIndexChanged"
                                                                RepeatColumns="3" RepeatDirection="Horizontal">
                                                            </asp:CheckBoxList>
                                                            <asp:CustomValidator ID="cvalHomeNursingService" runat="server" Text="***" ErrorMessage="Required"
                                                                Display="Dynamic"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td align="right" class="text11Bold">
                                                            <asp:Label ID="lblIfOthers2" Visible="False" runat="server" Text="please specify"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <telerik:RadTextBox ID="OthersHomeNursingServiceValue" Visible="False" runat="server"
                                                                Width="200px" Skin="Sunset">
                                                            </telerik:RadTextBox>
                                                        </td>
                                                        <%--<td>
                                                            <asp:RequiredFieldValidator ID="reqValHomeNursingServiceOthers" ValidationGroup="MR"
                                                                runat="server" SetFocusOnError="true" ControlToValidate="OthersHomeNursingServiceValue"
                                                                Text="***" ErrorMessage="Home Nursing Service(Application/Home Care)" EnableClientScript="False"
                                                                Enabled="false">
                                                            </asp:RequiredFieldValidator>
                                                        </td>--%>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            <asp:Panel BorderWidth="1" runat="server" ID="pnlCentreBasedNursingService" BorderStyle="Solid"
                                                BorderColor="Black" Width="99%" Visible="false">
                                                <table>
                                                    <tr>
                                                        <td colspan="4">
                                                            <asp:Label ID="lblCentreBasedNursingService" runat="server" Text="Centre-Based Nursing Service"
                                                                Font-Bold="true"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="4">
                                                            <asp:CheckBoxList ID="CentreBasedNursingService" runat="server" Skin="Sunset" AutoPostBack="True"
                                                                Enabled="False" OnSelectedIndexChanged="CentreBasedNursingService_SelectedIndexChanged"
                                                                RepeatColumns="3" RepeatDirection="Horizontal">
                                                            </asp:CheckBoxList>
                                                            <asp:CustomValidator ID="cvalCBService" runat="server" Text="***" ErrorMessage="Required"
                                                                Display="Dynamic"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td align="right" class="text11Bold">
                                                            <asp:Label ID="lblIfOthers3" Visible="False" runat="server" Text="please specify"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <telerik:RadTextBox ID="OthersCentreBasedNursingValue" Visible="False" runat="server"
                                                                Width="200px" Skin="Sunset">
                                                            </telerik:RadTextBox>
                                                        </td>
                                                        <td>
                                                            <asp:RequiredFieldValidator ID="reqValCentreBasedNursingOthers" ValidationGroup="MR2"
                                                                runat="server" SetFocusOnError="true" ControlToValidate="OthersCentreBasedNursingValue"
                                                                Text="***" ErrorMessage="Centre-Based Nursing Service" EnableClientScript="False"
                                                                Enabled="false">
                                                            </asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <table border="0" runat="server" width="100%" cellpadding="0" cellspacing="0" id="tblNursing">
                                                <tr>
                                                    <td align="left" colspan="3">
                                                        <aic:uclNursing ID="uclNursing" runat="server" ServiceAdd="AddNursing" FormType="StructureForm"
                                                            RecordType="Addendum" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td colspan="2">
                                            <asp:Panel BorderWidth="1" runat="server" ID="pnlHomeMedicalService" BorderStyle="Solid"
                                                BorderColor="Black" Width="99%" Visible="false">
                                                <table>
                                                    <tr>
                                                        <td colspan="4">
                                                            <asp:Label ID="lblHomeMedicalService" runat="server" Text="Home Medical Service"
                                                                Font-Bold="true"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="4">
                                                            <asp:CheckBoxList ID="HomeMedicalService" runat="server" Skin="Sunset" AutoPostBack="True"
                                                                Enabled="False" OnSelectedIndexChanged="HomeMedicalService_SelectedIndexChanged"
                                                                RepeatColumns="3" RepeatDirection="Horizontal">
                                                            </asp:CheckBoxList>
                                                            <asp:CustomValidator ID="cvalHomeMedicalService" runat="server" Text="***" ErrorMessage="Required"
                                                                Display="Dynamic"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                        <td class="text11Bold">
                                                            <asp:Label ID="lblIfOthers1" Visible="false" runat="server" Text="please specify"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <telerik:RadTextBox ID="OthersHomeMedicalServiceValue" Visible="false" runat="server"
                                                                Width="200px" Skin="Sunset">
                                                            </telerik:RadTextBox>
                                                        </td>
                                                        <td>
                                                            <%-- <asp:RequiredFieldValidator ID="reqValHomeMedicalServiceOthers" ValidationGroup="MR2"
                                                                runat="server" SetFocusOnError="true" ControlToValidate="OthersHomeMedicalServiceValue"
                                                                Text="***" ErrorMessage="Other Home Medical Service(Application/Home Care)" EnableClientScript="False"
                                                                Enabled="false">
                                                            </asp:RequiredFieldValidator>--%>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" class="style7">
                                            <asp:Label Style="margin-top: 10px; margin-bottom: 5px" ID="lblFacility" runat="server"
                                                Text="Facility :" Visible="False"></asp:Label>
                                        </td>
                                        <td style="width: 35%">
                                            <aic:DropDownList ID="ddlFacility" Style="margin-top: 10px; margin-bottom: 5px" runat="server"
                                                AutoPostBack="true" Skin="Sunset" Width="99%" CausesValidation="False" Visible="false">
                                            </aic:DropDownList>
                                            <asp:CustomValidator ID="cvalddlFacility" runat="server" Text="***" ErrorMessage="Required"
                                                Display="Dynamic"></asp:CustomValidator>
                                            <%-- </a>--%>
                                        </td>
                                        <td align="right" style="width: 200px">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                                <%-- </a>--%>
                            </fieldset>
                            <br />
                        </td>
                    </tr>
                    <tr runat="server" id="trReasonsHolder" visible="false">
                        <td>
                            <fieldset>
                                <legend>Reasons</legend>
                                <div>
                                    <asp:CheckBoxList ID="clsSuboutcome" valign="top" runat="server" RepeatColumns="2"
                                        Style="margin: 10px 10px 10px 10px;" AutoPostBack="True">
                                    </asp:CheckBoxList>
                                </div>
                                <div>
                                    <SO:SubSubOutcome ID="uclso" runat="server" />
                                </div>
                                <asp:CustomValidator ID="cvalSuboutcome" runat="server" Text="***" ErrorMessage="Reason Required."
                                    Display="Dynamic"></asp:CustomValidator>
                            </fieldset>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <fieldset>
                                <legend>
                                    <asp:Label ID="lblAddnServiceMand" Text="* " runat="server" Visible="false"></asp:Label>
                                    Remarks
                                    <asp:Label ID="lblAddnService" Text="(Justification for the additional service)"
                                        runat="server" Visible="false"></asp:Label></legend>
                                <asp:TextBox Style="border: dotted 1px #EEEEEE; margin: 5px 5px 5px 5px" ID="txtRemark"
                                    runat="server" Height="100px" Width="99%" TextMode="MultiLine" />
                                <asp:CustomValidator ID="cvaltxtRemark" runat="server" Text="***" ErrorMessage="Required"
                                    Display="Dynamic"></asp:CustomValidator>
                            </fieldset>
                        </td>
                    </tr>
                    <tr runat="server" id="trAdmDetails" visible="false">
                        <td>
                            <fieldset>
                                <legend>Admission Details<a name="<% = CStr(Me.ServiceTypeGUID) %>0" /><asp:CustomValidator
                                    ID="cvalAdmissionDetails" runat="server" Text="***" ErrorMessage="Admission Details Section"
                                    Display="Dynamic"></asp:CustomValidator></a></legend>
                                <asp:PlaceHolder ID="phAdmDetails" runat="server"></asp:PlaceHolder>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:LinkButton ID="lnkRFI" runat="server"> Click here to request more information </asp:LinkButton>
                        </td>
                    </tr>
                    <%  End If%>
                    <tr id="trDischargeInfo" runat="server" visible="true">
                        <td>
                            <fieldset>
                                <legend>Discharge Info<a name="<% = CStr(Me.ServiceTypeGUID) %>" /> </a></legend>
                                <div style="padding: 10px 17px 5px 10px; margin-bottom: 10px;">
                                    <table width="100%">
                                        <tr>
                                            <td style="width: 110px">
                                                Type
                                            </td>
                                            <td align="center" style="width: 6px">
                                                :
                                            </td>
                                            <td style="width: 450px">
                                                <aic:DropDownList ID="ddlDischargeType" runat="server" Skin="Sunset" Width="300px"
                                                    AutoPostBack="True">
                                                    <asp:ListItem Value="-">[Please Select]</asp:ListItem>
                                                    <asp:ListItem Value="Death">Patient Death</asp:ListItem>
                                                    <asp:ListItem Value="Home">Home</asp:ListItem>
                                                    <asp:ListItem Value="Hospital">Hospital</asp:ListItem>
                                                    <asp:ListItem Value="VWONursingHome">VWO Nursing Home</asp:ListItem>
                                                </aic:DropDownList>
                                            </td>
                                            <td style="width: 110px" align="left">
                                                <nobr>
                                                    Discharge Date
                                                </nobr>
                                            </td>
                                            <td style="width: 6px">
                                                :
                                            </td>
                                            <td>
                                                <a name="<% = CStr(Me.ServiceTypeGUID) %>" />
                                                <telerik:RadDateTimePicker ID="dtpDischargeDate" runat="server" Visible="true" EnableTyping="false"
                                                    Culture="English (United Kingdom)">
                                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" />
                                                    <TimeView CellSpacing="-1" Culture="English (United Kingdom)" GridLines="Both" Interval="00:30:00"
                                                        TimeFormat="hh:mm tt" />
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    <DateInput DateFormat="dd/MM/yyyy hh:mm tt" ShowButton="False" ReadOnly="True">
                                                    </DateInput>
                                                </telerik:RadDateTimePicker>
                                                <asp:RequiredFieldValidator ID="reqDischargeDate" ValidationGroup='<% = CStr(Me.ServiceTypeGUID) %>'
                                                    runat="server" Text="***" ControlToValidate="dtpDischargeDate" ErrorMessage="Required : Discharge Date"
                                                    EnableClientScript="true" Display="Dynamic" />
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%" style="margin-top: 9px; margin-bottom: 9px" runat="server" id="tblHospitalInfo"
                                        visible="false">
                                        <tr>
                                            <td style="width: 110px">
                                                <nobr>Hospital Type</nobr>
                                            </td>
                                            <td align="center" style="width: 6px">
                                                :
                                            </td>
                                            <td style="width: 450px">
                                                <aic:DropDownList ID="ddlHospitalType" runat="server" Skin="Sunset" Width="300px"
                                                    AutoPostBack="True">
                                                </aic:DropDownList>
                                            </td>
                                            <td style="width: 110px; text-align: left; margin-right: 1px;">
                                                Hospital
                                            </td>
                                            <td style="width: 6px">
                                                :
                                            </td>
                                            <td>
                                                <aic:DropDownList ID="ddlHospital" runat="server" Skin="Sunset" Width="300px">
                                                </aic:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%" style="margin-top: 9px;">
                                        <tr>
                                            <td>
                                                <a name="<% = CStr(Me.ServiceTypeGUID) %>" />
                                                <input type="submit" runat="server" id="btnUpdateDischargeDate" value="Update Discharge Info"
                                                    onclick="return ConfirmAction(this,'Please make sure the information you provide is correct. Do you want to proceed?',true);"
                                                    class="buttonClass" style="width: 140px!important; height: 24px" causesvalidation="True"
                                                    validationgroup='<% = CStr(Me.ServiceTypeGUID) %>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblMessage" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="padding-top: 15px;">
                                                <asp:TextBox ID="txtDischargeRemarks" runat="server" TextMode="MultiLine" Height="140px"
                                                    Width="99%" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 10px 2px 2px 2px;">
                            <fieldset runat="server" id="fsOfficerInfo">
                                <legend>Officer in Charge & Coverage Officer in Charge</legend>
                                <div style="padding: 10px 7px 5px 5px;">
                                    <telerik:RadGrid ID="RadGridCoverageOfficer" runat="server" EnableEmbeddedSkins="False"
                                        Skin="AIC" Width="100%" AutoGenerateColumns="False" GridLines="None">
                                        <HeaderContextMenu EnableEmbeddedSkins="False">
                                        </HeaderContextMenu>
                                        <MasterTableView ClientDataKeyNames="ReferralGUID,ServiceTypeGUID" EditMode="InPlace"
                                            DataKeyNames="UserGUID">
                                            <RowIndicatorColumn>
                                                <HeaderStyle Width="20px"></HeaderStyle>
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn>
                                                <HeaderStyle Width="20px"></HeaderStyle>
                                            </ExpandCollapseColumn>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="Name" HeaderText="Name">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Designation" HeaderText="Designation" UniqueName="Designation">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Email" HeaderText="Email">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ContactOfficePhone" HeaderText="Phone">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="UserGUID" Display="False" HeaderText="UserGUID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="OfficerType" Display="True" HeaderText="Type">
                                                </telerik:GridBoundColumn>
                                            </Columns>
                                            <EditFormSettings>
                                                <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif"
                                                    CancelImageUrl="Cancel.gif">
                                                </EditColumn>
                                            </EditFormSettings>
                                        </MasterTableView>
                                        <FilterMenu EnableEmbeddedSkins="False">
                                        </FilterMenu>
                                    </telerik:RadGrid>
                                </div>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <a href="javaScript:ShowPrintPreview('<%=RadGridELog.ClientID%>');">Print Preview</a>&nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="javascript:ShowOutComePreview('<% =Me.ServiceTypeGUID.ToString() %>');"
                                title="Show elog in full frame.">Alternative View</a> &nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="javascript:ShowCommLogPreview('<% =Me.ServiceTypeGUID.ToString() %>','<% =Me.CurrentSPGUID.ToString() %>');"
                                title="Show Internal Comms Log in full frame.">Internal Comms Logs</a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <% = GetLastOutcomeOfBranch()%>
                        </td>
                    </tr>
                    <tr runat="server" id="trGridHolder">
                        <td style="padding: 10px 2px 2px 2px;">
                            <telerik:RadGrid ID="RadGridELog" runat="server" EnableEmbeddedSkins="False" Skin="AIC"
                                Width="100%" AutoGenerateColumns="False" GridLines="None" OnItemDataBound="RadGridELog_ItemDataBound">
                                <HeaderContextMenu EnableEmbeddedSkins="False">
                                </HeaderContextMenu>
                                <MasterTableView ClientDataKeyNames="GUID,ReferralGUID" EditMode="InPlace" DataKeyNames="GUID">
                                    <RowIndicatorColumn>
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn>
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="ActionBy" HeaderText="Action By" ReadOnly="True">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ReferralSource" HeaderText="Referral Source"
                                            ReadOnly="True" UniqueName="ReferralSourceGUID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ELogDate" HeaderText="ELog Date" ReadOnly="True"
                                            DataFormatString="{0:dd/MM/yyyy hh:mm:ss tt}">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ServiceType" HeaderText="Service Type" UniqueName="ServiceTypeGUID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ServiceProvider" HeaderText="Assigned SP" UniqueName="ServiceProviderGUID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Outcome" HeaderText="Outcome" UniqueName="OutcomeGUID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="SubOutcome" HeaderText="Sub-outcome">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="InfoOn" HeaderText="Info On">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="IsTempClosed" HeaderText="Temp Closed" ReadOnly="True">
                                            <ItemStyle HorizontalAlign="Center" Width="35" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ApplicationStatus" HeaderText="App Status" Display="False">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn HeaderText="Date" UniqueName="InputDate">
                                            <ItemTemplate>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="gridcol" />
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn HeaderText="Remarks" UniqueName="Remarks">
                                            <ItemTemplate>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn HeaderText="Action" UniqueName="Action">
                                            <ItemTemplate>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn DataField="GUID" HeaderText="App Status" UniqueName="GUID"
                                            Display="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ServiceType" HeaderText="App Status" UniqueName="ServiceType"
                                            Display="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="ServiceProviderGUID" HeaderText="ServiceProviderGUID"
                                            UniqueName="ServiceProviderGUID" Display="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="FacilityDescription" HeaderText="Facility" UniqueName="FacilityDescription"
                                            Display="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="CategoryDescription" HeaderText="Category" UniqueName="CategoryDescription"
                                            Display="true">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                    <EditFormSettings>
                                        <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif"
                                            CancelImageUrl="Cancel.gif">
                                        </EditColumn>
                                    </EditFormSettings>
                                </MasterTableView>
                                <FilterMenu EnableEmbeddedSkins="False">
                                </FilterMenu>
                            </telerik:RadGrid>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
</telerik:RadCodeBlock>
0
Maria Ilieva
Telerik team
answered on 18 Jun 2014, 07:57 AM
Hi Sudheer,

Could you please ensure that you are wrapping all code blocks into RadCodeBlock control including code blocks in the UserControls registered on the page if any?
Also in case any themes are used in  the application try removing them and verify if this makes difference.
I would also suggests you to remove the runat="server" property form the head tag of your page.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Ajax
Asked by
Bramble
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Sudheer
Top achievements
Rank 1
Share this question
or