Hi
I have got a hierarchy grid which im populating its detailview programatically. I would like to make a collapse sign(+) appear when ever a row has a subrow underneath. Does anyone know how to do this(Rigth now its only appearing when i click the row).
You need to set HierarchyDefaultExpanded to true in the MasterTableView definition and then write the following code snippet to prevent items with no child records from collapsing
CS:
Hie Shinu, when i don't specify a skin type the + signs appear but when i do specify the signs disappear even though the collapse and expand appear as required.Currently im using the Skin="Office2007"
and the rest of my code html is as follows: <telerik:RadGridID="RadGrid2"runat="server"Skin="Office2007"Width="100%"SelectedItemStyle-BackColor="ActiveBorder"OnColumnCreated="RadGrid2_ColumnCreated"OnNeedDataSource="RadGrid2_NeedDataSource"AllowSorting="True"AllowPaging="True"GridLines="None"Height="100%"OnItemCommand="RadGrid2_ItemCommand"OnItemDataBound="RadGrid2_ItemDataBound"OnPreRender="RadGrid2_PreRender"ShowHeader="False"ShowStatusBar="True"> <MasterTableViewHierarchyDefaultExpanded="true"HierarchyLoadMode="Client"DataKeyNames="LocationID,ParentLocationID"Width="100%"><SelfHierarchySettingsParentKeyName="ParentLocationID"KeyName="LocationID"MaximumDepth="100"/><NoRecordsTemplate></NoRecordsTemplate></MasterTableView> <ClientSettingsEnableRowHoverStyle="True"><SelectingAllowRowSelect="True"/><ScrollingAllowScroll="True"UseStaticHeaders="True"/></ClientSettings> <PagerStyleMode="NextPrevAndNumeric"/> <SelectedItemStyleBackColor="ActiveBorder"/></telerik:RadGrid>