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

[Solved] Expand/Collapse image missing in Client side Hierarchy Loaded grid

1 Answer 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guido Tapia
Top achievements
Rank 1
Guido Tapia asked on 28 Feb 2008, 08:26 PM
Hi,

I have a client side loaded hierarchy grid, the first level looks fine but if I open that then the second level has the exp/collapse image missing.  I've looked at the html and img appears to have the right source (a WebResource that resolves to the correct icon).  However perhaps because its initially not visible its not resolving?? Who knows.  Anyway below is my .skin defenition for the grid and inner table views. I will try to 'hard code' the icon to resolve this.

Edit:
Changing the default images using (ExpandCollapseColumn-CollapseImageUrl, and ExpandCollapseColumn-ExpandImageUrl) has the same problem.

Thanks

Guido Tapia

<telerik:RadGrid runat="server" Skin="Office2007" AutoGenerateColumns="false" GridLines="Vertical" ItemStyle-Height="20px" AlternatingItemStyle-Height="20px"
GroupingEnabled="False" AllowAutomaticUpdates="False" AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowMultiRowEdit="False"
AllowPaging="false" AllowSorting="false" Width="100%">
<ClientSettings AllowColumnHide="false" AllowColumnsReorder="false" AllowExpandCollapse="true" AllowGroupExpandCollapse="true" ReorderColumnsOnClient="true">
<Resizing AllowColumnResize="false" AllowRowResize="false" EnableRealTimeResize="true"/>
<Scrolling AllowScroll="true" SaveScrollPosition="true"/>
</ClientSettings>
<MasterTableView RetrieveAllDataFields="False" ShowHeadersWhenNoRecords="false" AllowMultiColumnSorting="False" AllowNaturalSort="False">
<NoRecordsTemplate><div style="color:#663366;padding:2px;padding-left:6px;"><i><b>No items found.</b></i></div></NoRecordsTemplate>
<PagerStyle Mode="NextPrevAndNumeric"/>
</MasterTableView>
</telerik:RadGrid>
<telerik:GridTableView runat="server" DataKeyNames="ID" HierarchyLoadMode="Client" HierarchyDefaultExpanded="false" AllowPaging="false" AdditionalDataFieldNames="ParentAssetID,ID"
HorizontalAlign="Right" Width="100%">
<SortExpressions>
<telerik:GridSortExpression FieldName="AssetName" SortOrder="Ascending"/>
</SortExpressions>
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="ParentAssetID" MasterKeyField="ID" />
</ParentTableRelation>
</telerik:GridTableView>

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Mar 2008, 11:47 AM
Hello Guido,

I checked our examples with client-side hierarchy expand/collapse however everything worked as expected on my end:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Hierarchy/HierarchyLoadModeClient/DefaultCS.aspx
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Hierarchy/SelfReferencing/DefaultCS.aspx

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Guido Tapia
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or