Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to implement select/unselect for all rows in a group row in ASPxGridLookup

$
0
0
This example demonstrates how to implement select/unselect for all rows in a group row.

 

First, place ASPxCheckBox and ASPxLabel into the ASPxGridLookup.GridViewProperties.Templates.GroupRowContent template.

Second, set the ASPxCheckBox.Checked property and the client-side ASPxCheckBox.ClientSideEvents.CheckedChanged event in the ASPxCheckBox.Load event handler.

In this example the ASPxLabel.Text is bound in the markup using Two-Way DataBinding.


See also
How to implement select/unselect for all rows in a group row

Question Comments

Added By: Cedric C at: 10/24/2017 6:15:09 AM    I suppose the select all ability is implemented by this part of code:
<GroupRowContent>                         <table>                             <tr>                                 <td>                                     <dx:ASPxCheckBox ID="checkBox" runat="server" OnLoad="checkBox_Load" />                                 </td>                                 <td>                                     <dx:ASPxLabel ID="CaptionText" runat="server" Text='<%# GetCaptionText(Container) %>' />                                 </td>                             </tr>                         </table>                     </GroupRowContent>

But what is meant to do the 'checkBox_Load' callback?

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>