Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all 4356 articles
Browse latest View live

Commented Unassigned: Sys Undefined [27938]

$
0
0
I gotten one website that I downloaded to work with the autocomplete extender. I then created a new data scaffolding website using an ADO entity model. I have created a custom list form, which was generated by the data scaffolding, and am trying to put an autocomplete extender on it. I get a sys undefined error in internet explorer. I go into the debugger and see the error.

Sys.Application.add_init(function() {
$create(Sys.Extended.UI.AutoCompleteBehavior, {"completionSetCount":100,"delimiterCharacters":"","enableCaching":false,"id":"txtName_AutoCompleteExtender","minimumPrefixLength":2,"serviceMethod":"GetDevelopments","servicePath":"/SewerCleaningHeaders/List.aspx","useContextKey":true}, null, null, $get("ContentPlaceHolder1_txtName"));
});

sys undefined.

I downloaded the the 15.1.3 version of ajax control tookit. It has done away with toolkit script manager and replaced it with scriptmanager. Which is what I needed because the page generated by the datascaffolding already has a script manager in the site master.

The code for the site master is as follows:

<%@ Master Language="VB" CodeFile="Site.master.vb" Inherits="Site" %>

<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>


<!DOCTYPE html>

<html lang="en">
<head runat="server">
<meta charset="utf-8" />
<title>Dynamic Data Site</title>
<link href="~/Site.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>

<h1 class="DDMainHeader">Dynamic Data Site</h1>
<div class="DDNavigation">
<a runat="server" href="~/"><img alt="Back to home page" runat="server" src="DynamicData/Content/Images/back.gif" />Back to home page</a>
</div>

<form id="form1" runat="server">
<div>
<%-- TODO: Enable partial rendering by setting the EnablePartialRendering attribute to "true" to provide a smoother browsing experience.
Leaving partial rendering disabled will provide a better debugging experience while the application is in development. --%>

<asp:ScriptManager id=ToolKitScriptManager1 runat="server" EnablePartialRendering="False" >
<Scripts>
<asp:ScriptReference Path="~/Scripts/" Name="jquery" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" />
</Scripts>
</asp:ScriptManager>

the code in the custom form that I am only modifying is as follows ( with autocomplete extender on bottom)

<%@ Page Language="VB" MasterPageFile="~/Site.master" CodeFile="List.aspx.vb" Inherits="List" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="~/DynamicData/Content/GridViewPager.ascx" tagname="GridViewPager" tagprefix="asp" %>

<asp:Content ID="headContent" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true">
<DataControls>
<asp:DataControlReference ControlID="GridView1" />
</DataControls>
</asp:DynamicDataManager>




<h2 class="DDSubHeader"><%= table.DisplayName%></h2>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div class="DD">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
HeaderText="List of validation errors" CssClass="DDValidator" />
<asp:DynamicValidator runat="server" ID="GridViewValidator" ControlToValidate="GridView1" Display="None" CssClass="DDValidator" />

<asp:QueryableFilterRepeater runat="server" ID="FilterRepeater">
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("DisplayName") %>' OnPreRender="Label_PreRender" />
<asp:DynamicFilter runat="server" ID="DynamicFilter" OnFilterChanged="DynamicFilter_FilterChanged" /><br />
</ItemTemplate>
</asp:QueryableFilterRepeater>
<br />
</div>

<asp:EntityDataSource ID="GridDataSource" runat="server" EnableDelete="true" />
<asp:Button ID="Button1" runat="server" Text="Search" />
<br />
<asp:GridView ID="GridView1" runat="server" DataSourceID="GridDataSource" EnablePersistedSelection="true"
AllowPaging="True" AllowSorting="True" CssClass="DDGridView"
RowStyle-CssClass="td" HeaderStyle-CssClass="th" CellPadding="6">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:DynamicHyperLink runat="server" Action="Edit" Text="Edit"
/>&nbsp;<asp:LinkButton runat="server" CommandName="Delete" Text="Delete"
OnClientClick='return confirm("Are you sure you want to delete this item?");'
/>&nbsp;<asp:DynamicHyperLink runat="server" Text="Details" />
</ItemTemplate>
</asp:TemplateField>
<asp:HyperLinkField Text="Add" DataNavigateUrlFormatString="~/SewerCleaningHeaders/Insert.aspx" />
</Columns>

<PagerStyle CssClass="DDFooter"/>
<PagerTemplate>
<asp:GridViewPager runat="server" />
</PagerTemplate>
<EmptyDataTemplate>
There are currently no items in this table.
</EmptyDataTemplate>
</asp:GridView>

<div class="DDBottomHyperLink">
<asp:DynamicHyperLink ID="InsertHyperLink" runat="server" NavigateUrl=<%# table.GetActionPath("videolist", GetDataItem())%> Action="videolist"><img runat="server" src="~/DynamicData/Content/Images/plus.gif" />Insert new item</asp:DynamicHyperLink>
</div>


</ContentTemplate>
</asp:UpdatePanel>



<asp:Label runat="server" ID="lblReferrerName" Text="Address: "></asp:Label>
<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
<asp:Label runat="server" ID="Label1" Text=" Select address and press button "></asp:Label>
<asp:Button ID="Button2" runat="server" Text="Button" Width="67px" />


<asp:AutoCompleteExtender ID="txtName_AutoCompleteExtender" BehaviorID="txtName_AutoCompleteExtender" runat="server"
DelimiterCharacters="" Enabled="True"
TargetControlID="txtName" MinimumPrefixLength="2" CompletionInterval="1000"
EnableCaching="false" FirstRowSelected="false" CompletionSetCount= "100" ServiceMethod="GetDevelopments"
UseContextKey="True">
</asp:AutoCompleteExtender>

<script src="~/Scripts/MicrosoftAjaxToolkit/MicrosoftAjax.js" type="text/javascript"></script>
<script src="~/Scripts/MicrosoftAjaxToolkit/Debug/AutoComplete.debug.js" type="text/javascript"></script>



</asp:Content>

I've never actually made one of my exsisting website work with the ajax am I missing something? I've worked on this for days and have tried many different things like copying the ajax control toolkit scripts, .js files to my website's scripts directory. Is that the wrong way to do it. They weren't there before. Tutorials that I've watched haven't even mentioned the script files but I saw it as one of the solutions.
Comments: No, I do not see any attachments. This size meets the upload limitation. Have you had any errors during upload?

Closed Issue: "PopupDiv" visible when you set HtmlEditorExtender Disable [27178]

$
0
0
Issue occurs when you set "Enable = False" on HtmlEditorExtender.
Tested in IE8 with and without Compability View.
See the attached file.

Code:

<div>
<asp:TextBox ID="txtObs" runat="server" TextMode="MultiLine" Width="100%" Height="70px"></asp:TextBox>
<ajax:HtmlEditorExtender ID="txtObsHtmlEditorExtender" runat="server"
Enabled="false" ClientIDMode="Static" TargetControlID="txtObs">
</ajax:HtmlEditorExtender>
</div>
Comments: alexcheveau, thank you for sharing your experience!

Commented Issue: CalendarExtender - Wrong Date/Time Bug? [27045]

$
0
0
I am having a problem with the AjaxControlToolkit CalendarExtender. Let me explain my page setup. I have an ASP TextBox on the page that is supposed to hold the End Time of an event. The time must be in the format "MM/dd/yyyy hh:mm:ss tt" (i.e. 11/06/2011 11:59:59 PM).

Here is what the page layout looks like:

A reference to the AjaxControlToolkit at the top of the page.

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

The relevant body markup of the page:

<asp:Label ID="_lblEventEndTime" runat="server" Text="End Time:" />
<asp:TextBox ID="_txtEventEndTime" runat="server" />
<asp:ImageButton ID="_imgbtnEventEndTime" runat="server" ImageUrl="~/Images/Calendar.png"/>
<ajax:CalendarExtender ID="_cldrextEndDate" runat="server" PopupButtonID="_imgbtnEventEndTime" TargetControlID="_txtEventEndTime" Format="MM/dd/yyyy hh:mm:ss tt" />

And the C# code behind:

protected void Page_Load(object sender, EventArgs e)
{
DateTime nov6 = new DateTime(2011, 11, 6, 23, 59, 59);
_txtEventEndTime.Text = nov6.ToString("MM/dd/yyyy hh:mm:ss tt");
}

Now for some reason I have only been able to reproduce this bug on November 6, 2011. But as you can see in the on Page_Load I am setting the time to 23:59:59 which is 11:59:59 PM. However when the page comes back the textbox says "11/06/2011 10:59:59 PM" instead of "11/06/2011 11:59:59 PM"

Now here is where things get weird. If I remove the CalendarExtender from the page everything works fine and the page loads as expected with the correct value in the TextBox. What is also weird is if I change the FormatString of the CalendarExtender to

Format="MMMM/dd/yyyy hh:mm:ss tt"

the page loads with the proper value - the only problem here is now when I actually click my Calendar ImageButton and use the CalendarExtender it will place the DateTime into the TextBox in the format "November/06/2011 12:00:00 AM" (but this is expected).

Now if I change the DateTime in the code behind to

DateTime nov6 = new DateTime(2011, 11, 6, 22, 59, 59);

The Textbox will come back as "11/06/2011 09:59:59 PM" but it should read "11/06/2011 10:59:59 PM".

What I am perplexed about is why the CalendarExtender is interfering with my TextBox Control. Its almost as if the calendar extender things that hours go from 1-24 instead of 0-23. Is there some sort of bug with the CalendarExtender that I am not aware of?

P.S. - All of these controls are on a test page so there is nothing else interfering with them.
Comments: Would you provide a sample project and specify your regional settings?

Closed Issue: Enabling a disabled tab in script does not enable its child controls correctly [12648]

$
0
0
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=295903

Repro Steps:
1. Create a new Web Application Project
2. Modify your web.config as needed for SQL Server Authentication.
3. Add a Control Toolkit TabContainer with three TabPanels.
4. Add a CreateUserWizard control to the second TabPanel.
5. Add the following javascript functions to enable the tabs:
function EnableTab(tabNumber)
{
$find('<%=TabContainer1.ClientID%>').set_activeTabIndex(tabNumber);
}
function ToggleTab(enable, tabNumber)
{
$find('<%=TabContainer1.ClientID%>').get_tabs()[tabNumber].set_enabled(enable);
}
6. Add the following line to the script pageLoad function:
ToggleTab(false, 1);
7. Add an a href="#' tag to your page that has onclick="EnableTab(1)
Note that pageLoad disables tab 1 and clicking the button enables it
8. Run the app
9. Click the link button created in step 7.
10. Enter a new user's info in the fields. For password and confirm password fields, enter "dd" or another invalid value that will only be caught by the server side validators.
11. Press Create User button.

Actual Results:
you will observe that the page is redrawn with all the input fields disabled.

Expected Results:
the input fields should not be disabled.

Closed Issue: UpdatePanel in ModalPopup has incorrect postback behavior [13112]

$
0
0
Problem:
when an update panel within a modal popup does an async postback is passes the following if statement located in the Page_Load:

if (!IsPostBack && !IsCallback && !ScriptManager1.IsInAsyncPostBack)
{
}

IsPostBack = false
IsCallBack = false
ScriptManager1.IsInAsyncPostBack = false

Expected Results:
The code within the 'if' statement should only execute on initial page load

Misc:

The modal popup is triggered server side using 'ModalPopupExtender.Show();'

Source:

<asp:Panel ID="Panel" runat="server" CssClass="ModalPopup">
<asp:Panel ID="DragHandlePanel" runat="server" CssClass="modalPopupDragHandle">
Panel Header Text
</asp:Panel>
<br />
<div>
<asp:UpdatePanel ID="UpdatePanel" runat="server">
<ContentTemplate>
<asp:Panel ID="SelectionPanel" runat="server">
<asp:GridView ID="SelectionGridView" runat="server" AutoGenerateColumns="False"
ShowHeader="true" OnRowCommand="SelectionGridView_RowCommand" OnRowDataBound="SelectionGridView_RowDataBound"
DataKeyNames="Id">
<Columns>
<asp:CommandField ButtonType="Image" SelectImageUrl="~/images/smoothicons/icons/arrow_turn_right_2.png"
ShowCancelButton="False" ShowSelectButton="True" />
<asp:BoundField HeaderText="Name" ShowHeader="true" />
<asp:BoundField HeaderText="Title" ShowHeader="true" />
<asp:BoundField HeaderText="Level" ShowHeader="true" />
<asp:BoundField HeaderText="Scope" ShowHeader="true" />
</Columns>
<RowStyle CssClass="gridRowStyle" />
<SelectedRowStyle BackColor="#F2CE00" />
<AlternatingRowStyle CssClass="gridAlternatingRowStyle" />
<HeaderStyle CssClass="gridHeaderStyle" />
</asp:GridView>
<br />
<asp:Button ID="addButton" runat="server" OnClick="addButton_Click"
Text="Add" /></asp:Panel>
<asp:Panel ID="addPanel" runat="server" Visible="False">
<table>
<tr>
<td>
<asp:Label ID="firstNameTextLabel" runat="server" Text="First Name"></asp:Label></td>
<td>
<asp:TextBox ID="firstNameTextBox" runat="server" ValidationGroup="addValidationGroup"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="firstNameRequiredFieldValidator" runat="server" ControlToValidate="firstNameTextBox"
ErrorMessage="* Required" ValidationGroup="addValidationGroup" EnableClientScript="False"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
<asp:Label ID="lastNameTextLabel" runat="server" Text="Last Name"></asp:Label></td>
<td>
<asp:TextBox ID="lastNameTextBox" runat="server" ValidationGroup="addValidationGroup"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="lastNameRequiredFieldValidator" runat="server" ControlToValidate="lastNameTextBox"
ErrorMessage="* Required" ValidationGroup="addValidationGroup" EnableClientScript="False"></asp:RequiredFieldValidator></td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<br />
<asp:Button ID="OkButton" runat="server" Text="Ok" ValidationGroup="addValidationGroup"
OnCommand="OkButton_Command" />
<asp:Button ID="CancelButton" runat="server" Text="Cancel" CausesValidation="False"
OnClick="CancelButton_Click" />
</div>
</asp:Panel>
<aspajax:ModalPopupExtender ID="ModalPopupExtender" runat="server" TargetControlID="PopupHiddenButton"
PopupControlID="Panel" DropShadow="true" BackgroundCssClass="modalBackground"
PopupDragHandleControlID="DragHandlePanel" />
<asp:Button ID="PopupHiddenButton" runat="server" CssClass="hiddenButton" />

Closed Issue: Ajax Control Toolkit version - 3.5.51116.0 - ListSearchExtender causes a postback when loss of focus even no option was changed. [27114]

$
0
0
Hi,

I have two dropdown controls on my user contorl and two ListSearchExtenders are being used for the dropdowns. The user control is in an update panel. And the user control is being used in myPage.aspx page. By the time the myPage.aspx loads one of the dropdown list controls gets focus. When clicked on any where on the page to make its focus loss it is doing a postback. I.e the postabck happens even when no option was selected.

We do not want this unnecessary postback back to happen. Below is the code I have on my user control. When I commented the ListSearchExtenders it doesn't do a postback when dropdowns lost the focus. But we still want to keep the ListSearchExtender functionality.

<%-- <cc1:ListSearchExtender ID="LSE" runat="server" TargetControlID="ClientName" PromptText="Type to search"
PromptCssClass="ListSearchExtenderPrompt" PromptPosition="Top"/>--%>

<%--
<cc1:ListSearchExtender ID="ListSearchExtender3" runat="server" TargetControlID="LabName"
PromptText="Type to search" PromptCssClass="ListSearchExtenderPrompt" PromptPosition="Top" />--%>


<asp:DropDownList ID="LabName" TabIndex="1" runat="server" Width="400px" AutoPostBack="true" />

<asp:DropDownList ID="ClientName" TabIndex="2" AutoPostBack="True" runat="server" Width="400px"
Enabled="false"/>

The .NET version we are using is 3.5 and we are using the latest November release Ajax Control Toolkit version , 3.5.51116.0. I am not sure if there is a fix for this issue in the latest Ajax Control Toolkit (may be 4.1) but I can't use this version because we are still using .NET 3.5. So upgrading is ruled out.

I am writing this to see if there is a workaround or a fix have already been provided. Can you please point me to right direction.

Hope my explanation is understandable. If you have any questions or need further info please email me.

Email: movvap@yahoo.com

Thanks in advance,

Dev Movva

Closed Issue: UpdatePanel not known element [27122]

$
0
0
Hi Guys
Today I installed the AjaxToolKit to a website (not web application) and immediately VS2010 is giving an error: Element 'UpdatePanel' is not a known element. Haven't noticed any other controls not working as yet

Hours laters running through forums I have done several things:
I have emptied the ReflectedSchemas folder
Unistalled and reinstalled AjaxToolKit
Added Register code to UserControl
Re-Added reference to System.Web.Extensions plus a multitude of other things

I am using DotNetNuke so cannot build application.
Framework 4.0

It was working before I installed and those UpdatePanels in place before are fine.

Any clues cause im stumped

Closed Issue: Popup menu doesn't close while using HoverMenuExtender [14742]

$
0
0
I have used HoverMenuExtender to display the shopping cart in the popup menu. The popup menu has an iframe the src to which is a page which uses gridview to display the cart. Attached is the screenshot which shows the popup menu which opens with onMouseOver for shopping cart link. The menu closes Onmouseout for shopping cart link or the popup menu and it works just fine in FF but with IE , when I click on the next button to bring next set of records in the gridview the popup menu stays open and doesn't close at all. Is there a way to close it.

Here is the set of code

Shopping cart link
<asp:Panel ID="pnlOpenInfo" runat="server" style="display:inline;">
<cc1:GHyperlink ID="hlCart" runat="server" ToolTip="Shopping Cart" CssClass="Orange2White10Links" IsBuildURL="true" NavigateUrl="Store/Cart.aspx">Shopping Cart</cc1:GHyperlink>
</asp:Panel>

HoverMenuExtender:
<cc1:HoverMenuExtender ID="hme2" runat="Server"
TargetControlID="pnlOpeninfo"
PopupControlID="PopupMenu"
PopupPosition="bottom"
OffsetX="-120"
OffsetY="0"
PopDelay="50" />

PopupControl:

<asp:Panel ID="PopupMenu" runat="server" Width="252px" Height="500px" style="-moz-opacity:1.0;filter:alpha(opacity=100); display: none;">
<iframe runat="server" id="frmCart" frameBorder="0" scrolling="no" ondrop="return false;" width="260" height="250" style="margin:0px 0px 0px 0px;" allowtransparency=""></iframe>
</asp:Panel>

iframe's src is CartSummary.aspx which have the gridview for cart summary.

Any help is appreciated.

Thanks,

Reemal

Closed Issue: hover menu doesn't close when child modal popup is cancelled [27124]

$
0
0
I have modal popup extenders attatched to some of the menu items in a hover menu.

When the cancel buttons of the modal popup extenders are clicked, the parent hover menu doesn't close, not even on mouse out. (Not sure if the same happens for any other buttons, since they cause redirects)

This happens in Internet Explorer, but not in Firefox or Chrome, where everything works as intended.

Closed Issue: sys.InvalidOperationException: Component was not found [27129]

$
0
0
Hello,

In a page i have a two tab container, Firstcontainer cosist of two tab panel and second container have 11 tab panel. The page is main application root page and lots of functionality involved in it in even there are some client side call for _dopostback or .click.
It throws "sys.InvalidOperationException: Component was not found" error whenever we try to save details using simple asp:button even, this error happen sometime not mostly.

Any help on this will be appreciable.

Closed Issue: Ability to use the jquery UI css [27132]

$
0
0
it's possible to use css jquery UI with AJAX controls?

Closed Issue: Ajax TK comboboxes doesnt render corretly [27141]

$
0
0
Hi,

Comboboxes doesn´t render correctly if they are in a tabcointainer and the tabcontainer is in an accordion. I got helped with my firt issue when the combobox was in a nested tabcointainer. Then i hade to ad a script to activate the tabpanel. But now i have puted the tab container in a accordion and it doesn´t work anymore. They guy from microsoft told me to report it here. Attach the code.

Kind regards Olle

Closed Issue: AJAX RoundedCornersExtender not working when CSS Gradient applied to TargetControl [27162]

$
0
0
I used the following CSS entry to apply a green gradient to a button:

filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77d42a', endColorstr='#5cb811');

When applied, the buttons will only render square, even if the CSS class is set to round the corners aswell.

AJAX version affected is: 4.1.51116.0

Removing this line from the CSS class resolves the rounded corners issue but leaves a flat colour on my shiny new button :(

Interestingly, this does not affect the BaloonPopupExtender.

Commented Issue: ajax html editor extender is not rendering in Azure [27334]

$
0
0
Hi,
i hosted the asp.net application in windows azure the controls are not rendering correctly, there is not image in tool button, but its working in local solution, do i have to add setting in IIS 7.0 ?
Comments: Do you see any errors in a browser console?

Closed Issue: How to clean up the file object inside of a AsyncFileUpload ? [24977]

$
0
0
I'm using a AsyncFileUpload to upload files. It works fine.
But, when I use a control that Post Back the page, it's uploading the file again.

How can I avoid this ?

Thanks
Comments: jspraul, thank you for sharing your experience!

Commented Issue: Some characters( e. g &), rendering issue with Ajax Tab Conatiner in ASP.NET [27335]

$
0
0
Hi,

Can any one help me.I had made a user Control say Test.ascx, i had a gridview inside two panels,i had used a Label control inside ItemTemplate Field,there when i pouplate the gridview data from my cs code,now if that label control had some data which had (& symbol e.g A&B),my page display nothing,no data,no error etc.

I had used this user control inside a page say Test.aspx inside ajax tab container,i don't understand whether its issue with ajax tab container or something else.

here is my code of User Control

<asp:Panel ID="section7" runat="server" SkinID="1">
<asp:Panel ID="Panel2" runat="server" GroupingText="Capital" SkinID="2">
<div style="position: relative;">
<asp:GridView ID="gv1" runat="server" AutoGenerateColumns="False" OnRowDeleting="gv1_RowDeleting"
OnRowEditing="gv1_RowEditing">
<Columns>
<asp:TemplateField HeaderText="Item" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<%--<div id="c_divSubComponent" runat="Server"><%# DataBinder.Eval(Container.DataItem,"SubComponent")%></div>--%> <%--<asp:Label ID="c_lblSubComponent" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"SubComponent")%>'></asp:Label>--%>
<asp:Literal ID="c_ltlSubComponent" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"SubComponent")%>' Mode="Encode"> </asp:Literal>

</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</asp:Panel>
</asp:Panel>

And this is the code for my Page Test.aspx

<ajaxToolkit:TabContainer ID="TabContainer1" runat="server" SkinID="CustomStyle" ActiveTabIndex="0" >
<ajaxToolkit:TabPanel ID="FirstTab" runat="server" HeaderText="My First Tab">
<ContentTemplate>
<uc4:Test ID="uTest" runat="server" />
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel ID="secondTab" runat="server" HeaderText="My Second Tab">
<ContentTemplate>
Tab-2
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>

Comments: Would you provide a complete sample project?

Closed Issue: BUG: AjaxFileUpload inserted inside a ModalPopupExtender in TabContainer : AJAX Control Toolkit is May 2012 [27152]

$
0
0
The AjaxFileUpload inserted inside a ModalPopupExtender, all inside a TabContainer. After selecting the file does not start loading the file. Problem that arises when not using the TabContainer.

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<script type="text/javascript">

function UploadCompleteClient(sender, args) {
try
{

alert("Success: UploadCompleteClient");
}
catch(e)
{
alert(e.message);
}
}

</script>

<ajaxToolkit:TabContainer ID="TabContainer" runat="server" Width="100%">
<ajaxToolkit:TabPanel ID="TabPanel" HeaderText="TabPanel UploadPopUp" runat="server">
<ContentTemplate>
<asp:Button ID="imgOpenPnlUpload" Text="Upload" ToolTip="Open ModalPopUp" runat="server" />
<asp:Panel ID="PnlUpload" Height="600px" Width="900px" runat="server" Style="display: none;background-color:Black;">
<table border="0" cellpadding="2" cellspacing="0" style="width: 99%; border-collapse: collapse;">
<tbody>
<tr>
<td align="left">
<asp:Label ID="Label2" runat="server" Text="Upload modal pop up" CssClass="titoloPagina" />
</td>
<td align="right">
<asp:Button ID="imgClosePnlUpload" Text="Close" ToolTip="Close ModalPopUp" runat="server" />
</td>
</tr>
<tr>
<td align="left" colspan="2">
<ajaxToolkit:AjaxFileUpload ID="ajaxUpload" OnUploadComplete="ajaxUpload_OnUploadComplete"
OnClientUploadComplete="UploadCompleteClient" runat="server" />
</td>
</tr>
</tbody>
</table>
</asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderPnlUpload" runat="server" BehaviorID="mdlPopupPnlUpload"
TargetControlID="imgOpenPnlUpload" PopupControlID="PnlUpload" BackgroundCssClass="modalBackground"
CancelControlID="imgClosePnlUpload" />
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
</asp:Content>

///CodeBehide

public void ajaxUpload_OnUploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
{
try
{
//ajaxUpload.SaveAs(e.FileName);

}
catch (Exception ex)
{

}
}

Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Closed Issue: HtmlEditorControl is not Compatible with TabContainer [26977]

$
0
0
There seems to be a bug when displayed in TabContainers. When not in a TabConainer, the editor looks correct. When within a TabContainer I get the original TextBox displayed and either the HTMLEditor is 1px wide and as long as the page, or right below the TextBox.
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Closed Issue: AccordionPane is NOT DataBound in ItemDataBound event [27342]

$
0
0
Unlike other databound controls, which allow code similar to the following:

var control = e.Item.FindControl("controlName");
// manipulate attributes, or add triggers to control

the Accordion ItemDataBound event returns null for these controls. The debugger reveals that the templates have not yet been instantiated by the time this event is fired.

This issue, and the issue regarding the lack of a SelectedIndexChanged event have required me to use the PreRender event as a catch-all for anything requiring initialization, regardless of when those initializations really should occur.

In short, I feel that Accordion is quite under-developed. While it is possible to make it do what I want, it has been very non-intuitive, and does not make for clean code.
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Closed Issue: Accordion control adds an un-needed accordion extender [25093]

$
0
0
Hi,

After adding an accordion control with accordion-panes to a form
and changing the HeaderCssClass of a child accordion-pane OR
after changing the HeaderCssClass of the accordion control I get
a new -

<ajaxToolkit:AccordionExtender runat="server" AutoSize="Fill"
HeaderCssClass="accordionHeader" HeaderSelectedCssClass="cssSelectedHeader"
Enabled="True" TargetControlID="Accordion1" ID="Accordion1_AccordionExtender">

tag with another copy of the panes I have in my accordion control.

regards,
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.
Viewing all 4356 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>