AJAX :: Change The Style Of TargetControlID Of DropDownExtender?
May 27, 2010<br/>
<br/>
in my aspx page i have this code:
<br/>
<br/>
<asp:DropDownExtender DropArrowBackColor="White"
<br/>
<br/>
in my aspx page i have this code:
<br/>
<br/>
<asp:DropDownExtender DropArrowBackColor="White"
The header text in the tab panel is too small and I wanted to make it bigger. So I included a <span> within the <HeaderTemplate> tags and though the text is larger according to the style of the span it doesn't display properly because the height of the tab (not the panel but just the tab part that sticks above the panel) doesn't become any bigger and I don't see where I can modify this.
View 3 RepliesI need to change the mouse pointer style to "HAND" like looking thing when i hover my mouse over accordian control or rather an accordian pane.How can i do that?
View 2 RepliesThis is what I see when I click on arrow which is an image in DropArrowImageUrl - UI is weird. Changing image does not help. I am sure that it should be a common problem. Code is very simple:
<asp:Image ID="_targetImage" runat="server" ImageUrl="../Images/Actions.png" />
<ajaxToolkit:DropDownExtender ID="_dropDownExtender" runat="server" DynamicServicePath=""
Enabled="True" DropDownControlID="_panelItems" DropArrowImageUrl="../Images/DropArrow.png"
TargetControlID="_targetImage">
</ajaxToolkit:DropDownExtender>
I use DropDownExtenders everywhere in my project, but it bothers me that it's not visible all the time. It looks like an usual TextBox :-(
<script
type="text/javascript">
I have a label with a dropdownextender, and below it I have a gridview. When it drops down, it should go on top the gridview , but instead half of it is hidden because it goes behind the gridview. how can that be taken care of?
View 5 RepliesSo I got 2 updatepanels on my page. In one there is a Timer which updates for example a label. In the other one there is a dropdownextender. Everytime the timer ticks while the dropdown menu is displayed the menu disapears. I attached the sample code below....any insights on this? And yes, the dropdown and the label need to be in two seperate updatepanels....
[Code]....
Currently, when you click mouse on a control, you see all options. However, I need to be able to see all options when mouse is just over the control.
View 9 RepliesI would like to Post back an update panel after the drop down is hidden.
I found some javascript that will keep the panel open wile the user interacts with the CheckBoxList i have inside. Currently I am updating the panel when the function stops blocking the closing event. This is not firing every time. So i am wondering if there is a java script event i can catch to fire the post back after the drop down is hidden and if someone can provide a simple example of doing so. The code inside the event i got covered, binding to the event is ware i am lacking.
I need to perform actions (e.g. hide panels) when clicking on the dropdownextender arrow - before the dropdown panel is being displayed.
How should I perform this? should I use onclientpopulated?
Using cascading dropdown extender we have to define web method. In that web method does the parameters that we declare should match names like "knownCategoryValues","category" etc ? Suppose if we write "knownCategoryValues1" insteed of "knownCategoryValues" then why my webmethod is not called ?
And if i give "knownCategoryValues" then it is called ?For the First time i have seen parameters name matters in Method parameters list. But why in this case different naming causes problem ?
I am using the following code:
<ajaxToolkit:DropDownExtender ID="TextBox1_DropDownExtender" runat="server" DynamicServicePath=""
Enabled="True" DropDownControlID="panelItems" DropArrowImageUrl="~/Images/DropArrow.png"
DropArrowWidth='26' TargetControlID="Image1">
</ajaxToolkit:DropDownExtender>
However, it does not set the width of DropArrowImage correctly.
I found the following post http://ajaxcontroltoolkit.codeplex.com/workitem/24194 but I am not sure of where to find DropDownBehavior.js to implement proposed solution.
Is it possble somehow to set the widht of DropArrow?
I need to set the target control ID for a modal pop up.......
I have a gridview that has a link button when I click this button it should open the popup...
<Asp:gridview ID"grid" runat="server" DatasourceID="sql">
<columns>
<templatefield>
<itemtemplate>
<asp:LinkButton ID="lbtn" runat="server" Text="Show Pop up"></asp:LinkButton>
</Itemtemplate>
</Templatefield>
</columns>
</gridview>
<asp:Panel ID="pnl" runat="server">
My Content
</Panel>
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="lbtn" PopupControlID="pnl" BackgroundCssClass="modalBackground" DropShadow="true" />
But I am getting an error since the link button is inside an gridview
the dropdownextender works fine until I scroll down the page, see the following screenshots.
View 2 RepliesI have the code below to implement a dropdownlist with checkboxes. My problem is that every time i click a checkbox the dropdownlist closes and i need to reopen it to select more checkboxes. How do i make it so the dropdownlist dosn't close until i click off of it?
[code]....
I am trying to keep the drop down open till mouse out.
I have found a hand full of sample scripts that are all trying to do this. I did manage to keep the drop down open while the user clicks on the check boxes.
[Code]....
I would like to instead of just removing the event handler also trigger the "close" event for the drop down list on mouse out. Not the JS expert so i dont know ware to start.
[Code]....
C# code:
[Code]....
I wantto show up manually a ModalPopupextender without its TargetControlID assigned to anything.
Thus I dont need a button or linkbutton that triggers to show it up.
I put a hiddenfield and attached it to TargetControlID and I can call ModalPopup manually by its show() method.
so why should I have to assign TargetControlID ? I dont wantto use a useless hiddenfield to attach as its Target.is there any other Ajax Control Modal Window that no need a Target ?
I have a gridview showing list of data . When I select one of the row in the gridview, I would like to get panal (say Panel1) to be popup. I used the Ajax ModalPopupExtender but I don't know what should be the value in TargetControlID ?
View 4 Repliesi want to use a ComponentArt:ToolBarItem ID as TargetControlID in AjaxControlToolkit ModalPopupExtender.
my ComponentArt:ToolBarItem ID is "save" but when i write this (TargetControlID="save") this error apears:
The TargetControlID of 'ModalPopupExtender' is not valid. A control with ID 'save' could not be found.
I'm trying to use a ModalPopupExtender in a user control, so the TargetControl is on the previous (parent) page. In the PageLoad event of the user control, the following code finds the MPE and the button from the previous page, but I don't understand how to actually assign the button to the MPE as the TargetControlID.
[Code]....
i always get this error when ever i use DropdownExtender,Additional information:The Controls collection cannot be modified because the control contains code blocks
i.e. <% ... %>).this is my ASPX Code
[Code]...
modalpopupextender targetcontrolid firing second time. I dont know, It was working fine. After changing some code. It is working for second time.
[Code]....
I am not using any update panels in my page.
I'm firing the my ModalPopupExtender from a server side button click (bthAuth) and then need to hide that button after my processing is complete. When btnAuth.Visible = False is called it displays the ModalPopupExtender. If I remove this piece of code the window goes away like it should.
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnAuth" BackgroundCssClass="modalBackground" PopupControlID="ModalPanel"> </cc1:ModalPopupExtender>
btnAuth_Click():
bunch of stuff here()
btnAuth.Visible = False -- This is what is causing the ModalPopupExtender to stay displayed.
On Page Load:
btnAuth.OnClientClick = String.Format("fnClickUpdate('{0}','{1}')", btnAuth.UniqueID, "")
Function:
<script type="text/javascript">
function fnClickUpdate(sender, e)
{
__doPostBack(sender,e);
}
</script>
I'm trying to use the
ajaxtoolkit dynamic poplulate..
+ $exception {"The TargetControlID of 'DynamicPopulateFileDownloadUI' is not valid. A control with ID 'PanelDownLoadUI' could not be found."} System.Exception {System.InvalidOperationException}
[Code]....