473,588 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="lblProposal NameIdNumber" runat="server" Width="220" CssClass="menul abel">

<%# DataBinder.Eval (Container.Data Item, "ProposalNameId Number")%>

</asp:Label>

<cc1:DropDownEx tender ID="ddeProposal Options" runat="server" TargetControlID ="lblProposalNa meIdNumber" DropDownControl ID="DropPanel" >

</cc1:DropDownExt ender>

</ItemTemplate>

Tried setting 'CacheDynamicRe sults' and 'EnableViewStat e' 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 10285
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="lblProposal NameIdNumber" runat="server" Width="220"
CssClass="menul abel">/

/<%# DataBinder.Eval (Container.Data Item, "ProposalNameId Number")%>/

/</asp:Label>/

/<cc1:DropDownEx tender ID="ddeProposal Options" runat="server"
TargetControlID ="lblProposalNa meIdNumber" DropDownControl ID="DropPanel" >/

/</cc1:DropDownExt ender>/

/</ItemTemplate>/

Tried setting 'CacheDynamicRe sults' and 'EnableViewStat e' 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 <ItemTemplateta g.

"bruce barker" <no****@nospam. comwrote in message
news:um******** ******@TK2MSFTN GP05.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="lblProposal NameIdNumber" runat="server" Width="220"
CssClass="menu label">/

/<%# DataBinder.Eval (Container.Data Item, "ProposalNameId Number")%>/

/</asp:Label>/

/<cc1:DropDownEx tender ID="ddeProposal Options" runat="server"
TargetControlI D="lblProposalN ameIdNumber" DropDownControl ID="DropPanel" >/

/</cc1:DropDownExt ender>/

/</ItemTemplate>/

Tried setting 'CacheDynamicRe sults' and 'EnableViewStat e' 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
9680
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 to choose from (yes much like the SharePoint 2007 dropdown menu). I'm having problems dynamically binding the 'TargetControlID' property of the extender control to the record label in the gridview. What I'm doing is - The label's text is the...
2
1448
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 have an understanding on where to modify the controls in order to achieve what I need. I do not want to modify the toolkit source directly as those changes will be overwritten when the next update/version of AJAX will come out.
2
1530
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 AjaxControlToolKit.dll and AjaxControlToolkit.pdb files? How can I have only one reference to that dll when i create a ajax control on my web form?
3
2489
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 fire the updatepanel with a command like "show_first" so that I can display appropriate informaiton in the updatepanel when the Button is clicked. I need to access the Button's click event Server Side so i can show the appropriate information. I...
8
5778
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 Manager" control and have the same functionality. 2. Why when I try to drag for example "ConfirmButtonExtender" to the Designer it's refuses to accept it and I can only drag controls to the Source into the <form></formsection?
2
8267
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 are installed SDK asssemblies, but could not be shown in customize toolbox dialog because they are missing one or more components, Please make sure that all necessary libraries are available: Microsoft.ReportingServices.Interfaces.dll"
0
2378
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). Does someone know a way to cut that down or an alternative control (Sharepoing style) that would solve this with less HTML? TIA for any hint.
2
3640
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 working solution. Cheers,
2
2809
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 right above the control is not appearing right above the control. Although always lined up vertically it randomly appears in different locations outside the gridview on the web page. Any suggestions, thanks -- Paul G Software engineer.
0
8228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8357
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8223
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5729
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2372
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1196
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.