By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,759 Members | 959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,759 IT Pros & Developers. It's quick & easy.

Problems using AJAX Control Toolkit Dropdown Extender w/ Gridview

P: n/a
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a given column. We are also using another dropdown menu that the user can use to select data using another quesry using the SelectedIndex change method. Upon initial page load everything works fine and the user is presented with a SharePoint type menu. The problem arises when the user selects another value from the filter dropdown menu - the gridview is successfully rebound with the new data however the SharePoint dropdown extender is not being recreated.

Upon viewing the source of the html page we are noticing that the extender is still present but it still has the data from the previous query bound to it and thus can not be attached to the new cells.

Code Snippets-

To build dropdown extender in Gridview

<ItemTemplate>
<asp:Label id="lblProposalNameIdNumber" runat="server" Width="220" CssClass="menulabel">

<%# DataBinder.Eval(Container.DataItem, "ProposalNameIdNumber")%>

</asp:Label>

<cc1:DropDownExtender ID="ddeProposalOptions" runat="server" TargetControlID="lblProposalNameIdNumber" DropDownControlID="DropPanel">

</cc1:DropDownExtender>

</ItemTemplate>

Tried setting 'CacheDynamicResults' and 'EnableViewState' both to false but that didn't help. The problem is that the project manager and business unit really want this SharePoint 2007 type menu for the user interface so we have to figure something out.

Any help/suggestions/tips/tricks will be greatly appreciated.

TIA,

Bill Youngman

Mar 19 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
move DropPanel inside the the item template.

-- bruce (sqlwork.com)

William Youngman wrote:
We are developing an application that presents data to the user in a
gridview and we are using the dropdown extender to give the user a
SharePoint 2007 type dropdown menu attached to the cells of a given
column. We are also using another dropdown menu that the user can use to
select data using another quesry using the SelectedIndex
change method. Upon initial page load everything works fine and the user
is presented with a SharePoint type menu. The problem arises when the
user selects another value from the filter dropdown menu - the gridview
is successfully rebound with the new data however the SharePoint
dropdown extender is not being recreated.

Upon viewing the source of the html page we are noticing that the
extender is still present but it still has the data from the previous
query bound to it and thus can not be attached to the new cells.

Code Snippets-

To build dropdown extender in Gridview

/<ItemTemplate>/

/<asp:Label id="lblProposalNameIdNumber" runat="server" Width="220"
CssClass="menulabel">/

/<%# DataBinder.Eval(Container.DataItem, "ProposalNameIdNumber")%>/

/</asp:Label>/

/<cc1:DropDownExtender ID="ddeProposalOptions" runat="server"
TargetControlID="lblProposalNameIdNumber" DropDownControlID="DropPanel">/

/</cc1:DropDownExtender>/

/</ItemTemplate>/

Tried setting 'CacheDynamicResults' and 'EnableViewState' both to false
but that didn't help. The problem is that the project manager and
business unit _really_ want this SharePoint 2007 type menu for the user
interface so we have to figure something out.

Any help/suggestions/tips/tricks will be greatly appreciated.

TIA,

Bill Youngman
Mar 19 '07 #2

P: n/a
I just double checked the code and it is inside of the <ItemTemplatetag.

"bruce barker" <no****@nospam.comwrote in message
news:um**************@TK2MSFTNGP05.phx.gbl...
move DropPanel inside the the item template.

-- bruce (sqlwork.com)

William Youngman wrote:
>We are developing an application that presents data to the user in a
gridview and we are using the dropdown extender to give the user a
SharePoint 2007 type dropdown menu attached to the cells of a given
column. We are also using another dropdown menu that the user can use to
select data using another quesry using the SelectedIndex change method.
Upon initial page load everything works fine and the user is presented
with a SharePoint type menu. The problem arises when the user selects
another value from the filter dropdown menu - the gridview is
successfully rebound with the new data however the SharePoint dropdown
extender is not being recreated.
Upon viewing the source of the html page we are noticing that the
extender is still present but it still has the data from the previous
query bound to it and thus can not be attached to the new cells.
Code Snippets-
To build dropdown extender in Gridview
/<ItemTemplate>/

/<asp:Label id="lblProposalNameIdNumber" runat="server" Width="220"
CssClass="menulabel">/

/<%# DataBinder.Eval(Container.DataItem, "ProposalNameIdNumber")%>/

/</asp:Label>/

/<cc1:DropDownExtender ID="ddeProposalOptions" runat="server"
TargetControlID="lblProposalNameIdNumber" DropDownControlID="DropPanel">/

/</cc1:DropDownExtender>/

/</ItemTemplate>/

Tried setting 'CacheDynamicResults' and 'EnableViewState' both to false
but that didn't help. The problem is that the project manager and
business unit _really_ want this SharePoint 2007 type menu for the user
interface so we have to figure something out.

Any help/suggestions/tips/tricks will be greatly appreciated.

TIA,

Bill Youngman

Mar 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.