in

CodeSmith Community

Your Code. Your Way. Faster!

GridViewSearchPanel issue (nettiers-fx2.0-20070509), DataBind not being called on UpdatePanel callback.

Last post 05-21-2007 12:20 PM by mike123. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-17-2007 9:47 AM

    • dudleya
    • Not Ranked
    • Joined on 04-17-2007
    • Posts 5
    • Points 145

    GridViewSearchPanel issue (nettiers-fx2.0-20070509), DataBind not being called on UpdatePanel callback.

    Works great on the initial search or reset.  However, after filtering, if you try to page or sort, the filter is lost in the dataset.  I believe the DataBind is not getting called.  As a temp work around I've changed the OnLoad method to always DataBind, regardless of Page.IsPostBack status.

     

            protected override void OnLoad(EventArgs e)
            {
                base.OnLoad(e);
                base.EnsureChildControls();
                if (true || !Page.IsPostBack)
                {
                    // if we have a search value then build the search
                    if (!string.IsNullOrEmpty(txtKeyword.Text) &&
                            !string.IsNullOrEmpty(cboFieldName.SelectedValue))
                    {
                        this.DataBind();
                    }
                    ExcludeFields();
                }
            }

    Filed under:
    • Post Points: 35
  • 05-21-2007 12:20 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 723
    • Points 16,775

    Re: GridViewSearchPanel issue (nettiers-fx2.0-20070509), DataBind not being called on UpdatePanel callback.

    dudleya,

    Thanks for the report. Fixed in rev. 564

    Mike Shatny
    -------------------------------------
    Member of the .netTiers team
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 5
Page 1 of 1 (2 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems