Forum Discussion

ChrisMac's avatar
ChrisMac
Contributor
14 years ago

Checkboxes within a grid, can't get the correct wValue.

Hi All-

I've got a grid in a client server app. that has a column of checkboxes. When a row/column cell is checked and I run the spy over it it the wValue comes back as 'True' which is what I expect. However, when I uncheck it and run the spy over it I expect 'False' but still get 'True'. Does anyone know what the issue is here. Checkpoints are useless at this point unless I get the true value when the cell is checked (true) or unchecked(false). I'm using TC 8.5. The Grid is ID'd as a .Net ClrFullClassName = Infragistics.Win.UltraWinGrid.UltraGrid.



Chris
  • sbkeenan's avatar
    sbkeenan
    Frequent Contributor
    Hi Chris



    A long shot here, but I have encountered a similar issue with DevXpress checkboxes and it was nothing more that clicking off the checkbox so that its properties are fully updated, i.e. if you click on the checkbox to either check or uncheck it, its propertirs are not updated (at least the Object Spy doesn't get an updated version) until you click somewhere else, then use the Object Spy to get a fresh reading of the properties.



    Hope this helps.



    Regards

    Stephen.
  • Hi Chris,


    Stephen is right. The fact is that the Infragistics WinGrid control may not update check box values until you click somewhere else within the control. If you do not confirm changing the value by clicking something else, TestComplete's Object Spy displays the old value of the wValue property.


    So, to update the check box's state, you can, for example, click the next cell. The check box's value will be updated. After that, use the Object Spy to check it.


    If you still face the issue, please specify the version of the control you are using.

  • Stephen and Margaret, thanks for the suggestion, that works perfectly. It was a refresh issue.



    Chris
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    On those kinds of situations, sometimes, after I perform the action (click, etc), I call the OnExit event handler directly.  For example, in my previous life, I had a windows application that, after I typed a numeric value in a field, if I left the field, it would update other fields on the screen.  In that situation, SetText didn't do what I needed it to do and I didn't want to use the Keys method.  So, I called SetText and followed it up with a call do DoExit which simulated what would happen when I left the field.


  • vls1210's avatar
    vls1210
    Occasional Contributor
    Hi team,

     How to read infragistics grid value and infragistics cell value?
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi,


     


    You can find an answer to your question in the "Supported Infragistics Controls" article - just find your control and open the needed page.


     


    BTW, the original question posted in this thread isn't related to your question. Could you please create a new thread for question you have in the future?