1. Mike
    Mike avatar
    79 posts
    Member since:
    Nov 2011

    Posted 12 Sep 2012 Link to this post


    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;
  2. George
    George avatar
    1332 posts

    Posted 14 Sep 2012 Link to this post

    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.

    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.

Back to Top