Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I have a gridview that has a checkbox column, with a checkbox in the header that when clicked, selects all of the checkboxes in the rows below. My issue is that I am disabling rows in my .net code. When I click the checkbox in the header, I dont want it to select the checkboxes in the disabled rows. I am using the SelectAllRowsOnPage to do my select all. Is there a way to only select the checkboxes on rows that are not disabled?

                                    below is my .ASPX code:
                                    <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="1" Caption = "SelectAll">
                                                                <HeaderTemplate>
                                                                    <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" style="vertical-align:middle;" title="Select/Unselect all rows on the page"></input>
                                                                </HeaderTemplate>
                                                                <HeaderStyle HorizontalAlign="Center">
                                                                    <Paddings PaddingBottom="1px" PaddingTop="1px" />
                                                                </HeaderStyle>
                                                           </dxwgv:GridViewCommandColumn>

                                0

                                Hi,

                                Send a custom callback to the server and select only those records which have enabled checkboxes. To send a custom callback to the server, use the ASPxGridView's client-side PerformCallback Method.

                                Thanks,
                                Plato

                                0

                                Plato,
                                Thank you for your response. I am not sure how creating a custom callback is going to work for my situation.

                                My issue is when I click the checkbox in the header, I do not want it to select the check boxes in the data rows below if the data row is disabled.

                                Please See Attatched screenshot.

                                GridScreenShot.JPG
                                0

                                Hi,

                                You should send a callback to the server and use the ASPxGridView's CustomCallback event to select / deselect required records.

                                Thanks,
                                Plato

                                0

                                I still do not understand..
                                Is there an example of this some place?

                                0

                                Hi,

                                I've posted a sample project showing this functionality at:

                                loop thread.

                                Thanks,
                                Plato

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners