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

[Solved] Grid Nested View - Wierd Icons showing up

9 Answers 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 23 Jun 2008, 10:23 PM
I have a nested view in a grid control that is showing some wierd icons next to it.  It looks like a filter icon, some others.  It is appearing in the margin of the grid, to the left of a nested view (where there are details around a frameset).  I am using grouping on the grid, the nesting under the grouped grid row.

Any idea why this is happening?  I have a sample project zipped, but don't see an option to attach it here.

 Steve

9 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jun 2008, 06:51 AM
Hi,

Are you trying to implement Grouping with Grid. Try implementing it as shown in the online demo.
Outlook-style grouping

Shinu.
0
Steve
Top achievements
Rank 1
answered on 24 Jun 2008, 01:08 PM
That is similar to what I am doing...

I have a small sample project that demonstrates the problem.  Is there a way I can get this to you so you can see what is happening?

Steve
0
Steve
Top achievements
Rank 1
answered on 24 Jun 2008, 01:18 PM
To further clarify some, I am doing the outlook style similar but I have a nested view below the grid rows that shows some detail.  Next to this nested view there are some icons displaying (filter icon, paging icons).  This seems to be a bug. 

Is there a way I can attach my sample project here that demonstrates that?

Here is some of my code:

<telerik:RadGrid ID="grdSearchResults"

runat="server"

AllowAutomaticInserts="true"

AllowAutomaticUpdates="True"

AutoGenerateEditColumn="False"

Skin="Vista"

GridLines="None"

DataSourceID="dsVendors"

AllowPaging ="false" >

<MasterTableView DataKeyNames="VNDR_CD"

AutoGenerateColumns="false"

EditMode="EditForms"

CommandItemDisplay="Top"

Name="Vendors"

AllowSorting="true">

<CommandItemSettings AddNewRecordText="Add New Vendor" />

<Columns>

<telerik:GridBoundColumn DataField="VNDR_CD" Display="false" ReadOnly="true" />

<telerik:GridBoundColumn DataField="vndr1" Display="false" ReadOnly="true" />

<telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="images/edit.bmp" ItemStyle-Width="15" HeaderStyle-Width="15" HeaderText="Edit" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="Verdana" />

<telerik:GridBoundColumn DataField="VNDR_NAM" HeaderText="Vendor Name" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="Verdana" />

<telerik:GridBoundColumn DataField="STATUS" HeaderText="Status" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="Verdana" ItemStyle-Width="25" HeaderStyle-Width="25" />

</Columns>

<DetailTables>

<telerik:GridTableView DataKeyNames="VNDR_CD"

AllowFilteringByColumn="false"

AllowPaging="true"

PageSize="2"

CommandItemDisplay="Top"

DataSourceID="dsVendorAdmin"

AutoGenerateColumns="false">

<CommandItemSettings AddNewRecordText="Add a new Vendor Benefit Administrator" />

<ParentTableRelation>

<telerik:GridRelationFields DetailKeyField="VNDR_CD" MasterKeyField="VNDR_CD" />

</ParentTableRelation>

<Columns>

<telerik:GridBoundColumn DataField="VNDR_CNTCT_ID" Display="false" ReadOnly="True" UniqueName="VNDR_CNTCT_ID" />

<telerik:GridBoundColumn DataField="VNDR_CD" Display="False" ReadOnly="True" UniqueName="VNDR_CD" />

<telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="images/edit.bmp" HeaderText="Edit" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" Width="15px" />

<ItemStyle Width="15px" />

</telerik:GridEditCommandColumn>

<telerik:GridDropDownColumn DataField="ContactLevel" HeaderText="Contact Level" UniqueName="ContactLevel" Display="false" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" />

</telerik:GridDropDownColumn>

<telerik:GridBoundColumn DataField="VNDR_CNTCT_NAM" HeaderText="Contact Name" UniqueName="VNDR_CNTCT_NAM" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="VNDR_CNTCT_TITLE" HeaderText="Contact Title" UniqueName="VNDR_CNTCT_TITLE" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="VNDR_MGR_NAM" HeaderText=" Vendor Manager " UniqueName="VNDR_MGR_NAM" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="COUNTRY_CODE" HeaderText="Country" UniqueName="COUNTRY_CODE" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="REGN_CD" HeaderText="Region" UniqueName="REGN_CD" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="PHN_NUM" HeaderText="Phone" UniqueName="PHN_NUM" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="expir_dt" HeaderText="Expiration Date" UniqueName="expir_dt" >

<HeaderStyle Font-Bold="True" Font-Names="Verdana" />

</telerik:GridBoundColumn>

</Columns>

<GroupByExpressions>

<telerik:GridGroupByExpression>

<SelectFields>

<telerik:GridGroupByField FieldAlias="ContactLevel" HeaderText = "Contact Level" FieldName="ContactLevel" FormatString="{0:D}" HeaderValueSeparator=" : "></telerik:GridGroupByField>

</SelectFields>

<GroupByFields>

<telerik:GridGroupByField FieldName="ContactLevel" SortOrder="Descending"></telerik:GridGroupByField>

</GroupByFields>

</telerik:GridGroupByExpression>

</GroupByExpressions>

<NestedViewTemplate>

<br />

<asp:Label ID="VNDR_CNTCT_ID" Font-Bold="true" Font-Italic="true" Text='<%# Eval("VNDR_CNTCT_ID") %>' Visible="false" runat="server" />

<asp:AccessDataSource ID="ContactDetailsDataSource"

runat="server"

DataFile="VMgmt.mdb"

SelectCommand="SELECT * FROM VNDR_CNTCT where VNDR_CNTCT_ID = ? ">

<SelectParameters>

<asp:ControlParameter ControlID="VNDR_CNTCT_ID" PropertyName="Text" Type="String" Name="VNDR_CNTCT_ID" />

</SelectParameters>

</asp:AccessDataSource>

<fieldset>

<asp:DetailsView ID="DetailsView2"

AutoGenerateRows="false"

AutoGenerateEditButton="true"

AutoGenerateDeleteButton="true"

AllowPaging="false"

GridLines="None"

Width="100%"

DataSourceID="ContactDetailsDataSource"

CellPadding="3"

runat="server">

<Fields>

<asp:BoundField DataField="VNDR_CNTCT_NAM" ReadOnly="true" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Contact Name:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="VNDR_CNTCT_TITLE" ReadOnly="true" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Contact Title:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="VNDR_MGR_NAM" ReadOnly="true" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Vendor Manager:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="LINE_ADDR_1" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Address Ln 1:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="LINE_ADDR_2" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Address Ln 2:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="CITY_NAM" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="City:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="ST_PRVNCE_CD" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="State:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="ZIP_CD" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Zip:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="PHN_NUM" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Phone:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="FAX_PHN_NUM" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Fax Number:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="EMAIL_ADDR" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Email:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

<asp:BoundField DataField="expir_dt" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Right" HeaderText="Expiration Date:" HeaderStyle-Font-Bold="true" HeaderStyle-Width="100" />

</Fields>

</asp:DetailsView>

</fieldset>

</NestedViewTemplate>

<EditFormSettings EditFormType="Template">

<FormTemplate>

<table>

<tr>

<td align="right">

<asp:Label ID="Label2" runat="server" Text="Contact level :" Font-Size="Small"></asp:Label>

</td>

<td align="left" >

<asp:DropDownList ID="ddlContactLevel" runat="server" SelectedValue='<%# GetDefaultsWhenNull(Eval("ContactLevel"))%>' AppendDataBoundItems="True" DataSourceID="dsLevel" DataTextField= "CNTCT_LVL_DESC" DataValueField="CNTCT_LVL_DESC" ></asp:DropDownList>

</td>

<td align="right">

<asp:Label ID="Label17" runat="server" Text="Country :" Font-Size="Small"></asp:Label>

</td>

<td align="left">

<asp:DropDownList ID="ddlCountry" Enabled='<%# GetCountryVisibility(Eval("ContactLevel"))%>' runat="server" SelectedValue='<%# Bind("COUNTRY_CODE")%>' AppendDataBoundItems="True" DataSourceID="dsCountry" DataTextField= "Country_name" DataValueField="Country_name" ></asp:DropDownList>

</td>

<td align="right">

<asp:Label ID="Label18" runat="server" Text="Region :" Font-Size="Small"></asp:Label>

</td>

<td align="left">

<asp:DropDownList ID="ddlRegion" Enabled='<%# GetRegionVisibility(Eval("ContactLevel"))%>' runat="server" SelectedValue='<%# Bind("REGN_CD")%>' AppendDataBoundItems="True" DataSourceID="dsRegion" DataTextField= "REGN_NAM" DataValueField="REGN_NAM" ></asp:DropDownList>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="Label4" runat="server" Text="Contact Role :" Font-Size="Small"></asp:Label>

</td>

<td align="left">

<asp:TextBox runat="server" id="txtTitle" Text='<%# Bind("VNDR_CNTCT_TITLE")%>' AppendDataBoundItems="True" ></asp:TextBox> </td>

<td align="right">

<asp:Label ID="Label5" runat="server" Text="Contact Manager :" Font-Size="Small"></asp:Label>

</td>

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

<asp:TextBox runat="server" id="txtManagerName" Text='<%# Bind("VNDR_MGR_NAM")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="Label3" runat="server" Text="Contact Name :" Font-Size="Small"></asp:Label>

</td>

<td align="left">

<asp:TextBox runat="server" id="txtContactName" Text='<%# Bind("VNDR_CNTCT_NAM")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

<td align="right">

<asp:Label ID="Label9" runat="server" Text="Address Ln 1 :" Font-Size="Small"></asp:Label>

</td>

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

<asp:TextBox runat="server" id="txtAddr1" Text='<%# Bind("LINE_ADDR_1")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="Label10" runat="server" Text="Address Ln 2 :" Font-Size="Small"></asp:Label>

</td>

<td align="left">

<asp:TextBox runat="server" id="txtAddr2" Text='<%# Bind("LINE_ADDR_2")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

<td align="right">

<asp:Label ID="Label11" runat="server" Text="City :" Font-Size="Small"></asp:Label>

</td>

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

<asp:TextBox runat="server" id="txtCity" Text='<%# Bind("CITY_NAM")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="Label12" runat="server" Text="State/Province/country :" Font-Size="Small"></asp:Label>

</td>

<td align="left">

<asp:TextBox runat="server" id="txtState" Text='<%# Bind("ST_PRVNCE_CD")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

<td align="right">

<asp:Label ID="Label13" runat="server" Text="Zip :" Font-Size="Small"></asp:Label>

</td >

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

<asp:TextBox runat="server" id="txtZip" Text='<%# Bind("ZIP_CD")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="Label14" runat="server" Text="Phone :" Font-Size="Small"></asp:Label>

</td>

<td align="left">

<asp:TextBox runat="server" id="txtPhone" Text='<%# Bind("PHN_NUM")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

<td align="right">

<asp:Label ID="Label15" runat="server" Text="Email :" Font-Size="Small"></asp:Label>

</td>

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

<asp:TextBox runat="server" id="txtEmail" Text='<%# Bind("EMAIL_ADDR")%>' AppendDataBoundItems="True" ></asp:TextBox>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="Label19" runat="server" Text="Fax Number :" Font-Size="Small" ></asp:Label>

</td>

<td >

<asp:TextBox runat="server" id="TextBox2" Text="" AppendDataBoundItems="True" ></asp:TextBox>

</td>

<td align="right">

<asp:Label ID="Label16" runat="server" Text="Vendor Code :" Font-Size="Small" Visible="false"></asp:Label>

</td>

<td colspan="3">

<asp:TextBox runat="server" id="TextBox1" Text='<%# Bind("VNDR_CD")%>' AppendDataBoundItems="True" Visible="false"></asp:TextBox>

</td>

</tr>

<tr align="center">

<td align="right" colspan="3" >

<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Edit" %>'

runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>

</asp:Button>&nbsp;

<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"

CommandName="Cancel"></asp:Button>

</td>

</tr>

</table>

</FormTemplate>

</EditFormSettings>

</telerik:GridTableView>

</DetailTables>

</MasterTableView>

</telerik:RadGrid>

0
Steve
Top achievements
Rank 1
answered on 24 Jun 2008, 01:25 PM
Additionally, when the <GroupByExpression> node is removed, the problem goes away...
0
Shinu
Top achievements
Rank 2
answered on 25 Jun 2008, 06:43 AM
Hi Steve,

Which version of the Grid are you using? Try upgrading to the latest version of the Grid(2008.1.619).
Updating RadControls for ASP.NET to another version or license

Thanks
Shinu.

0
Steve
Top achievements
Rank 1
answered on 25 Jun 2008, 01:13 PM
the DLL (Telerik.Web.UI.dll) is version 2008.1.515.35.  How can I tell what the version is for the grid?
0
Iana Tsolova
Telerik team
answered on 25 Jun 2008, 02:04 PM
Hi Steve,

I suggest that you open a formal support ticket and there you can attach the zipped project. We can then debug it locally and investigate the problem in depth and turn back to you with a resolution.

Let us know if any issues arise.

Regards,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve
Top achievements
Rank 1
answered on 25 Jun 2008, 02:16 PM
Please tell me the process for doing that.
0
Sebastian
Telerik team
answered on 25 Jun 2008, 02:19 PM
Hi Steve,

You can start a formal support ticket by logging from your Client.NET account.
 
Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Steve
Top achievements
Rank 1
Iana Tsolova
Telerik team
Sebastian
Telerik team
Share this question
or