Ticket T492159
Visible to All Users

ASPxCheckBox - The server-side CheckedChanged event doesn't fire in Navbar

created 8 years ago

Hello,  I've defined two checkboxes in the NavBar template but it is not responding to the onCheckedChanged event.  What am I missing?

Thank you
Kim

<div class="row">
        <div class="col-md-3">
            <h2>Filter</h2>
            <p>
                Filter by Sponsor, RFA or Opportunity Name.
            </p>
            <p>
                <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301949">Learn more »</a>
            </p>
            <dx:ASPxNavBar ID="ASPxNavBar1" runat="server">
            <Groups>
                <dx:NavBarGroup Name="Sponsor" Text="Sponsor">
                    <ContentTemplate>
                        <dx:ASPxCheckBox ID="chkboxAdministration" runat="server" Text="Administration" CheckState="Unchecked" ClientInstanceName="chkboxAdministration" OnCheckedChanged="chkboxStatus_CheckedChanged">
                        </dx:ASPxCheckBox>
                        <dx:ASPxCheckBox ID="chkboxProvost" runat="server" ClientInstanceName="chkboxProvost" OnCheckedChanged="chkboxProvost_CheckedChanged" Text="Provost">
                        </dx:ASPxCheckBox>
                    </ContentTemplate>
                </dx:NavBarGroup>
            </Groups>
        </dx:ASPxNavBar>
        </div>
        <div class="col-md-9">
            <h2>Getting started</h2>
            <p>
                Limited Sumission Database.
            </p>
            <dx:ASPxGridView ID="grid" runat="server" ClientInstanceName="grid" OnCustomCallback="grid_CustomCallback"></dx:ASPxGridView>
        </div>

Answers approved by DevExpress Support

created 8 years ago (modified 8 years ago)

Hello

If you need to handle the server-side ASPxCheckBox.CheckedChanged event, I suggest you set the ASPxCheckBox.AutoPostBack property to true for both these checkboxes to process this event on the server side:

ASPx
<dx:ASPxCheckBox ID="chkboxAdministration" runat="server" Text="Administration" AutoPostBack="true" CheckState="Unchecked" ClientInstanceName="chkboxAdministration" OnCheckedChanged="chkboxAdministration_CheckedChanged"> </dx:ASPxCheckBox>

Let us know if this approach helps.

    Comments (1)
    SM SM
    Suresh Mallipeddi 8 years ago

      That did the job.  Thanks!

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.