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

Modal ?

1 Answer 15 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 12 Sep 2012, 02:56 PM
Hello, 

I want to control filtering operations in my GridView by showing a RadWindow to confirm filtering action, because it will clear all user workflow data. I'm using the Filtering event of gridView and RadWindow.Confirm("", ConfirmResult). The problem is that RadWindow.Confim dosen't stop the code execution. Can someone tell me how can I do to meet my need please?

This is my code :

private void Grid_Filtering(object sender, GridViewFilteringEventArgs e)
{
     RadWindow.Confirm("Message_ConfirmSelectionClear", (_sender, _e) =>
     
         if(_e.DialogResult == false) e.Cancel = true;
     }       
}

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 14 Sep 2012, 02:47 PM
Hello Radouan,

In Silverlight the modal windows cannot freeze the current UI thread and stop execution of the code. If this happens, the browser will be frozen and this will lead to crash in the application. That's why the RadConfirm stays on top of the all other UI elements in the application and handles the mouse clicks.

In the given scenario I would suggest filtering the GridView only when the DialogResult are true in the window callback.

Hope this helps.

Greetings,
George
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
Window
Asked by
Mike
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or