| View previous topic :: View next topic |
| Author |
Message |
saurabh
Joined: 20 Jul 2007 Posts: 20 Location: India
|
Posted: Wed Aug 08, 2007 9:33 am Post subject: How to Check whether column is sorted or not in ListView |
|
In my application I am sorting the column using ClickColumn() Method.Now i want to check whether the clicked column is sorted or not so how can i do it?I am using RanorexNET.dll of RanorexPro version.Like if i have clicked Date-Time Column in my ListView so how can I check that the Date-Time Column is sorted.Please provide me exact code ASAP.
Thanks in Advance! _________________ Regards,
Saurabh Shrivastava
GE Global Research
Bangalore India |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Wed Aug 08, 2007 10:12 pm Post subject: |
|
| Quote: |
| ...i want to check whether the clicked column is sorted or not so how can i do it? |
I think you have only one possibility:
Read all items of the ListView and check every item with the previous one.
If you find no problem, then the list is sorted.
Jenö
Ranorex Team |
|
| Back to top |
|
 |
saurabh
Joined: 20 Jul 2007 Posts: 20 Location: India
|
Posted: Mon Aug 13, 2007 1:51 pm Post subject: Unable to get sorting property |
|
How can we check item wise because there are several kind of column like Date-Time,Integer and String so for each column we have to write different sorting code.
There is one properties of ListView called Sorting (to Gets or sets the sort order for items in the control) is vailalabe as you have metioned in help for Ranorexpro version.I am using Ranorexpro1.2 but i am not getting that property.I think some how this property will help us to check sorting _________________ Regards,
Saurabh Shrivastava
GE Global Research
Bangalore India |
|
| Back to top |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: Tue Aug 14, 2007 8:08 pm Post subject: |
|
| Quote: |
| There is one properties of ListView called Sorting ... |
The Sorting property sorts items based on the item text (first column), you cannot use this property for the other columns. If you sort the items in the ListView based on a subitem property, then the ListView items are sorted manualy with the Sort method.
| Quote: |
| How can we check item wise because there are several kind of column like Date-Time,Integer and String so for each column we have to write different sorting code. |
Yes, this is right, you have to write a checking function for each kind of column.
Jenö
Ranorex Team |
|
| Back to top |
|
 |
|