cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

OldGoat
10-Marble

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

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

11 REPLIES 11
cbaldwin
12-Amethyst
(To:OldGoat)

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?

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.

cbaldwin
12-Amethyst
(To:OldGoat)

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.

 

 

slangley
23-Emerald I
(To:OldGoat)

Hi @OldGoat.

 

I will be happy to open a case on your behalf if you would like to proceed down that path.  Please let me know how we can help.

 

Regards.

 

--Sharon

To slangley:

 

CBaldwin has offered to contact me to view my screen (assuming via TEAMS).  I am waiting for him to set a meeting so we can do this.  Until I get this resolved, I cannot set any of the responses as a "solution", because nothing has been solved.  After I find out what the solution is, I will post the solution for everyone.  Thank you.

cbaldwin
12-Amethyst
(To:OldGoat)

OldGoat,

 

You are correct, my recommendation is to triage and address this issue with a member of our support team.  The way we will do this is through a support ticket, so Sharon's offer is how we will get this started.  From there the support team will setup time to meet with you.

 

Thanks,

Chris

slangley
23-Emerald I
(To:cbaldwin)

Hi @OldGoat 

 

I have created the support case.  You should be receiving an email shortly with the case number.

 

Regards.

 

--Sharon

PEHOWE
15-Moonstone
(To:slangley)

Hello @slangley , @OldGoat , @cbaldwin 

 

Found a workaround which may allows removing the selected row. 

In the Grid Advanced Widget set the "DefaultSelectedRows" to number of rows in table plus 1.

In my testing it this addressed the issue.

slangley
23-Emerald I
(To:PEHOWE)

Hi @OldGoat 

 

If the workaround is working to your satisfaction, please mark the previous post as the Accepted Solution for the benefit of others with the same issue.

 

Thanks.

 

--Sharon

A workaround is only temporary; A temporary workaround is not a solution.  No, it is not satisfactory.  The RESET property on the grid says very clearly that it can "trigger Grid Advanced widget to reset".  Now, I don't know what that means to anyone else, but to me, that means if I bind something to this, it will reset my grid back to its initial state.  If I had no rows selected, that is my initial state.  If I had row 36 selected, that is its original state.  The RESET property does NOT do what it suggests it does.

 

Is the temporary workaround usable?  I don't know, I'm sure it will...I just haven't had time to try yet, because I am working.  I will try the temporary workaround, but I want PTC to permanently and correctly fix it (either fix the RESET property to do what it suggests that it does or rename it to say what it does, and then add a ResetToDefaultValue or ResetToNoRowsSelected property), make it intuitive, and clearly document it.  Then, and only then, would I consider it to be a satisfactory and permanent "SOLUTION".  When they have added a property to the grids that can be triggered with a database/javascript service "ServiceInvokeCompleted" or a button click event, and it is clearly documented in your online documentation, then it is fixed.  Even mashups and other widgets have a triggered "ResetToDefaultValue" property, and the advanced grid needs it, as well.  That is what I would consider a viable and permanent solution.  If I accept this temporary workaround as a solution, then PTC will never fix it properly.  They will simply forget about this, and the developers will have to forever search the online forums to find this obscure temporary workaround.  If you were to tell me that the PTC developers WILL DEFINITELY fix this, I would accept that as a solution so long as it points to the TEMPORARY workaround to get developers by until they do fix it.  My customers wouldn't accept a temporary workaround as a permanent solution...and I don't, either.  

OldGoat
10-Marble
(To:PEHOWE)

Thank you PEHOWE...much appreciated.  I will give it a try when I get the time to try it out.  I would hope, however, that the PTC developers will create a permanent fix to this...  The "Reset" property on the grid does NOT reset as it advertises. (see image).  It needs to work, or it needs to be renamed, and a correctly operating Reset property needs to be added.

Announcements