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

How to use ASPxCheckBox in DataItemTemplate to emulate a selection

$
0
0

The Selection behavior is emulated by the ASPxCheckBox. Client-side events are set at runtime. The checkbox uses the ASPxClientGridView.SelectRowOnPage to set a row, where it is placed.

This example shows ho to improve formatting, when it is necessary to place controls inside a command column in the appropriate layout.

See Also:
How to select a row in one click
How to hide ASPxGridView's SelectionCheckBox for particular row

Question Comments

Added By: DevExpressuser777 at: 5/6/2013 12:18:15 AM    

Good one but when I select all check boxes individually the header is not getting selected, similarly when I click on header and select all, after unchecking a checkbox the header selection is showing in selected state only

Added By: Sandeep Agarwal 3 at: 8/19/2016 11:20:25 AM    I've a problem with this implementation where if the user has checked some rows in the grid and then they click anywhere outside on any other row the checked rows loses it highlight and when we call the GetSelectedFieldValues() function on the server, it only returns the last highlighted item and not the previously checked rows. Any idea how can this be prevented ?.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



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