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

Wait radwindow to be closed

1 Answer 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jean-Marc
Top achievements
Rank 1
Jean-Marc asked on 10 Apr 2012, 10:23 AM
Hi,
I have a grid with a GridTemplateColumn checkbox. And a button.
When my button fires I loop all MasterTableView Items and find out which ones are checked.

For every checked row I do perform a delete (server side).
Before it I would like to open a radwindow to do some other stuff

it look like this

     For Each item As GridDataItem In RadGridNM.MasterTableView.Items
                Dim myChk As CheckBox = CType(item.FindControl("CheckBoxSet"), CheckBox)
                If myChk.Checked Then                            
                    RadAjaxManager1.ResponseScripts.Add(String.Format("OpenNews(" & valQuestion & ");"))

            '----------------------------
            'here perform delete    
           
                End If

   Next


My goal is to wait until radwindow is closed to perform the delete operation, clearly it does not happen and the loop goes on.
I know that the problem is they works in two different level client-side and server-side.
How do i achieve my goal? someone can help me?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 10 Apr 2012, 01:01 PM
Hello Jean-Marc,

If you're going to prompt the user for every checkbox that they check off, I can see two approaches that you could use.

1. You can prompt them when they click the button that fires the event and ask them the question and based on their answer it would either delete all the checked items or leave them be.
2. You can have your checkboxes fire the RadWindow and based on their delete the checked off item.

I hope that helps.
Tags
Window
Asked by
Jean-Marc
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or