Basically I have a RadPanel bar I want to use as a delete button. I have the following PanelBar, take note of the onitemclick property:
When any item is clicked, this server side code runs and checks the value of each item, if the value of the item is Terminate then it runs a delete method and deletes any items inside a radGrid on the same page:
This works really well. I wanted to add a confirm dialog to the mix so when they press the Terminate link it will confirm that they will indeed want to delete the selected records from the grid. Usually I just add a client onclick event to buttons or links but I didn't see anything like that for the individual panel items. So I put this in my PageLoad to add the attribute:
This also works and I get a confirmation alert, however no matter what I press it still runs the serverside code and deletes the record. Even if I press CANCEL it still deletes the record.
Is there a way to get this to work with an alert even if I use the RadPanel?