This is a migrated thread and some comments may be shown as answers.

Is there a way to get previously selected item?

2 Answers 66 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 13 Nov 2008, 08:34 PM
Hi,
I'd like to be able to catch the onClientItemClicking event and be able to determine what the previously selected item was. Is this possible? Also, if it is, I would like to fire a server side event based on what the previous selected item was.
Basically, what I am trying to do is to do an automatic "save" on whatever it is that they were working on prior to navigating someplace else.
Thanks ... Ed

2 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 14 Nov 2008, 08:43 PM
Hey Ed,

My guess would be to store the value of the selected item into a hidden field that you can pull out later, something along the lines of...

<user click>

if hiddenfield has value, run through code relating to previous item

set hiddenfield value to itemclicked

do whatever other click logic there was

Carries your value through post-back, lets you react based on previous item, and after the first click you'll always have that value saved moving forward.
0
Ed Staffin
Top achievements
Rank 1
answered on 14 Nov 2008, 08:47 PM
Yeah, that was my fallback. I guess I was hoping there might be something built in. No biggie.
Thanks ... Ed
Tags
PanelBar
Asked by
Ed
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Ed Staffin
Top achievements
Rank 1
Share this question
or