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

Radgrid with detail tables

5 Answers 1297 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 2
Bill asked on 15 Dec 2010, 05:30 PM
I would like to know what I need to put for the OnDetailTableDataBind if I have the following scenario:

1) Parent Table
    2) Child Table
        3) Child table

If I only have one child table, I know how to get that done. But if I have two child tables as described above, where do I place the OnDetailDatabind property. Presently, I only see where you can enter this property once on the RadGrid tag.

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Dec 2010, 05:45 AM
Hello William,

The following code snippet shows how to populate multiple DetailTable using 'OnDetailTableDataBind' event.

ASPX:
<telerik:RadGrid OnDetailTableDataBind="RadGrid1_DetailTableDataBind". . . . >
   <MasterTableView EditMode="InPlace" Name="MasterTable">
      <DetailTables>
          <telerik:GridTableView Name="DetailTable1" >
            <DetailTables>
               <telerik:GridTableView Name="DetailTable2" >
                  . . . . . .
</telerik:RadGrid>

C#:
protected void RadGrid1_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
    {
        switch (e.DetailTableView.Name)
        {
            case "DetailTable1":
                {
                    e.DetailTableView.DataSource = //populate DetailTable1
                    break;
                }
            case "DetailTable2":
                   {
                       e.DetailTableView.DataSource = //populate DetailTable2
                       break;
                }
        }
    }

Thanks,
Princy.
0
Bill
Top achievements
Rank 2
answered on 03 Jan 2011, 11:29 PM
Princy, everything works fine, thanks...

However, I can't get the caption to display on master or detail grids at all.

Master grid html:
<MasterTableView AutoGenerateColumns="False" DataKeyNames="PatientID" AllowFilteringByColumn="true" Caption="Patient Information">

Detail grid html:
<DetailTables>
                        <telerik:GridTableView DataKeyNames="PatientID" Name="PatientInsurance" Width="100%"
                            BackColor="#EFEFFB" AllowFilteringByColumn="false" AllowSorting="false" CommandItemDisplay="None" Caption="Patient Insurance" AutoGenerateColumns="false">

Do you know how I can resolve this?
0
Marin
Telerik team
answered on 04 Jan 2011, 11:09 AM
Hi William,

I tried to reproduce the issue but unfortunately without success, the caption is set correctly on my side. Can you please send a full code sample reproducing the issue so we can investigate it at our end?

Greetings,
Marin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Bill
Top achievements
Rank 2
answered on 04 Jan 2011, 05:42 PM
<td>
            <telerik:RadGrid ID="RadGridPatientInfo" runat="server" Width="100%" AllowSorting="True"
                Skin="Outlook" ShowStatusBar="true" GridLines="None" OnNeedDataSource="RadGridPatientInfo_NeedDataSource"
                AllowPaging="True" OnDetailTableDataBind="RadGridPatientInfo_DetailTableDataBind"
                PageSize="10" HeaderStyle-Font-Bold="true">
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="PatientID" AllowFilteringByColumn="true"
                    Caption="Patient Information">
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="PatientID" Name="PatientInsurance" Width="100%"
                            BackColor="#EFEFFB" AllowFilteringByColumn="false" AllowSorting="false" CommandItemDisplay="None"
                            Caption="Patient Insurance" AutoGenerateColumns="false">
                            <Columns>
                                <telerik:GridBoundColumn DataField="PatientInsuranceID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="PatientID" HeaderText="PatientID" UniqueName="PatientID"
                                    ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="InsuranceName" HeaderText="Primary Insurance Name"
                                    UniqueName="InsuranceName" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="PriEffectiveDate" DataFormatString="{0:d}"
                                    HeaderText="Primary Effective Date" UniqueName="PriEffectiveDate" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="priInsuredLname" HeaderText="Primary Insured Lname"
                                    ReadOnly="true" UniqueName="priInsuredLname" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priInsuredFname" HeaderText="Primary Insured Fname"
                                    UniqueName="priInsuredFname" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="priInsuredDob" DataFormatString="{0:d}" HeaderText="Primary Insured Dob"
                                    UniqueName="priInsuredDob" ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="priInsuredAddress1" HeaderText="Primary Insured Address1"
                                    ReadOnly="true" HeaderStyle-Font-Bold="true" UniqueName="priInsuredAddress1">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priInsuredAddress2" HeaderText="Primary Insured Address2"
                                    ReadOnly="true" HeaderStyle-Font-Bold="true" UniqueName="priInsuredAddress2">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priInsuredCity" HeaderText="Primary Insured City"
                                    ReadOnly="true" UniqueName="priInsuredCity" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priInsuredState" HeaderText="Primary Insured State"
                                    ReadOnly="true" UniqueName="priInsuredState" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priInsuredZip" HeaderText="Primary Insured Zip"
                                    ReadOnly="true" UniqueName="priInsuredZip" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priInsuredSSn" HeaderText="Primary Insured SSN"
                                    ReadOnly="true" UniqueName="priInsuredSSn" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priInsuredHomePhone" HeaderText="Primary Insured Home Phone"
                                    ReadOnly="true" UniqueName="priInsuredHomePhone" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priInsuredCellPhone" HeaderText="Primary Insured Cell Phone"
                                    ReadOnly="true" UniqueName="priInsuredCellPhone" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priPolicyNumber" HeaderText="Primary Policy Nbr"
                                    ReadOnly="true" UniqueName="priPolicyNumber" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priEmployerName" HeaderText="Primary Employer Name"
                                    ReadOnly="true" UniqueName="priEmployerName" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="priEmployerPhone" HeaderText="Primary Employer Phone"
                                    ReadOnly="true" UniqueName="priEmployerPhone" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                        <telerik:GridTableView DataKeyNames="PatientID" Name="VisitInfo" Width="100%" BackColor="#EFEFFB"
                            Caption="Patient Visit Information" AutoGenerateColumns="false" AllowFilteringByColumn="false"
                            AllowSorting="false" CommandItemDisplay="None">
                            <Columns>
                                <telerik:GridBoundColumn DataField="EDLogDetailID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="PatientID" HeaderText="PatientID" UniqueName="PatientID"
                                    ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="VisitInfoID" HeaderText="VisitInfoID" UniqueName="VisitInfoID"
                                    ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="DX1" HeaderText="DX1" UniqueName="DX1" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="DX2" HeaderText="DX2" UniqueName="DX2" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="DX3" HeaderText="DX3" ReadOnly="true" UniqueName="DX3"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="DX4" HeaderText="DX4" UniqueName="DX4" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="DX5" HeaderText="DX5" UniqueName="DX5" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="DX6" HeaderText="DX6" ReadOnly="true" HeaderStyle-Font-Bold="true"
                                    UniqueName="DX6">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="ArrivalTime" HeaderText="Arrival Time" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true" UniqueName="ArrivalTime">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="Treating_Provider_Name" HeaderText="Treating Provider"
                                    ReadOnly="true" UniqueName="Treating_Provider_Name" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Supervising_Provider_Name" HeaderText="Supervising Provider"
                                    ReadOnly="true" UniqueName="Supervising_Provider_Name" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="DrInTime" HeaderText="Dr In Time" ReadOnly="true"
                                    UniqueName="DrInTime" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridDateTimeColumn DataField="AccidentDate" DataFormatString="{0:d}" HeaderText="Accident Date"
                                    ReadOnly="true" UniqueName="AccidentDate" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridDateTimeColumn DataField="AdmittedDate" DataFormatString="{0:d}" HeaderText="Admitted Date"
                                    ReadOnly="true" UniqueName="AdmittedDate" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                            </Columns>
                        </telerik:GridTableView>
                        <telerik:GridTableView DataKeyNames="VisitInfoID" Name="TreatmentInfo" Width="100%"
                            BackColor="#EFEFFB" AllowFilteringByColumn="false" AllowSorting="false" CommandItemDisplay="None"
                            Caption="Patient Treatment Information" AutoGenerateColumns="false">
                            <Columns>
                                <telerik:GridBoundColumn DataField="EDLogDetailID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="PatientID" HeaderText="PatientID" UniqueName="PatientID"
                                    ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="VisitInfoID" HeaderText="VisitInfoID" UniqueName="VisitInfoID"
                                    ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="ChargeID" HeaderText="ChargeID" UniqueName="ChargeID"
                                    ReadOnly="true" HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="DX1" HeaderText="DX1" UniqueName="DX1" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="DX2" HeaderText="DX2" UniqueName="DX2" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="DX3" HeaderText="DX3" ReadOnly="true" UniqueName="DX3"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="DX4" HeaderText="DX4" UniqueName="DX4" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="DX5" HeaderText="DX5" UniqueName="DX5" ReadOnly="true"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="DX6" HeaderText="DX6" ReadOnly="true" HeaderStyle-Font-Bold="true"
                                    UniqueName="DX6">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="CPT" HeaderText="CPT" ReadOnly="true" UniqueName="CPT"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Mod1" HeaderText="Mod1" ReadOnly="true" UniqueName="Mod1"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Mod2" HeaderText="Mod2" ReadOnly="true" UniqueName="Mod2"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Mod3" HeaderText="Mod3" ReadOnly="true" UniqueName="Mod3"
                                    HeaderStyle-Font-Bold="true">
                                    <HeaderStyle Font-Bold="True" />
                                </telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                    <ExpandCollapseColumn Visible="True">
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="PatientID" Visible="true">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EDLogID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="FacilityID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EDLogDetailID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Edit Chart" UniqueName="EditChart" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-Font-Bold="true" AllowFiltering="false">
                            <ItemTemplate>
                                <asp:ImageButton ID="imgEdit" runat="server" ImageUrl="~/images/Icon_Edit.gif" ToolTip="Process Patient"
                                    CausesValidation="False" OnClick="Patient_Click" />
                            </ItemTemplate>
                            <HeaderStyle Font-Bold="True" />
                            <HeaderStyle Width="10px" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="DateOfService" DataFormatString="{0:d}" HeaderText="DOS"
                            ReadOnly="True" HeaderStyle-Font-Bold="true" SortExpression="DateOfService" UniqueName="DateOfService">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patLname" HeaderText="Patient Last Name" ReadOnly="True"
                            HeaderStyle-Font-Bold="true" SortExpression="patLname" UniqueName="patLname">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patFname" HeaderText="Patient First Name" ReadOnly="True"
                            HeaderStyle-Font-Bold="true" SortExpression="patFname" UniqueName="patFname">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="hospPatAcctno" HeaderText="Account #" UniqueName="hospPatAcctno"
                            HeaderStyle-Font-Bold="true" ReadOnly="True" SortExpression="hospPatAcctno">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="mrNumber" HeaderText="MRN" ReadOnly="True" SortExpression="mrNumber"
                            HeaderStyle-Font-Bold="true" UniqueName="mrNumber">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="FacilityName" HeaderText="Facility" ReadOnly="True"
                            HeaderStyle-Font-Bold="true" SortExpression="FacilityName" UniqueName="FacilityName">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="StatusDescription" HeaderText="Status" ReadOnly="True"
                            HeaderStyle-Font-Bold="true" SortExpression="StatusDescription" UniqueName="StatusDescription">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patAddr1" HeaderText="Patient Addr1" ReadOnly="True"
                            AllowFiltering="false" HeaderStyle-Font-Bold="true" UniqueName="patAddr1">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patAddr2" HeaderText="Patient Addr2" ReadOnly="True"
                            AllowFiltering="false" HeaderStyle-Font-Bold="true" UniqueName="patAddr2">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patCity" HeaderText="Patient City" ReadOnly="True"
                            HeaderStyle-Font-Bold="true" UniqueName="patCity" SortExpression="patCity">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patState" HeaderText="Patient State" ReadOnly="True"
                            HeaderStyle-Font-Bold="true" UniqueName="patState" SortExpression="patState">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patZipcode" HeaderText="Patient Zip" ReadOnly="True"
                            HeaderStyle-Font-Bold="true" UniqueName="patZipcode" SortExpression="patZipcode">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patHomephone" HeaderText="Patient Home Phone"
                            AllowFiltering="false" HeaderStyle-Font-Bold="true" ReadOnly="True" UniqueName="patHomephone">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patCellPhone" HeaderText="Patient Cell Phone"
                            AllowFiltering="false" HeaderStyle-Font-Bold="true" ReadOnly="True" UniqueName="patCellPhone">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="patSSN" HeaderText="Patient SSN" ReadOnly="True"
                            SortExpression="patSSN" HeaderStyle-Font-Bold="true" UniqueName="patSSN">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridDateTimeColumn DataField="patDob" DataFormatString="{0:d}" HeaderText="Patient DOB"
                            ReadOnly="True" HeaderStyle-Font-Bold="true" UniqueName="patDob">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridDateTimeColumn>
                        <telerik:GridDateTimeColumn DataField="AdmitDate" DataFormatString="{0:d}" HeaderText="Patient Admit Date"
                            ReadOnly="True" HeaderStyle-Font-Bold="true" SortExpression="AdmitDate" UniqueName="AdmitDate">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridDateTimeColumn>
                        <telerik:GridDateTimeColumn DataField="AdmitTime" HeaderText="Patient Admit Time"
                            AllowFiltering="false" AllowSorting="false" ReadOnly="True" HeaderStyle-Font-Bold="true"
                            UniqueName="AdmitTime">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridDateTimeColumn>
                        <telerik:GridDateTimeColumn DataField="DischargeDate" DataFormatString="{0:d}" HeaderText="Patient DischargeDate Date"
                            HeaderStyle-Font-Bold="true" ReadOnly="True" SortExpression="DischargeDate" UniqueName="DischargeDate">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridDateTimeColumn>
                        <telerik:GridDateTimeColumn DataField="DischargeTime" HeaderText="Patient Discharge Time"
                            AllowFiltering="false" AllowSorting="false" HeaderStyle-Font-Bold="true" ReadOnly="True"
                            UniqueName="DischargeTime">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridDateTimeColumn>
                        <telerik:GridBoundColumn DataField="guarLname" HeaderText="Guarantor Last Name" SortExpression="guarLname"
                            HeaderStyle-Font-Bold="true" ReadOnly="True" UniqueName="guarLname">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarFname" HeaderText="Guarantor First Name"
                            HeaderStyle-Font-Bold="true" SortExpression="guarFname" ReadOnly="True" UniqueName="guarFname">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarAddr1" HeaderText="Guarantor Addr1" AllowFiltering="false"
                            HeaderStyle-Font-Bold="true" ReadOnly="True" UniqueName="guarAddr1">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarAddr2" HeaderText="Guarantor Addr2" AllowFiltering="false"
                            HeaderStyle-Font-Bold="true" ReadOnly="True" UniqueName="guarAddr2">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarCity" HeaderText="Guarantor City" HeaderStyle-Font-Bold="true"
                            SortExpression="guarCity" ReadOnly="True" UniqueName="guarCity">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarState" HeaderText="Guarantor State" HeaderStyle-Font-Bold="true"
                            SortExpression="guarState" ReadOnly="True" UniqueName="guarState">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarZipcode" HeaderText="Guarantor Zip" ReadOnly="True"
                            HeaderStyle-Font-Bold="true" SortExpression="guarZipcode" UniqueName="guarZipcode">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarHomePhone" HeaderText="Guarantor Home Phone"
                            AllowFiltering="false" HeaderStyle-Font-Bold="true" ReadOnly="True" UniqueName="guarHomePhone">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarCellPhone" HeaderText="Guarantor Cell Phone"
                            AllowFiltering="false" HeaderStyle-Font-Bold="true" ReadOnly="True" UniqueName="guarCellPhone">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarEmployer" HeaderText="Guarantor Employer"
                            HeaderStyle-Font-Bold="true" SortExpression="guarEmployer" ReadOnly="True" UniqueName="guarEmployer">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="guarSSN" HeaderText="Guarantor SSN" ReadOnly="True"
                            SortExpression="guarSSN" HeaderStyle-Font-Bold="true" UniqueName="guarSSN">
                            <HeaderStyle Font-Bold="True" />
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <HeaderStyle Font-Bold="True"></HeaderStyle>
            </telerik:RadGrid>
        </td>
0
Marin
Telerik team
answered on 05 Jan 2011, 04:18 PM
Hello William,

I tested your code by unfortunately I was not able to reproduce the issue. I am attaching the code that works on my side, the only change is that I tested with one column only and bound the grid to sample data for simplicity. Have a look at it and let me know how it works on your end and how to modify the code in order to reproduce the issue.
Additionally, you make sure you use the latest version of the controls.

All the best,
Marin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Bill
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Bill
Top achievements
Rank 2
Marin
Telerik team
Share this question
or