SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Problem with automation of DevExpress treelist

    The application consists of a devexpress treelist. The nodes will be having a checkbox and some nodes hav the link porperty also (left click on these nodes displays a pop-up window). Right clicking on a node displays ContextMenu.

    Appl Coding Part:
    In the coding all these things are handled under mousedown event.
    If the right click is made on the node then the contextmenu shld be popped-up

    the left click on the checkbox changes the stateimageindex value, if checked a grid is displayed.

    If the left click on the node with link porperty then window is displayed.

    Problem with Automation :
    How can we perform a click on a node -
    right click - for contextmenu
    left click on checkbox - for grid to be displayed
    leftclick on node - for pop-up window

    Note: setting the stateimageindex by accessing the node properties is not working without the mousedown.

    Can anyone please suggest the way to automate this scenario. It will be a great help.

  2. #2
    Junior Member
    Join Date
    Dec 2008
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with automation of DevExpress treelist

    I tried with the GetTextLocation method but its giving different outputs at different times. Cant rely on that method.

    In many blogs it is mentioned that "To get the location of the node the TreeListHitInfo class is used". This class can only be used after a mouse click.

    In my scenario i hav to get the node and then only perform the mouse click, hence cannot use the TreeListHitInfo class.

    Can anyone please help me in getting the location of the node

  3. #3
    Junior Member
    Join Date
    Dec 2008
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with automation of DevExpress treelist

    ViewInfo method has to be used to get the bounds of the focussed node of a devexpress TreeList.

    Rectangle nodeBounds = treelist1.ViewInfo.RowsInfo[treelist.FocusedNode].DataBounds

    For particulart column bounds
    Rectangle cellBounds = treeList1.ViewInfo.RowsInfo[treeList1.FocusedNode][treeList1.FocusedColumn].Bounds;

  4. #4
    Member
    Join Date
    Oct 2007
    Location
    London, UK
    Posts
    87
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem with automation of DevExpress treelist

    Hi!

    I'm having the same problem, can anyone help?

    UPD. Found a good article on AdvancedQTP, http://www.advancedqtp.com/knowledge-bas...ustom-controls/

    hope to get in touch with the application developer tomorrow.

    Thanks.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:24 PM.

Copyright BetaSoft Inc.