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

Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ContentPlaceHolder1_upReviewAR'. If it is being updated dynamically then it must be inside another UpdatePanel.

5 Answers 294 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
S
Top achievements
Rank 1
S asked on 23 Aug 2008, 01:05 PM

With the below ASPX  page i am getting Sys.InvalidOperationException exception on paging. Please share me if anyone has solution for this. This problem is occuring in almost all the pages where i have used telerik GRid.

<

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">

</telerik:RadStyleSheetManager>

<telerik:RadScriptManager ID="ScriptManager1" runat="server">

</telerik:RadScriptManager>

<script src="../Scripts/ProviderEnrollment.js" language="javascript"></script>

&nbsp;&nbsp;&nbsp;

<div id="divARReview">

<asp:Panel ID="pnlPE" runat="server" Width="100%" Height="30px" CssClass="collapsePanelHeader">

<div style="padding: 5px; cursor: pointer; vertical-align: middle;">

<div class="clsPanelHeading" style="float: left;">

<%

=Resources.PageTitles.pageProviderEnrollment%>

</div>

<div style="float: right; vertical-align: middle;">

<asp:Image ID="Image2" runat="server" ImageUrl="~/images/expand_blue.jpg" />

</div>

</div>

</asp:Panel>

<asp:Panel ID="pnlProviderEnrollment" runat="server" Width="100%" Height="0" CssClass="collapsePanel">

<asp:UpdatePanel ID="upProviderEnrollment" runat="server">

<contenttemplate>

<TABLE cellSpacing="5" cellPadding="2" width="100%" align="left" border="0">

<TBODY>

<TR><TD colspan="2" align=left></TD></TR>

<TR>

<TD class="clsLabel" align="left" colspan="2" ><b>Select Carrier/ Provider</b></TD>

</TR>

<TR>

<TD align="left" colspan="2">

<telerik:RadGrid OnSelectedIndexChanged="grdPE_SelectedIndexChanged" id="grdPE" runat="server" Skin="Office2007" DataSourceID="objDataSrcPE" GridLines="None" AllowSorting="True" AllowPaging="True" PageSize="5">

<SelectedItemStyle BackColor="#BDD6F5"></SelectedItemStyle>

<HeaderStyle BackColor="#E3EAF1"></HeaderStyle>

<ClientSettings>

<Selecting AllowRowSelect="True"></Selecting>

<ClientEvents OnRowCreated="RowCreatedCarrier" OnRowCreating="RowCreatingCarrier" OnRowDblClick="RowSelectedCarrier"></ClientEvents>

</ClientSettings>

<MasterTableView AutoGenerateColumns="False" DataSourceID="objDataSrcPE">

<Columns>

<telerik:GridBoundColumn DataField="Carrier Name/Code/Plan" UniqueName="CarrierCodePlan" HeaderText="Carrier Name/Code/Plan"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="P/A" UniqueName="P/A" HeaderText="P/A"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Provider Name" UniqueName="ProviderName" HeaderText="Provider Name"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="New" UniqueName="New" HeaderText="New"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Open" UniqueName="Open" HeaderText="Open"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="CarrierPlansRecordUID" UniqueName="CarrierPlansRecordUID" HeaderText="CarrierPlansRecordUID" Display="False"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ProviderUID" UniqueName="ProviderUID" HeaderText="ProviderUID" Display="False"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ProviderType" UniqueName="ProviderType" HeaderText="ProviderType" Display="False"></telerik:GridBoundColumn>

</Columns>

<ExpandCollapseColumn>

<HeaderStyle Width="20px"></HeaderStyle>

</ExpandCollapseColumn>

<RowIndicatorColumn>

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

</MasterTableView>

</telerik:RadGrid>

<asp:ObjectDataSource id="objDataSrcPE" runat="server" TypeName="Kam.Web.ObjectDS.ProviderEnrollmentDS" SelectMethod="GetCarrierByGroupUID">

<SelectParameters>

<asp:ControlParameter PropertyName="Value" Type="Int64" DefaultValue="" Name="plGroupId" ControlID="hdnGroup"></asp:ControlParameter>

</SelectParameters>

</asp:ObjectDataSource>

<asp:HiddenField ID="hdnGroup" runat="server"></asp:HiddenField>

<asp:HiddenField ID="hdnProviderType" runat="server"></asp:HiddenField>

<asp:HiddenField ID="hdnCarrierPlansRecordUID" runat="server"></asp:HiddenField>

<asp:HiddenField ID="hdnProviderUID" runat="server"></asp:HiddenField>

</TD>

</TR>

<tr style="display:none">

<td><asp:Button ID="btnCarriernRowSelected" runat="server" /> </td>

</tr>

<TR>

<TD class="clsLabel" align="left" width="47%"><b>Cases</b></TD>

<TD class="clsLabel" align="left"><b>Actions</b></TD>

</TR>

<tr class="clsLabel">

<td align="left" valign="top" colspan="2">

<table cellspacing="2" cellpadding="0" border="0" bordercolor="red" >

<tr>

<td width="30%" valign="top" align="left">

<table >

<tr>

<td valign="top" align="left">

<telerik:RadGrid id="grdCases" runat="server" Skin="Office2007" DataSourceID="objDataSrcCases" GridLines="None" AllowSorting="True" AllowPaging="True" PageSize="5">

<SelectedItemStyle BackColor="#BDD6F5"></SelectedItemStyle>

<HeaderStyle BackColor="#E3EAF1"></HeaderStyle>

<ClientSettings>

<Selecting AllowRowSelect="True"></Selecting>

<ClientEvents OnRowCreated="RowCreatedCases" OnRowCreating="RowCreatingCases" OnRowDblClick="RowSelectedCases"></ClientEvents>

</ClientSettings>

<MasterTableView AutoGenerateColumns="False" DataSourceID="objDataSrcCases">

<Columns>

<telerik:GridBoundColumn DataField="Case#" UniqueName="Case#" HeaderText="Case#"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Status" UniqueName="Status" HeaderText="Status"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Created By" UniqueName="Name" HeaderText="Crated By"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Created" UniqueName="New" HeaderText="Created"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FollowupUID" UniqueName="FollowupUID" HeaderText="FollowupUID"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ActionUID" UniqueName="ActionUID" HeaderText="ActionUID" Display="False"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="PatientRecordUID" UniqueName="PatientRecordUID" HeaderText="PatientRecordUID" Display="False"></telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Comments" UniqueName="Comments" HeaderText="Comments" Display="False"></telerik:GridBoundColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

<asp:ObjectDataSource id="objDataSrcCases" runat="server" TypeName="Kam.Web.ObjectDS.ProviderEnrollmentDS" SelectMethod="GetCases">

<SelectParameters>

<asp:ControlParameter PropertyName="Value" Type="Int64" DefaultValue="" Name="plGroupId" ControlID="hdnGroup"></asp:ControlParameter>

<asp:ControlParameter PropertyName="Value" Type="Int64" DefaultValue="" Name="plCarrierPlansUID" ControlID="hdnCarrierPlansRecordUID"></asp:ControlParameter>

<asp:ControlParameter PropertyName="Value" Type="String" DefaultValue="" Name="psProviderType" ControlID="hdnProviderType"></asp:ControlParameter>

<asp:ControlParameter PropertyName="Value" Type="Int64" DefaultValue="" Name="plProviderUID" ControlID="hdnProviderUID"></asp:ControlParameter>

</SelectParameters>

</asp:ObjectDataSource>

<asp:HiddenField ID="hdnActionUID" runat="server" />

<asp:HiddenField ID="hdnChargeHeaderUID" runat="server" />

<asp:HiddenField ID="hdnApplyActionToAllFollowups" runat="server" />

<asp:HiddenField ID="hdnComments" runat="server" />

<asp:HiddenField ID="hdnActionMode" runat="server" />

<asp:HiddenField ID="hdnFollowUpIds" runat="server" />

</td>

</tr>

<tr>

<td>

<textarea id="txaComm" readonly="readonly" style="background-color:#C0C0C0" rows="3" cols="40"></textarea>

</td>

</tr>

</table>

</td>

<td width="12%" valign="top" align="left">

<img id="btnCaseHistory" src="../Images/btn_casehistory.gif" />

</td>

<td width="58%" valign="top" align="left">

<table cellpadding="0" width="100%" cellspacing="2" border="0" bordercolor="blue">

<tr>

<td width="10%">

<img id="btnPending" onclick="javascript:SetAction('44')" src="../Images/btn_Pending.gif" />

</td>

<td rowspan="3" width="90%">

<div id="divNotes" style="display:none">

<table cellpadding="0" cellspacing="3" border="0" bordercolor="green">

<tr>

<td colspan="2">

<textarea id="txaCommentsText" name="txaCommentsText" runat="server" rows="3" cols="47"></textarea>

</td>

</tr>

<tr>

<td align="left" width="35%"><asp:CheckBox ID="chkRefilClaim" runat="server" Text="Refile Claim" ></asp:CheckBox></td>

<td align="left" width="65%">

<asp:ImageButton ID="btnOk" runat="server" OnClientClick="return ConfirmForAllActions();" ImageUrl="~/Images/btn_ok.gif"></asp:ImageButton>

<img id="btnCancel" src="../Images/btn_cancel.gif" onclick="javascript:OnCancel()" />

</td>

</tr>

</table>

</div>

</td>

</tr>

<tr>

<td>

<img id="btnCloseItem" onclick="javascript:SetAction('1')" src="../Images/btn_CloseItem.gif" />

</td>

<td>

</td>

</tr>

<tr>

<td>

<img id="btnReturnToAR" onclick="javascript:SetAction('45')" src="../Images/btn_ReturnToAR_Rep.gif" />

</td>

<td align="left" class="clsLabel">

</td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

</TBODY>

</TABLE>

</contenttemplate>

</asp:UpdatePanel>

</asp:Panel>

</div>

<AjaxTools:CollapsiblePanelExtender ID="cpe1" runat="Server" SuppressPostBack="true"

CollapsedImage="~/images/expand_blue.jpg" ExpandedImage="~/images/collapse_blue.jpg"

ImageControlID="Image1" CollapsedText="(Show Details...)" ExpandedText="(Hide Details...)"

TextLabelID="Label1" Collapsed="false" CollapseControlID="pnlPE" ExpandControlID="pnlPE"

TargetControlID="pnlProviderEnrollment">

</AjaxTools:CollapsiblePanelExtender>

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

<script type="text/javascript">

function GetGrid()

{

var grid = $find("<%=grdCases.ClientID %>");

var hdnFollowUpIds = document.getElementById('ctl00_ContentPlaceHolder1_hdnFollowUpIds')

var hdnChargeHeaderIds = document.getElementById('ctl00_ContentPlaceHolder1_hdnChargeHeaderUID')

var MasterTable = grid.get_masterTableView();

var rows = MasterTable.get_dataItems()

var followUpIds;

var chargeHeaderUID = "";

var allFollowUpIds = "";

var allChargeHeaderIds = "";

var eachRow;

for (var row = 0; row < rows.length; row++)

{

eachRow = MasterTable.get_dataItems()[row]

followUpIds = MasterTable.getCellByColumnUniqueName(eachRow,

"FollowupUID");

chargeHeaderUID = MasterTable.getCellByColumnUniqueName(eachRow,

"Case#");

if (allFollowUpIds == "")

{

allFollowUpIds = followUpIds.innerHTML

}

else

{

allFollowUpIds = allFollowUpIds +

"," + followUpIds.innerHTML

}

if (allChargeHeaderIds == "")

{

allChargeHeaderIds = chargeHeaderUID.innerHTML

}

else

{

allChargeHeaderIds = allChargeHeaderIds +

"," + chargeHeaderUID.innerHTML

}

}

if (allFollowUpIds != "")

{

hdnFollowUpIds.value = allFollowUpIds

hdnChargeHeaderIds.value = allChargeHeaderIds

}

}

</script>

</telerik:RadCodeBlock>

</

asp:Content>

5 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 25 Aug 2008, 06:51 AM
Hello,

Since this is a content of a master page, do you have any other AJAX controls on the master page? Is there an AJAX Manager there? If so, please add RadAjaxManagerProxy in the content page, replace the UpdatePanel with an ASP:Panel and add Panel-> Panel AJAX setting to the proxy. See this page for details concerning the AJAX in MasterPage scenario..

All the best,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
S
Top achievements
Rank 1
answered on 25 Aug 2008, 08:31 AM
Hi,
      Thanks for your reply; But the content which i posted is not of master page but it the content of content page.  All i am trying to do is

1. Added script manager
2. Added Update panel
3. Inside Update Panel i am using Rad grid.
4. WHen ever i do paging in rad grid; i get this javascript error. Please help  me on this.

0
Konstantin Petkov
Telerik team
answered on 25 Aug 2008, 10:20 AM
Hello,

I suspect some AJAX mess-up that's why I asked whether there are other AJAX controls except the UpdatePanel around the Grid. Please elaborate more on your scenario to be able to assist you further.

Best wishes,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
S
Top achievements
Rank 1
answered on 25 Aug 2008, 11:18 AM

Hi i am placing the content page itself please have a look. These are the 2 cases in which i am getting 2 different script errors.

1.
    <Panel 1  >    ---> Header Panel
    </Panel 1>
     <Panel 2 >    ---> Content Panel 
        <UpdatePanel>
             <ContentTemplate>
                    <Rad grid1>      
                    <Rad grid2>      
             </ContentTemplate>
        </UpdatePanel>
     </Panel 1>
     <CollapsiblePanelExtender  CollapseControlID="pnl1" ExpandControlID="pn1"      
     TargetControlID
="pn2"></CollapsiblePanelExtender> 

WHen i do paging on Grid 1. I am getting the javascript error.

"Sys.InvalidOperationException: Two Components with the same id cannot be added to the application:"

2.

 <UpdatePanel>
 <ContentTemplate>


    <Panel 1  >    ---> Header Panel
    </Panel 1>
     <Panel 2 >    ---> Content Panel 
                    <Rad grid1>      
                    <Rad grid2>      
     </Panel 1>

     <CollapsiblePanelExtender  CollapseControlID="pnl1" ExpandControlID="pn1"      
     TargetControlID
="pn2"></CollapsiblePanelExtender> 

 </ContentTemplate>
  </UpdatePanel>


WHen i do paging on Grid 1. I am getting the javascript error.

Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ContentPlaceHolder1_grid1. If it is being updated dynamically then it must be inside another UpdatePanel.


---------------------------------------------------------------------------------------------------------------------
My Aspx content page

<
asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<asp:ScriptManager ID="scriptmanager1" runat="server"></asp:ScriptManager>

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">

</telerik:RadStyleSheetManager>

<script src="../Scripts/ProviderEnrollment.js" language="javascript"></script>

&nbsp;&nbsp;&nbsp;

<asp:UpdatePanel ID="upNl" runat="server" UpdateMode="Conditional">

<ContentTemplate>

<div id="divARReview">

<asp:Panel ID="pnlPE" runat="server" Width="100%" Height="30px" CssClass="collapsePanelHeader">

<div style="padding: 5px; cursor: pointer; vertical-align: middle;">

<div class="clsPanelHeading" style="float: left;">

<%

=Resources.PageTitles.pageProviderEnrollment%>

</div>

<div style="float: right; vertical-align: middle;">

<asp:Image ID="Image2" runat="server" ImageUrl="~/images/expand_blue.jpg" />

</div>

</div>

</asp:Panel>

<asp:Panel ID="pnlProviderEnrollment" runat="server" Width="100%" Height="0" CssClass="collapsePanel">

<table cellspacing="5" cellpadding="2" width="100%" align="left" border="0">

<tbody>

<tr>

<td colspan="2" align="left">

</td>

</tr>

<tr>

<td class="clsLabel" align="left" colspan="2">

<b>Select Carrier/ Provider</b></td>

</tr>

<tr>

<td align="left" colspan="2">

<telerik:RadGrid OnSelectedIndexChanged="grdPE_SelectedIndexChanged" ID="grdPE" runat="server"

Skin="Office2007" DataSourceID="objDataSrcPE" GridLines="None" AllowSorting="True"

AllowPaging="True" PageSize="5">

<SelectedItemStyle BackColor="#BDD6F5"></SelectedItemStyle>

<HeaderStyle BackColor="#E3EAF1"></HeaderStyle>

<ClientSettings>

<Selecting AllowRowSelect="True"></Selecting>

<ClientEvents OnRowCreated="RowCreatedCarrier" OnRowCreating="RowCreatingCarrier"

OnRowDblClick="RowSelectedCarrier"></ClientEvents>

</ClientSettings>

<MasterTableView AutoGenerateColumns="False" DataSourceID="objDataSrcPE">

<Columns>

<telerik:GridBoundColumn DataField="Carrier Name/Code/Plan" UniqueName="CarrierCodePlan"

HeaderText="Carrier Name/Code/Plan">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="P/A" UniqueName="P/A" HeaderText="P/A">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Provider Name" UniqueName="ProviderName" HeaderText="Provider Name">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="New" UniqueName="New" HeaderText="New">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Open" UniqueName="Open" HeaderText="Open">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="CarrierPlansRecordUID" UniqueName="CarrierPlansRecordUID"

HeaderText="CarrierPlansRecordUID" Display="False">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ProviderUID" UniqueName="ProviderUID" HeaderText="ProviderUID"

Display="False">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ProviderType" UniqueName="ProviderType" HeaderText="ProviderType"

Display="False">

</telerik:GridBoundColumn>

</Columns>

<ExpandCollapseColumn>

<HeaderStyle Width="20px"></HeaderStyle>

</ExpandCollapseColumn>

<RowIndicatorColumn>

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

</MasterTableView>

</telerik:RadGrid>

<asp:ObjectDataSource ID="objDataSrcPE" runat="server" TypeName="Kam.Web.ObjectDS.ProviderEnrollmentDS"

SelectMethod="GetCarrierByGroupUID">

<SelectParameters>

<asp:ControlParameter PropertyName="Value" Type="Int64" DefaultValue="" Name="plGroupId"

ControlID="hdnGroup"></asp:ControlParameter>

</SelectParameters>

</asp:ObjectDataSource>

<asp:HiddenField ID="hdnGroup" runat="server"></asp:HiddenField>

<asp:HiddenField ID="hdnProviderType" runat="server"></asp:HiddenField>

<asp:HiddenField ID="hdnCarrierPlansRecordUID" runat="server"></asp:HiddenField>

<asp:HiddenField ID="hdnProviderUID" runat="server"></asp:HiddenField>

</td>

</tr>

<tr style="display: none">

<td>

<asp:Button ID="btnCarriernRowSelected" runat="server" />

</td>

</tr>

<tr>

<td class="clsLabel" align="left" width="47%">

<b>Cases</b></td>

<td class="clsLabel" align="left">

<b>Actions</b></td>

</tr>

<tr class="clsLabel">

<td align="left" valign="top" colspan="2">

<table cellspacing="2" cellpadding="0" border="0" bordercolor="red">

<tr>

<td width="30%" valign="top" align="left">

<table>

<tr>

<td valign="top" align="left">

<telerik:RadGrid ID="grdCases" runat="server" Skin="Office2007" DataSourceID="objDataSrcCases"

GridLines="None" AllowSorting="True" AllowPaging="True" PageSize="5">

<SelectedItemStyle BackColor="#BDD6F5"></SelectedItemStyle>

<HeaderStyle BackColor="#E3EAF1"></HeaderStyle>

<ClientSettings>

<Selecting AllowRowSelect="True"></Selecting>

<ClientEvents OnRowCreated="RowCreatedCases" OnRowCreating="RowCreatingCases" OnRowDblClick="RowSelectedCases">

</ClientEvents>

</ClientSettings>

<MasterTableView AutoGenerateColumns="False" DataSourceID="objDataSrcCases">

<Columns>

<telerik:GridBoundColumn DataField="Case#" UniqueName="Case#" HeaderText="Case#">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Status" UniqueName="Status" HeaderText="Status">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Created By" UniqueName="Name" HeaderText="Crated By">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Created" UniqueName="New" HeaderText="Created">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FollowupUID" UniqueName="FollowupUID" HeaderText="FollowupUID">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ActionUID" UniqueName="ActionUID" HeaderText="ActionUID"

Display="False">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="PatientRecordUID" UniqueName="PatientRecordUID"

HeaderText="PatientRecordUID" Display="False">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Comments" UniqueName="Comments" HeaderText="Comments"

Display="False">

</telerik:GridBoundColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

<asp:ObjectDataSource ID="objDataSrcCases" runat="server" TypeName="Kam.Web.ObjectDS.ProviderEnrollmentDS"

SelectMethod="GetCases">

<SelectParameters>

<asp:ControlParameter PropertyName="Value" Type="Int64" DefaultValue="" Name="plGroupId"

ControlID="hdnGroup"></asp:ControlParameter>

<asp:ControlParameter PropertyName="Value" Type="Int64" DefaultValue="" Name="plCarrierPlansUID"

ControlID="hdnCarrierPlansRecordUID"></asp:ControlParameter>

<asp:ControlParameter PropertyName="Value" Type="String" DefaultValue="" Name="psProviderType"

ControlID="hdnProviderType"></asp:ControlParameter>

<asp:ControlParameter PropertyName="Value" Type="Int64" DefaultValue="" Name="plProviderUID"

ControlID="hdnProviderUID"></asp:ControlParameter>

</SelectParameters>

</asp:ObjectDataSource>

<asp:HiddenField ID="hdnActionUID" runat="server" />

<asp:HiddenField ID="hdnChargeHeaderUID" runat="server" />

<asp:HiddenField ID="hdnApplyActionToAllFollowups" runat="server" />

<asp:HiddenField ID="hdnComments" runat="server" />

<asp:HiddenField ID="hdnActionMode" runat="server" />

<asp:HiddenField ID="hdnFollowUpIds" runat="server" />

</td>

</tr>

<tr>

<td>

<textarea id="txaComm" readonly="readonly" style="background-color: #C0C0C0" rows="3"

cols="40"></textarea>

</td>

</tr>

</table>

</td>

<td width="12%" valign="top" align="left">

<img id="btnCaseHistory" src="../Images/btn_casehistory.gif" />

</td>

<td width="58%" valign="top" align="left">

<table cellpadding="0" width="100%" cellspacing="2" border="0" bordercolor="blue">

<tr>

<td width="10%">

<img id="btnPending" onclick="javascript:SetAction('44')" src="../Images/btn_Pending.gif" />

</td>

<td rowspan="3" width="90%">

<div id="divNotes" style="display: none">

<table cellpadding="0" cellspacing="3" border="0" bordercolor="green">

<tr>

<td colspan="2">

<textarea id="txaCommentsText" name="txaCommentsText" runat="server" rows="3" cols="47"></textarea>

</td>

</tr>

<tr>

<td align="left" width="35%">

<asp:CheckBox ID="chkRefilClaim" runat="server" Text="Refile Claim"></asp:CheckBox></td>

<td align="left" width="65%">

<asp:ImageButton ID="btnOk" runat="server" OnClientClick="return ConfirmForAllActions();"

ImageUrl="~/Images/btn_ok.gif"></asp:ImageButton>

<img id="btnCancel" src="../Images/btn_cancel.gif" onclick="javascript:OnCancel()" />

</td>

</tr>

</table>

</div>

</td>

</tr>

<tr>

<td>

<img id="btnCloseItem" onclick="javascript:SetAction('1')" src="../Images/btn_CloseItem.gif" />

</td>

<td>

</td>

</tr>

<tr>

<td>

<img id="btnReturnToAR" onclick="javascript:SetAction('45')" src="../Images/btn_ReturnToAR_Rep.gif" />

</td>

<td align="left" class="clsLabel">

</td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

</tbody>

</table>

</asp:Panel>

<AjaxTools:CollapsiblePanelExtender ID="cpe1" runat="Server" SuppressPostBack="true"

CollapsedImage="~/images/expand_blue.jpg" ExpandedImage="~/images/collapse_blue.jpg"

ImageControlID="Image1" CollapsedText="(Show Details...)" ExpandedText="(Hide Details...)"

TextLabelID="Label1" Collapsed="false" CollapseControlID="pnlPE" ExpandControlID="pnlPE"

TargetControlID="pnlProviderEnrollment">

</AjaxTools:CollapsiblePanelExtender>

</div>

</ContentTemplate>

</asp:UpdatePanel>

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

<script type="text/javascript">

function GetGrid()

{

var grid = $find("<%=grdCases.ClientID %>");

var hdnFollowUpIds = document.getElementById('ctl00_ContentPlaceHolder1_hdnFollowUpIds')

var hdnChargeHeaderIds = document.getElementById('ctl00_ContentPlaceHolder1_hdnChargeHeaderUID')

var MasterTable = grid.get_masterTableView();

var rows = MasterTable.get_dataItems()

var followUpIds;

var chargeHeaderUID = "";

var allFollowUpIds = "";

var allChargeHeaderIds = "";

var eachRow;

for (var row = 0; row < rows.length; row++)

{

eachRow = MasterTable.get_dataItems()[row]

followUpIds = MasterTable.getCellByColumnUniqueName(eachRow,

"FollowupUID");

chargeHeaderUID = MasterTable.getCellByColumnUniqueName(eachRow,

"Case#");

if (allFollowUpIds == "")

{

allFollowUpIds = followUpIds.innerHTML

}

else

{

allFollowUpIds = allFollowUpIds +

"," + followUpIds.innerHTML

}

if (allChargeHeaderIds == "")

{

allChargeHeaderIds = chargeHeaderUID.innerHTML

}

else

{

allChargeHeaderIds = allChargeHeaderIds +

"," + chargeHeaderUID.innerHTML

}

}

if (allFollowUpIds != "")

{

hdnFollowUpIds.value = allFollowUpIds

hdnChargeHeaderIds.value = allChargeHeaderIds

}

}

</script>

</telerik:RadCodeBlock>

</

asp:Content>

0
Konstantin Petkov
Telerik team
answered on 26 Aug 2008, 11:19 AM
Hello,

While this is the content page, I asked whether you have AJAX involved in the MasterPage as well. We will also need to know which version of RadGrid for ASP.NET AJAX you work with and which is the ASP.NET Framework version you get the error with. It will be best if you send us a runnable sample application, which replicates the error. You can start a formal support ticket from your Client.NET account where attachments are allowed.

Kind regards,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
S
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
S
Top achievements
Rank 1
Share this question
or