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

Display GridTemplateColumn ItemTemplate value if No Record found in detail tableview

0 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kishan
Top achievements
Rank 1
Kishan asked on 20 Oct 2015, 06:32 AM

Hello Telerik Team,

          I have one big problem not display GridTemplateColumn Item Template Item If No Record found in detail table view.

I take Checkbox in GridTemplateColumn ItemTemplate at Detailtableview. See the below code.

   <DetailTables>​

          <telerik:GridTableView runat="server" cssClass="​class1" DataKeyNames="​test" Name="​testchild" ShowFooter="true" AllowSorting="true"             EnableLinqExpressions="false" AllowCustomPaging="false" AllowFilteringByColumn="False" AllowMultiRowSelection="false" AutoGenerateColumns="false" >
                                <NoRecordsTemplate>
                                      <div> no child record display</div>
                                    </NoRecordsTemplate>
                                <ParentTableRelation>
                                    <telerik:GridRelationFields DetailKeyField="​test" MasterKeyField="​test" />
                                </ParentTableRelation>
                                <Columns>​

                          <telerik:GridTemplateColumn UniqueName="Checkout" Visible="true" HeaderStyle-Width="25px">
                                        <HeaderTemplate>
                                            Checkout<br />
                                            <asp:CheckBox ID="chkCheckOutAll" runat="server" AutoPostBack="false" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkCheckOut" runat="server" TypeId="1" AutoPostBack="false" />
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            Count: <asp:Label runat="server" ID="lblcount"></asp:Label>
                                        </FooterTemplate>
                                    </telerik:GridTemplateColumn>

                     </telerik:GridTableView>
            </DetailTables>

In the above code If No record found  at detailtableview then checkbox in Item Template GridTemplateColumn not display it. see the attached screenshot of childList.png. I do too much RND related to NoRecordTemplate display Item values. But I dont get any proper solution related to template column.

So I request to can you tell me the such type above possibility are available in telerik radgrid control ?. If yes then please give me proper solution about that because its urgent for me to do like that.

 Hope I get my solution from your Team,

Thanks & Regards

 Kishan Prajapati

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Kishan
Top achievements
Rank 1
Share this question
or