473,408 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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
2 10253
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: William Youngman | last post by:
I have a gridview displaying data and would like to use the AJAX dropdown extender so that when the user clicks on a record a dropdown menu will display providing the user with a menu of selections...
2
by: =?Utf-8?B?U2VyZ2V5IFBvYmVyZXpvdnNraXk=?= | last post by:
Hi, I am a newbie in AJAX technologies. For my application I need a combination of ListSearchExtender and FilteredTextBox control. I have downloaded the toolkit with source code, and seem to...
2
by: Mike | last post by:
Why when I create Calender Extender control on my web page from the Ajax Toolkit, why does it create 14 references of the AjaxControlTookit.resources.dll in my project ontop of the reference to the...
3
by: =?Utf-8?B?UnlhbiBTbWl0aA==?= | last post by:
I have a form that has a ModalPopupExtender on it. I have un updatepanel on a panel control that is displayed when an Button (outside of the update panel) is clicked. What I am trying to do is...
8
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hi, 1. Do I need to install "AjaxControlExtender.vsi" and to use "AJAX Control Toolkit Web Site" template when I create a new web site or I can just use "ASP.NET Web Site" and to add "Script...
2
by: kai | last post by:
Hi, I installed VS 2008 Professional Final version. I followed Joe Stagner video try to install Ajax Control Toolkit 3.5 into Toolbox, then I get an error message: "The following assemblies...
0
by: DC | last post by:
Hi, when I use the DropDown / DropDownExtender to offer some Actions per row in a GridView, the produced HTML per row easily exceeds 2000 bytes (vs. about 200 bytes for a normal DropDown). ...
2
by: John Q | last post by:
Hello, Does anyone know any working Multiselect Dropdownlist that uses Checkboxes? Environment is ASP.NET and language C#. I would be very appreciated if someone would give some links to...
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am using a list search extender and have the control it is assigned to as a control in a template column in a gridview. Anyhow for some reason the type to search section that normally appears...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.