467,168 Members | 1,011 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,168 developers. It's quick & easy.

Problems using AJAX Control Toolkit Dropdown Extender w/ Gridview

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
  • viewed: 9917
Share:
2 Replies
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
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.

Similar topics

1 post views Thread by William Youngman | last post: by
2 posts views Thread by =?Utf-8?B?U2VyZ2V5IFBvYmVyZXpvdnNraXk=?= | last post: by
2 posts views Thread by Mike | last post: by
3 posts views Thread by =?Utf-8?B?UnlhbiBTbWl0aA==?= | last post: by
8 posts views Thread by =?Utf-8?B?QXNhZg==?= | last post: by
2 posts views Thread by kai | last post: by
2 posts views Thread by John Q | last post: by
2 posts views Thread by =?Utf-8?B?UGF1bA==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.