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

Merging the Telerik Grid with Template columns

0 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
laila
Top achievements
Rank 1
laila asked on 20 Dec 2008, 11:41 AM
Hi,

  I m having a Telerik Grid(telerik.aspnetajax.radgrid.2008.Q2). I m having Templete Columns . I want to merge the Grid when two  rows contaings the same value in the first call record.
eg this is my aspx page code. Please give me the solution for merging witn  template columns.

THanks in Advanc


                        <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="Both" AutoGenerateColumns="False"
                            Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" Width="100%" EnableEmbeddedSkins="False" ShowStatusBar="false" OnItemDataBound="RadGrid1_ItemDataBound"
                           
                            Height="510px" TabIndex="0">
                            <MasterTableView Width="100%" ShowFooter="false">
                                <NoRecordsTemplate>
                                    <asp:Label ID="lblMesg" runat="server" Text="No relevant information exists">
                                    </asp:Label>
                                </NoRecordsTemplate>
                                <Columns>
                                    <telerik:GridTemplateColumn Display="true" UniqueName="TemplateColumn"
                                        HeaderText="Select"  >
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkSelect" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                 
                                    <telerik:GridTemplateColumn Display="false" UniqueName="TemplateColumn"
                                        >
                                        <ItemTemplate>
                                            <asp:TextBox runat="server" ID="txtBftId" Text='<%#DataBinder.Eval(Container.DataItem,"BFT_ID") %>'
                                                SkinID="LoginText"></asp:TextBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn Display="true" UniqueName="TemplateColumn"
                                        HeaderText="Services">
                                        <ItemTemplate>
                                            <asp:TextBox runat="server" ID="txtServices" Text='<%#DataBinder.Eval(Container.DataItem,"SERVICES") %>'
                                                SkinID="LoginText"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvServices" runat="server" ControlToValidate="txtServices"
                                                ErrorMessage="Please Enter Service name">*</asp:RequiredFieldValidator>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn1">
                                        <HeaderTemplate>
                                            <table id="tblStandBenefit" cellspacing="0" cellpadding="0" border="0"
                                                align="left" width="100%">
                                                <tr width="100%">
                                                    <td colspan="2" width="100%" align="center">
                                                        Standard Benefit
                                                    </td>
                                                </tr>
                                                <tr width="100%" align="center">
                                                    <td width="50%" align="center">
                                                        HMO
                                                    </td>
                                                    <td width="50%" align="center">
                                                        PPO
                                                    </td>
                                                </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table id="tblStandBenefitval" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr width="100%">
                                                    <td width="50%" align="center">
                                                        <asp:CheckBox ID="chkHMOStdBft" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                                    <td width="50%" align="center">
                                                        <asp:CheckBox ID="chkPPOStdBft" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn1"
                                       >
                                        <HeaderTemplate>
                                            <table id="tblBenefitRider" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr width="100%" align="center">
                                                    <td colspan="2" width="100%">
                                                        Benefit Rider
                                                    </td>
                                                </tr>
                                                <tr width="100%" align="center">
                                                    <td width="50%" align="center">
                                                        HMO
                                                    </td>
                                                    <td width="50%" align="center">
                                                        PPO
                                                    </td>
                                                </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table id="tblBenefitRiderVal" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr width="100%">
                                                    <td width="50%" align="center">
                                                        <asp:CheckBox ID="chkHMOBR" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                                    <td width="50%" align="center">
                                                        <asp:CheckBox ID="chkPPOBR" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn1"
                                        >
                                        <HeaderTemplate>
                                            <table id="tblDiscountService" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr align="center" width="100%">
                                                    <td colspan="2" width="100%">
                                                        Discount Service
                                                    </td>
                                                </tr>
                                                <tr width="100%" align="center">
                                                    <td width="50%" align="center">
                                                        HMO
                                                    </td>
                                                    <td width="50%" align="center">
                                                        PPO
                                                    </td>
                                                </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table id="tblDiscountServiceVal" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr width="100%" align="center">
                                                    <td width="50%" align="center">
                                                        <asp:CheckBox ID="chkDscHMO" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                                    <td width="50%" align="center">
                                                        <asp:CheckBox ID="chkDscPPO" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn1"
                                       >
                                        <HeaderTemplate>
                                            <table id="tblSubcontractedOut" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr width="100%" align="center">
                                                    <td colspan="2" width="100%" align="center">
                                                        Sub-Contracted Out
                                                    </td>
                                                </tr>
                                                <tr width="100%" align="left">
                                                    <td width="50%" align="center">
                                                        HMO
                                                    </td>
                                                    <td width="50%" align="left">
                                                        PPO
                                                    </td>
                                                </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table id="tblSubcontractedOutVal" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr width="100%" align="center">
                                                    <td width="50%%" align="center">
                                                        <asp:CheckBox ID="chkSubconHMO" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                                    <td width="50%" align="center">
                                                        <asp:CheckBox ID="chkSubconPPO" runat="server" AutoPostBack="true" CssClass="Data_List" /></td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn UniqueName="TemplateColumn1"
                                       >
                                        <HeaderTemplate>
                                            <table id="tblNameOfProv" cellspacing="0" cellpadding="0" border="0" class="GridHeader_WFM"
                                                width="100%">
                                                <tr width="100%">
                                                    <td colspan="2" width="100%" align="center">
                                                        Name of Provider
                                                    </td>
                                                </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table id="tblNameOfProvVal" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr width="100%" align="center">
                                                    <td colspan="2" width="100%" align="center">
                                                        <asp:TextBox runat="server" ID="txtNameofProv" Text='<%#DataBinder.Eval(Container.DataItem,"SUB_CONTRACTED_PROV") %>'
                                                            SkinID="LoginText" MaxLength="254"></asp:TextBox>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                                <ExpandCollapseColumn
                                   >
                                    <HeaderStyle Width="20px" />
                                </ExpandCollapseColumn>
                                <RowIndicatorColumn >
                                    <%--<HeaderStyle Width="20px" />--%>
                                </RowIndicatorColumn>
                                <PagerStyle
                                    />
                                <EditFormSettings>
                                    <EditColumn 
                                       >
                                    </EditColumn>
                                </EditFormSettings>
                                <CommandItemSettings   />
                
                            </MasterTableView>
                            <FilterMenu EnableTheming="True" Skin="Office2007" EnableEmbeddedSkins="False">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </FilterMenu>
                            <PagerStyle
                                />
                            <ClientSettings>
                                <Scrolling AllowScroll="false" UseStaticHeaders="false" />
                            </ClientSettings>
               
                        </telerik:RadGrid>

No answers yet. Maybe you can help?

Tags
Grid
Asked by
laila
Top achievements
Rank 1
Share this question
or