.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Ajax comboBox not displaying correctly after panel made visible

Posted By:      Posted Date: October 28, 2010    Points: 0   Category :SharePoint



I have a WSP project in which i have added ajaxcontroltoolkit to SharePoint 2010 succesfully and the controls work when in basic web parts.


However i have a web part which has several panels to show / hide various sections as required, within one of the panels i have a combobox.

The panels are set a visible = false to begin with and then toggled to be displayed. 

When the panel is set visible = true i get an Javascript error of: 

Message: 'AjaxControlToolkit' is undefined


The combobox does not display correctly and won;t function.


If the panel is set as visible to begin with - it works fine, but thats not a solution to something which should work.


I have tried various workarounds - but nothing is working.

  • changed scriptmanager on master page to ToolkitScriptManager 
  • add javascript to resize the combobox when its made visible

Is there away to get this working?




View Complete Post

More Related Resource Links

No combobox ajax control visible in Visual Studio 2008 web project


Greetings -

New user to Visual Studio 2008 - one of the reasons for upgrading from 2005 was because I wanted to use the AJAX Toolbox Control for combobox in my web forms. 

Have started a new project, have told it to use .net 3.5 for the project, but when I go to the ajax tooklkit in the toolbox panel there is no combobox.  Could someone please tell me why it isn't there?

Environment - Visual Studio 2008 SP1

Many thanks - OfficeWonk


Ajax Asyncfileupload doesn't work as soon as I put it in a control


Hi guys,

I can't get my <ajax:asyncfileupload> working and I don't see why...

When outside any panel or table it is working well, but as soon as I put it in a <asp:panel> or table I get a strange error which seems to be on client-side but I don't understand what's happen here. Here is the code and code-behind and Javascript.

Here's the error: 


Here's my front-code:

<%@ Page Language="VB" MasterPageFile="~/masterpages/mpSqueletton.master" AutoEventWireup="false" CodeFile="frmAdmGestSocietes.aspx.vb" Inherits="adm_frmAdmGestSocietes" title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
<script type="text/javascript" language="javascript">    
        function uploadError(sender,args)
          document.getElementById("<%= lblStatus.ClientID %>").innerText = args.get_fileName(), "<span style='color:red;'>" + args.get_errorMes

Class to be made COM Visible

Hi I am building a class in C++ that I want to be made visible in VBA for excel. I did the following 1. Create a class library Dekho 2. Created a ComClass by Projects->Add Class-> Component Class called it PointClass 3. I cant seem to find "COM Visible box" - its very frustrating 4. Then do I need to compile and then view in Excel VBA by Adding a Reference to this ?  Please help as I have been struggling for last 3 days to find a solution. Also, why do we need an interface class ?

Window.Open in AJAX Accordian Panel Opens Link in Same Window

I'm using the following span to open a page in a new window. What is INCREDIBLY odd is that it is exactly the same code from three different pages, but the first refuses to open in a new window. The only difference is that the first example resides within an Ajax Accordian Panel so I suspect that it might be an Ajax related issue. Ideas? Does not open in new window.<span onclick="window.open ('http://[domainname]/Mercury/production/content/directory/DirectorySideBar.aspx','mywindow','width=271,height=498,scrollbars=no');">   Opens in new window<span onclick="window.open ('http://[domainname]/Mercury/production/content/directory/DirectorySideBar.aspx','mywindow','width=271,height=498,scrollbars=no');">   Opens in new window<span onclick="window.open ('http://[domainname]/Mercury/production/content/directory/DirectorySideBar.aspx','mywindow','width=271,height=498,scrollbars=no');">  

Ajax Refresh Panel

Hi, plz i want detailed explanation about  "Ajax Refresh Panel" like how to use it and what is the use of this control its urgent Thanx

AJAX update panel and update progress controls

I have writtena Crystal reports web application, that prompts ths user for parameters and then apply them and exports the report to a folder as .rpt and then display the report. I prompt the parameters on one screen and then display the report on another page. I have the AJAX update panel and update progress controls in the parameter page. When the user enters the parameters and click on ok, I export the report and then loads the report to a session report document and transfer the user to the second page where the report is displayed. I use the following code to do transfer to the seconds page. I have excluded the report load and parameter assign code here.rpt.ExportToDisk(ExportFormatType.CrystalReport, "c:\reports\testrep.rpt") Session("rpt") = New ReportDocument Session("rpt").load("c:\reports\testrep.rpt") Response.Redirect("show.aspx") In the second page I have the following: rptViewer.reportsource = Session("rpt") My problem is this works one time and then stops working the second. What I found out was it comes to the statement: Response.Redirect("show.aspx") But it does not even load the show.aspx page. It stays on the parameter page. There are no errors displayed. I could not see any errors when I debug the application also. And out of the blue it works

Copy non-visible area of a panel to image object?

Hello, I'm using VS2008 and I would like to copy the entire area of a panel to an image object (bitmap image).  There are lots of examples out there describing how to copy certain areas of the screen, but I would like to capture the entire area of a panel, even if a portion of the panel is not currently visible. Or perhaps you can suggest a different way to achieve my goal - that is, I have a table layout panel with some various lineshapes drawn onto it, and I am aiming to recreate or simply include it on a rdlc report as an image.  Because of the various lineshapes that are included in the tablelayoutpanel, a datagrid/table/matrix control doesn't appear to be an option.  So I'm aiming to copy the tablelayoutpanel to a bitmap image object, then insert that into an image control on the report.  Any ideas? Thanks!

ajax combobox having problem in binding data

Hi i am using ajaxtoolkit:combobox and i tried to bind data to this control in code behind file. but it is taking 3 to 4 mints to bind data and display the page. what is the problem? I am providing my aspx code and code behind code here<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="Dashboards_TestPage" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <asp:ScriptManager runat="server" ID="scriptMgr"> </asp:ScriptManager> <table border="1"> <tr> <td> <ajaxToolkit:ComboBox ID="ddlProgram" runat="server" DropDownStyle="DropDownList" AutoCompleteMode="SuggestAppend" CaseSensitive="False" MaxLength="10"> </ajaxToolkit:ComboBox> </td> </tr> </table> </asp:Content>  Code behind code:public partial class Programs_TestPage : System.Web.UI.Page { ProgramData programData = new ProgramData(); protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack)

displaying error message - Telerik MVC grid - AJAX mode

I want a common solution for handling error messages ON telerik mvc grid in ajax inline and popup edit modes. I am not talking about error messages that are related to single input field. These are business error messages that come back to grid from DB upon clicking grid edit or insert buttons. I want to dispaly error message and not loose data in input fields, bcaz in some cases we are talking about more than 20 fields. 1) I want to know the best way to handle error messges received from backend while using telerik mvc grid. 2) Is it possbile to display error message in a message dialog box?

Ajax Control Toolkit - ModalPopup displaying behind Flash

HiI have a flash on my page and I need to popup an ajax window, I use ModalPopupExtender. The problem is that ajax popup window always shows behind the flash in Internet explorer and Google Chrome. In firefox there are no such problem.I tried to set wmode="transparent" but id didn't help.Thanks

What is difference between Panel's Visible-True/False and Setting Multiview's ActiveViewIndex ?

Hi, I have a panel that contains several controls. On the other hand i have a MultiView that contains Several view that in turn itself contains several controls . In multiview we have to set ActiveViewIndex for the view which we want to see. That same thing can be done through Panel containing another seleral panel's and setting its Visible property to True/False accordingly. Is seems Multiview  is just using this Visible property internally to render controls .Since other views (whose Index is not set to be active Index) are processed on the server for its Whole life cycle(I am confused here..whether i am right or not) .Same thing perhaps happen when we use a Panel insteed and use Visible=True/False. So, what is the difference between MultiView and Panel taking this scenario ?

AJAX ComboBox - required field validator

Hi All, I want to put validation on a combobox to ensure user selects/enters a value. I've tried using a the standard required field validator which doesn't work. So I would like to do the validation using javascript/jquery. Not sure how to approach. When I look at how the combo box is rendered, it appears as a unordered html list. There is also a hidden field but this always seems to be set to 0. So is it possible to do this validation client side. I've read so many posts about this but I havn't got an answer yet. Am I on the wrong path here? Any ideas? Thanks

I am using the following code to check to see if a panel is visible or not before running javascript

Using VB, VS 2010, when I run the following code, I get an error because it executes the code even if I have Panel7 set to invisible.  I am trying to use javascript to see if the panel is visible or not before executing the code.var panelRef7 = document.getElementById('<%= Panel7.ClientID %>'); if (panelRef7) { $find('DragP7').add move(savePanelPosition); }  What am I doing wrong?   Thanks

Make Ajax CalendarExtender always visible on a modalpopup

Hi There,Using a modalpopupextender a panel having controls is poped-up as a modalpopup. The problem I am facing is how to make the Ajax Calendar always  visible on the modalpopup.Functionality of controls on modal popup:1. A calendar (use of Calendarextendar preferred) and a ListBox placed side by side. 2. calendar's behavior need to be exactly the same as that acheived using a Ajax Calendarextendar3. The Calendar is always visible. 4. The days selected by user are appended to the ListBox (with no repeatition)How to meet the above conditions? Any help will be gratefully acknowledged.

Value not displaying correctly

I'm really at a loss here.  High level description is this:  I have a value that is pulled from a session variable.  In the PageLoad method, the value is stored in a local variable.  A literal control is set on the page with that local variable and then the value is stored in the database.  There is no default value for the literal control on the aspx page.  For some reason, the literal is displaying an incorrect value, but the value placed in the database (using the same local variable) is correct.  If I hit F5 to reload the page, the correct value shows up.  I have no idea where the incorrect value is coming from.  It is a possible value, but not the correct one.  This problem only appears on the production server.  The pages work perfectly on my local machine.  Any help would be GREATLY apprecated since I'm about to go crazy trying to figure this out.  Here's some code to better explain things...This starts out on a page that has 3 choices.  If the user selects the correct value, it goes to the next page.  This works fine.  If an incorrect answer is selected, that choice will disappear, and the user will select again.  Once the correct choice is selected, the test goes to the page that has the problem.  Here's the first page:<html xmlns="http://www.w3.org/1999/xh

Using AJAX update panel to show image but still blinking

May anyone help me on this issue please?I'm developing a web site that can grab image captured from cameras and show in the web page, i'm currently using Ajax's Update panel to update the image every second, my web files and Images is located in IIS virtual directory, browsing using IE7.My code is as following :<asp:UpdatePanel ID="uPVideoPane1" runat="server">                                 <triggers>                                     <asp:AsyncPostBackTrigger ControlID="Timer" EventName="Tick" />                                 </triggers>                                 <contenttemplate>                                     <asp:LinkButton ID="linkCamera1" runat="server">                                         <asp:Image ID

ComboBox in non selected accordion Pane do not render correctly

the combo boxes in the originally selected accordion pane work just fine. But when I navigate to one of the other pane those combo boxes show up as a textbox with a very tiny square button for a dropdown arrow and no popup dropdown list to select from. below is my code for the accordion<cc1:Accordion ID="Accordion1" HeaderCssClass="accordionHeader"              HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent" Font-Bold="True" runat="server">             <Panes>                 <cc1:AccordionPane ID="aP1" runat="server">                     <Header >ComboBox 1</Header>                     <Content>                         <cc1:ComboBox ID="cmb1" runat="server" RenderMode="Block">                             <asp:ListItem Text="item 1"></asp:ListItem>                 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend