Results 1 to 1 of 1

Thread: TreeView Ctrl: New item gets added non alphabetically

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    3

    TreeView Ctrl: New item gets added non alphabetically

    Hi,

    When I add a subitem to an item in the tree view control it alters the position of the item itself in the tree. The order is restored when I redraw/populate the tree again. The addition of a parent node works as expected and is added with the correct sort order and its only when I add a child that it moves the node non alphabetically. I recently upgraded from Stingray Toolkit 6.03 to Stingray Toolkit 11.1 and the old code works just fine without having to re-populate the tree. Here is an illustration of the issue:
    In a tree view like:
    + Apple
    + Banana
    + Carrots
    + Dates

    If I attempt to add a sub item Fuji to Apple it changes the position of Apple in the tree as in:

    + Banana
    + Carrots
    - Apple
    --Fuji
    --Gala
    + Dates

    Is this a known issue and is there a quick fix?

    Additional info: Building for Win32 target using VisualStudio 2010, in a WIndows7(64-bit) machine.

    Thanks,
    Pratheesh
    Last edited by PFCOMMDEV; 04-21-2014 at 08:20 AM. Reason: OS details added

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •