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

[Solved] De-selecting RadGrid Rows After Closing RadWindow

2 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason Zam
Top achievements
Rank 1
Jason Zam asked on 07 Dec 2009, 08:36 PM
Hello,

I'm hoping for some quick advice on how to tackle this problem.

I am using a RadGrid along with the GridClientSelectColumn column for selecting rows in the RadGrid.  Once the user selects 1 or more rows, they can click a separate button which opens up a RadWindow where they can then perform an action on the ID's that were passed to the RadWindow from the selected rows of the RadGrid.

How can I deselect the rows of the RadGrid after closing the RadWindow?

Thanks so much!
Jason

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 08 Dec 2009, 05:53 AM
Hello Jason,

Attach 'OnClientClose' event to RadWindow which will fire when closes the window and in the event handler, deselect all the rows as shown below.

JavaScript:
 
<script type="text/javascript"
    function OnClientClose() { 
        var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView(); 
        masterTable.clearSelectedItems(); 
    } 
</script> 

-Shinu.
0
Jason Zam
Top achievements
Rank 1
answered on 09 Dec 2009, 02:45 PM
Works great, thank you for the reply!
Tags
Grid
Asked by
Jason Zam
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jason Zam
Top achievements
Rank 1
Share this question
or