Skip to main content
13-Aquamarine
April 27, 2021
Solved

how to deselect the selected row of grid on button click?

  • April 27, 2021
  • 1 reply
  • 11318 views

What's needed on the Advanced Grid is someone at PTC to RECODE the "RESET" attribute.  I expect RESET to "reset" the grid back to its original DEFAULT state.  That is, after all, what the word RESET means!

 

[RESET(Verb) - To set back to the initial state.]

 

If it had no rows selected when you first arrived at the grid, then triggering the RESET feature "SHOULD" return it to the initial state.  If one or more rows are selected by default, then the grid should return to THAT state instead.  It makes absolutely NO sense whatsoever that you don't have this feature built into the grid in the first place!   AND...that feature should be very intuitive to find and use. You have it on other widgets...why not the grid? The only way to clear a selected row is to refresh the browser.  And that is unsatisfactory.  Forcing someone to set up and/or use a filter service just so they can clear a selected row is also just plain silly, especially when you are already providing the proper attribute...it just doesn't work as expected.

 

Related topic

Best answer by OldGoat

SJoyce,

 

Thank you for asking.  We have migrated to 9.3.8b and connecting a button to the "Reset" property of a grid clears any selections as expected.  This issue is resolved.  Unfortunately, I have a LOT of new issues that will get reported when (if) I can catch a break in OPSTEMPO!

1 reply

14-Alexandrite
April 28, 2021

I have asked our engineering team.  They are saying that if you want to deselect a row on the Advanced Grid, hold ctrl + click on the row. The Reset button does not clear the selection, yes.  The reset button resets any column configurations (e.g. showing/ hiding, moving them around, sorting etc).

 

Does this help?

OldGoat13-AquamarineAuthor
13-Aquamarine
April 29, 2021

So when one of my users refreshes the data on their screen, and the selected row will not clear, then you want me to tell them to do all these extra steps when it SHOULD refresh the grid programmatically?  That makes zero sense to me as a web application programmer.  And it certainly makes no sense for me to have to tell my users to do this in order to set the screen back to its initial condition.  I don't accept this as a viable answer...sorry.

14-Alexandrite
April 29, 2021

OldGoat, I'm not sure we are talking about the same thing.  This likely can't be debugged via Community post.  I will have a member of our support team reach out to troubleshoot on a meeting looking at the code together.