0

I have a dropdownlist for controlling Obout grid datasource.

<obout:OboutDropDownList runat="server" ID="ddlAAACode"
   DataTextField="Description" DataValueField="AAACode" 
   FolderStyle="~/AppThemes/intstyles/premiere_blue/OboutDropDownList" 
   Width="250" Enabled="true" 
   AutoPostBack="true" 
   OnSelectedIndexChanged="ddlAAACode_SelectedIndexChanged" />

"ddlAAACode_SelectedIndexChanged" code

protected void ddlAAACode_SelectedIndexChanged(object sender, EventArgs e)
{
    string AAACode = ddlAAACode.SelectedValue;

    .....getting business object & entity.....

    try
    {
        DataTable dt = obj.GetObject(AAACode);

        if (dt != null)
        {
            if (dt.Rows.Count > 0)
            {
                grid1.DataSource = dt;
                grid1.DataBind();
            }

            dt = null;
        }
    }
    catch (ApplicationException ex)
    {
        throw new ApplicationException(ex.Message);
    }
    finally
    {
    }
}

After selected one item from dropdownlist, "Obout grid" will retrieve the data correctly as I want, but then totally freeze and not working (Even click anywhere above Obout grid is nothing happen). Below are the sample code for "Obout grid" inside an UpdatePanel.

<asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Conditional"> 
    <ContentTemplate>
        <obout:Grid id="grid1" runat="server" CallbackMode="true" AllowPageSizeSelection="false" Serialize="false" 
            AutoGenerateColumns="false" FolderStyle="~/App_Themes/grdstyles/style_12" AllowFiltering="true" 
            AllowAddingRecords="false">
            <Columns>
                <obout:Column ID="Column1" DataField="AAACode" Width="100" HeaderText="AAA Code" runat="server">
                    <FilterOptions>
                        <obout:FilterOption Type="NoFilter" />
                        <obout:FilterOption Type="Contains" />
                        <obout:FilterOption Type="DoesNotContain" />
                        <obout:FilterOption Type="StartsWith" />
                        <obout:FilterOption Type="EndsWith" />
                    </FilterOptions>
                </obout:Column>
    <ContentTemplate>
........
........
........
<Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlGroupCode"/>
    </Triggers>
</asp:UpdatePanel>

Any comment are really appreciate....help me.. :)

jimi
  • 5
  • 6

1 Answers1

0

I think you have to use the free Obout AJAX Page control at the place of the standard UpdatePanel control