In this thread I asked about displaying gridlines when using skins.
Dimo posted an answer that also included information about the almost obsolete GridLines attribute of the RadGrid.
Can I suggest that Dimo's suggestion, or a variant of it, is included in the docs for other users as it is both generic and generally relevant, especially given the rather obscure and outdated css mechnism that the GridLines attribute relies on?
--
Stuart
| private void PerformDragAndDrop(RadTreeViewDropPosition dropPosition, RadTreeNode sourceNode, |
| RadTreeNode destNode) |
| { |
| if (sourceNode.Equals(destNode) || sourceNode.IsAncestorOf(destNode)) |
| return; |
| sourceNode.Owner.Nodes.Remove(sourceNode); |
| int iSourceNodeParentId = -1; |
| int iSourceNodeId = Convert.ToInt32(sourceNode.Value); |
| int iDestinationNodeId = Convert.ToInt32(destNode.Value); |
| if (sourceNode.ParentNode != null) |
| iSourceNodeParentId = Convert.ToInt32(sourceNode.ParentNode.Value); |
| else |
| iSourceNodeParentId = -1; |
| int iGroupViewId = Convert.ToInt32(sourceNode.Attributes["GROUPVIEWID"]); |
| WebSession webSess = (WebSession)Session["WebSession"]; |
| switch (dropPosition) |
| { |
| case RadTreeViewDropPosition.Over: |
| // child |
| if (!sourceNode.IsAncestorOf(destNode)) |
| { |
| destNode.Nodes.Add(sourceNode); |
| // update db |
| webSess.MasterSystem.GroupsSystem.MoveNode(sourceNode.Value, destNode.Value); |
| } |
| break; |
| case RadTreeViewDropPosition.Above: |
| // sibling - above |
| destNode.InsertBefore(sourceNode); |
| // update db |
| webSess.MasterSystem.GroupsSystem.MoveNodeOrder(iSourceNodeId, iSourceNodeParentId, iGroupViewId, ConfigurationConsts.NodeOrderDirection.nodUp); |
| break; |
| case RadTreeViewDropPosition.Below: |
| // sibling - below |
| destNode.InsertAfter(sourceNode); |
| // update db |
| webSess.MasterSystem.GroupsSystem.MoveNodeOrder(iSourceNodeId, iSourceNodeParentId, iGroupViewId, ConfigurationConsts.NodeOrderDirection.nodDown); |
| break; |
| } |
| } |
for (int pageitem = 0; pageitem < RgdDomainValues.Items.Count; pageitem++)
{
| <telerik:RadGrid ID="Grid1" runat="server" AllowPaging="True" |
| AllowSorting="True" ShowStatusBar="true" PageSize="20" GridLines="None" AutoGenerateColumns='false'> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| <ClientSettings > |
| <Resizing AllowColumnResize="True" ResizeGridOnColumnResize="true" ClipCellContentOnResize="true"/> |
| <Scrolling AllowScroll="True" ScrollHeight='500px' UseStaticHeaders="True" SaveScrollPosition="True" /> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| <MasterTableView DataKeyNames="Type,CrmId,FieldId" TableLayout="Fixed" > |
| <Columns> ... |
| </Columns> |
| <EditFormSettings> |
| <EditColumn ButtonType="ImageButton" /> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
RadGrid2_DetailTableDataBind.
I have set HierarchyDefaultExpanded="true" inside MasterTableView. If it is set to false I am not getting the error but I want all complete hierarchy to be expanded by default.
Any help is much appreciated.
Thanks!