How to deselect a row in an editable list view


Badge +2

Hi,

 

I have an editable list view and I cannot get selected rows to deselect.

 

I've tried all the usual things like list refresh, re-running the list method, re-initialising the view, etc.  but the selection still persists.

 

It's worth mentioning that this only happens for one app. that I'm developing.

 

Does anyone know of a way to deselect rows or somehow refresh the list?

 

Thanks :)


10 replies

Userlevel 3
Badge +8

Dear , 

 

If u mean deselecting which is un highlight the row , 

there is one workarround that i got but i dont know if it fits ur scenario ,

u could add a toolbar button or any control 

go add a new event , "when a toolbar button is clicked ", and add the following rules ,

 

12390i280DCDC7F87BDCEE.png

 

this will deselect the row , 

Hope it helps!

Best regards.

Badge +2

Thanks for that.

 

I was really hoping that would work but no.

 

It seems like the row isn't selected but still shows as highlighted.  Very odd!

Userlevel 3
Badge +8

Dear , 

 

Im not really sure wts happening in ur case honestly , 

because i selected a row from my list and used the rules and it worked ,

just in case , could u provide me with  a screen shot , wt do u mean by selected ? how does a row looks like when its selected ?

 

Best regards.

Badge +2

Thanks again.

 

I've attached an image of the list.


11144i6561D22FCBE95617.jpg
Userlevel 3
Badge +8

Dear , 

 

I have tried the same rules / same theme and it worked ,

2 things could be different and wt i think might be causing the issue .

my rules r on view level , view toolbar button , make sure u r using the same .

and im on 4.6.10 version , prolly u have different one .

 

Hope it helps!

Best regards.

 

 

Badge +2

Thanks for your efforts but I tried your solution at view level as you suggest and also I'm on 4.6.10.

 

The only difference between this list view and others that I've created is that the SMO attached uses a dynamic stored proc that pivots data from the db.

 

I really don't see how this could cause this problem but it's the only difference I can think of.

Badge +9

Is the row selected right from the start when the form/view is loaded? or did you select the row and you are now trying to de-select the row?

Badge +2

Hi,

 

It's a row I've selected.

 

Thanks,

Jeff

Userlevel 5
Badge +16

Hi,

 

I think this could be possible using JS or JQuery on a button click

 

Please add a button and data label, give the button toolip property "DeselectRows"

 

add this script as an expression on the datalable

 

<script type="text/javascript">
$(document).ready(function()
{
$("[title='DeselectRows']").click(function()
{
$(".highlighted").attr('class', '');
$(".selected").attr('class', '');
}); })
</script>

When you click on the button it will deselect the row,

 

If you have Multiple row selection on, you can deselect row by pressing CTRL + Left-click mouse.

 

Is that what you're looking for?

 

 

Badge +2

Hi Mustafa,

 

Thanks for your help but this doesn't do anything.

 

I don't know JS but I did some Googling and found another example which displayed a pop-up.  This worked so I don't know what the problem is?

 

Kind Regards,

 

Jeff

Reply