Wait radwindow to be closed

2 posts, 0 answers
  1. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 10 Apr 2012 Link to this post

    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


    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.
  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 10 Apr 2012 Link to this post

    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.
Back to Top