This is a migrated thread and some comments may be shown as answers.

Moving an Application From IIS 6 to IIS 7.5

9 Answers 193 Views
Button
This is a migrated thread and some comments may be shown as answers.
Eduardo
Top achievements
Rank 1
Eduardo asked on 17 Apr 2012, 10:48 PM
Hello everyone!

Please, please, please help me!

I moved an application (. Net) IIS 6 to IIS 7.5 (Windows Server 2008 R2).

All the application works, but not that involving the Telerik controls.

An example is when I click the button below!

"
<asp:Button ID="SearchButton" runat="server" CssClass="buttonStyle2"OnClick="SearchButton_Click" OnPreRender="ButtonDisablePreRender"Text="Searchr" />
"

Have tried to update the Ajax Toolkit!

I do not know what else to do!

To be honest I've tried everything!

I am almost giving up, please help me!

The version of telerik is "2011.1.614.35." 

9 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 19 Apr 2012, 09:12 AM
Hi Eduardo,

Please elaborate on the problem you have encountered. What is the exact effect of the issue? Have you received any error messages or the controls on your page just do not function as expected?

You mentioned a regular ASP Button in your post. Are the standard controls affected as well by the problem?

Note that when RadCompression is enabled event handlers might not be raised in a default document in IIS 7 or IIS 7.5 Integrated Mode. If this is the problem in your case I would suggest checking the Known issues section of the help article RadCompression as it contains more information on the matter.

Greetings,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Eduardo
Top achievements
Rank 1
answered on 19 Apr 2012, 04:27 PM

Hi Slav!

My example does not show exactly what happened!

The problem is not the button, but when operate or manipulate any control of Telerik!

 Example:

  "
  private void ShowRadPageView()
  {          
   //Note: Telerik.Web.UI.RadPageView!
   (RadPageView)ResultRadPageView.Selected = true;
   (RadPageView)ResultRadPageView.Visible = true;
   
  }
  "

 Below is the "system.web" of my "Web.config"!

  "
  <system.web>
   <trust level="Full" originUrl="" processRequestInApplicationTrust="true" />
   <sessionState timeout="30" />
   <httpRuntime requestLengthDiskThreshold="8192" maxRequestLength="300240" executionTimeout="7200" />
   <globalization culture="pt-br" />
   <!--
     Set compilation debug="true" to insert debugging
     symbols into the compiled page. Because this
     affects performance, set this value to true only
     during development.
    -->
   <!--
     Set compilation debug="true" to insert debugging
     symbols into the compiled page. Because this
     affects performance, set this value to true only
     during development.
    -->
   <compilation debug="true">
     <assemblies>
    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Telerik.Web.UI, Version=2011.1.614.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
     </assemblies>
     <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
     </buildProviders>
   </compilation>
   <!--
     The <authentication> section enables configuration
     of the security authentication mode used by
     ASP.NET to identify an incoming user.
    -->
   <!--
     The <authentication> section enables configuration
     of the security authentication mode used by
     ASP.NET to identify an incoming user.
    -->
   <authentication mode="Windows" />
   <!--
     The <customErrors> section enables configuration
     of what to do if/when an unhandled error occurs
     during the execution of a request. Specifically,
     it enables developers to configure html error pages
     to be displayed in place of a error stack trace.

    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
     <error statusCode="403" redirect="NoAccess.htm" />
     <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors>
    -->
   <pages>
     <controls>
    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2011.1.614.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
     </controls>
   </pages>
   <!--
     The <customErrors> section enables configuration
     of what to do if/when an unhandled error occurs
     during the execution of a request. Specifically,
     it enables developers to configure html error pages
     to be displayed in place of a error stack trace.

    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
     <error statusCode="403" redirect="NoAccess.htm" />
     <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors>
    -->
   <httpHandlers>
     <remove path="*.asmx" verb="*" />
     <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
     <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
     <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
     <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
     <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
     <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
     <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
     <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
     <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
   </httpHandlers>
   <httpModules>
     <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
   </httpModules>
  </system.web>
  "

 I emphasize that in either "classic" as in "integrated" (IIS 7.5), we got this problem!

 The problem seems to occur when the Telerik makes ajax calls to manipulate some control.

 Please help me! It is for a very special customer!

Hugs!

0
Slav
Telerik team
answered on 21 Apr 2012, 11:20 AM
Hi Eduardo,

I created a test project, based on the information you provided, but I am unable to reproduce your problem. I have attached my sample project to this post so that you can check if the issue occurs on your end. The behavior that I encountered is displayed in the attached screen capture.

Note that I am still guessing as to what the exact problem is and what is the setup of your actual project. Please try reproducing the issue in the attached sample and if you are successful, let me know what changes should be done in order to match your case. A detailed description of your configuration, the steps for reproducing the problem and the effect of the issue will also be useful for determining its cause. 

Kind regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Eduardo
Top achievements
Rank 1
answered on 24 Apr 2012, 12:52 AM

Dear Slav,

      No doubt! The problem is at Telerik! My logs tell you that! As an example, the call of the method below:

            Note: Just when we call this method on line "((RadPageView) ResultRadPageView). Selected = true;", as in other operations with Telerik controls the application does not respond and the screen is not changed!
  
            "
            private void ShowRadPageView ()
            {
                  / / Note: Telerik.Web.UI.RadPageView!
                  ((RadPageView) ResultRadPageView). Selected = true;
                  ((RadPageView) ResultRadPageView). Visible = true;
            }
            "

      Is not there a script (manual) installation to use the Telerik in IIS 7.5?

      I need to install Telerik (installer) on my server?

      I opened your application and it worked. However, I spend too much time to do implementations in it!

      My situation is getting complicated and I'm really running out of time!

      Is there any other solution that you can suggest?

      Can you send me an application test that control "Telerik.Web.UI.RadPageView"?

      I deploy on another Windows 2008 R2 (another server) and got the same problem!

0
Eduardo
Top achievements
Rank 1
answered on 24 Apr 2012, 01:47 AM
The system behaves as it appears in the picture (attached). When I make a request, it does not respond! He is eternally waiting for an answer! Sometimes, back to the home screen of the system (default.aspx).
0
Slav
Telerik team
answered on 24 Apr 2012, 04:18 PM
Hello Eduardo,

After examining again the provided sample from web.config I noticed that there is no <system.webServer>. Keep in mind that when a web site is running under IIS7, you need to register the HttpHandlers in the <system.webServer> section as the web server searches them in the content of this tag. You can check the help article Registering the HttpHandlers on Windows Vista IIS 7 Integrated mode for more information on configuring the web config in such a scenario.

Also I would suggest updating your version of RadControls to the latest release as the encountered problem could be related to the version you are currently using.

Note that in my previous post I have attached a sample that uses RadPageView and the web config setup that you provided, so you can check if the problem is reproducible there.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Eduardo
Top achievements
Rank 1
answered on 25 Apr 2012, 06:18 PM
Hi Slav,


       I did some more tests with your code example ("RadControlsSample") and in your code Telerik works, such as:


       "
       protected void Button1_Click(object sender, EventArgs e)
       {
              RadPageView4.Selected = true;
              RadPageView4.Visible = true;
       }
       "


       I changed the "web.config" exactly as you guide. Below is the "<system.web>" and "<system.webServer>" (Note: IIS 7.5 is in integrated mode!)
       
       * <system.web>
       "
       <system.web>
              <trust level="Full" originUrl="" processRequestInApplicationTrust="true" />
              <sessionState timeout="30" />
              <httpRuntime requestLengthDiskThreshold="8192" maxRequestLength="300240" executionTimeout="7200" />
              <globalization culture="pt-br" />
              <!-- 
                            Set compilation debug="true" to insert debugging 
                            symbols into the compiled page. Because this 
                            affects performance, set this value to true only 
                            during development.
                     --> 
              <!-- 
                            Set compilation debug="true" to insert debugging 
                            symbols into the compiled page. Because this 
                            affects performance, set this value to true only 
                            during development.
                     -->
              <compilation debug="true">
                     <assemblies>
                            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                            <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                            <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                            <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                            <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                            <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                            <add assembly="Telerik.Web.UI"/>
                     </assemblies>
                     <buildProviders>
                            <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
                     </buildProviders>
              </compilation>
              <!--
                            The <authentication> section enables configuration 
                            of the security authentication mode used by 
                            ASP.NET to identify an incoming user. 
                     --> 
              <!--
                            The <authentication> section enables configuration 
                            of the security authentication mode used by 
                            ASP.NET to identify an incoming user. 
                     -->
              <authentication mode="Windows" />
              <!--
                            The <customErrors> section enables configuration 
                            of what to do if/when an unhandled error occurs 
                            during the execution of a request. Specifically, 
                            it enables developers to configure html error pages 
                            to be displayed in place of a error stack trace.


                     <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                            <error statusCode="403" redirect="NoAccess.htm" />
                            <error statusCode="404" redirect="FileNotFound.htm" />
                     </customErrors>
                     -->
              
              <customErrors mode="Off" />
              <pages>
                     <controls>
                            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                            <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
                     </controls>
              </pages>
              <!--
                            The <customErrors> section enables configuration 
                            of what to do if/when an unhandled error occurs 
                            during the execution of a request. Specifically, 
                            it enables developers to configure html error pages 
                            to be displayed in place of a error stack trace.


                     <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                            <error statusCode="403" redirect="NoAccess.htm" />
                            <error statusCode="404" redirect="FileNotFound.htm" />
                     </customErrors>
                     -->
              <httpHandlers>
                     <remove path="*.asmx" verb="*" />
                     <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
                     <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
                     <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
                     <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
                     <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
                     <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
                     <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
                     <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
                     <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
              </httpHandlers>
              <httpModules>
                     <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
              </httpModules>
       </system.web>
       "
       
       * <system.webServer>
       "
       <system.webServer>
              <modules>
                     <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler" />
                     <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
              </modules>
              <handlers>
                     <remove name="ScriptHandlerFactory" />
                     <add name="ScriptHandlerFactory" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                     <add name="ScriptHandlerFactoryAppServices" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                     <add name="ScriptResource" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                     <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" />
                     <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" />
                     <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" />
                     <add name="Reserved_ReportViewerWebControl_axd" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
                     <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" />
                     <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" />
              </handlers>
              <security>
                     <requestFiltering>
                            <requestLimits maxAllowedContentLength="307445760" />
                     </requestFiltering>
              </security>
              <validation validateIntegratedModeConfiguration="false" />
       </system.webServer>
       "
       
       This is the aspx code snippet of the aspx code that generates the error of the attached image in my last post. The IIS does not respond to the request:
       
       "
       <telerik:RadComboBox ID="radComboBoxDescritor" EnableViewState="true" Width="100%"
                     Height="200px" AllowCustomText="True" AutoPostBack="true" ShowToggleImage="False"
                     ShowMoreResultsBox="false" EnableLoadOnDemand="True" OnClientItemsRequesting="OnClientItemsRequesting"
                     OnItemsRequested="RadComboBoxDescritorItemsRequested" TabIndex="0" EnableVirtualScrolling="false"
                     runat="server" LoadingMessage="Carregando..." OnClientDropDownOpening="HandleStartChanging"
                     OnClientKeyPressing="OnClientKeyPressing">
              <ItemTemplate>
                     <div style="padding: 3px; border-bottom: 1px solid lightgrey">
                            <div style="font-weight: bold">
                                   <asp:Literal ID="literalTitulo" runat="server"></asp:Literal>
                            </div>
                            <div style="font-size: 10px; padding-left: 3px">
                                   <asp:Literal ID="literalDetalhes" runat="server"></asp:Literal>
                            </div>
                     </div>
              </ItemTemplate>
              <CollapseAnimation Type="OutBack" Duration="200"></CollapseAnimation>
       </telerik:RadComboBox>
       "
       
       This is the C# code triggered by the control "<telerik:RadComboBox>". My logs ("Comum.LogsSistema.DebugLogsSistema.UpdateLog()") indicates that the method "RadComboBoxDescritorItemsRequested()" is not even called. It seems that something is preventing the ajax call made by the control "<telerik:RadComboBox> on "OnItemsRequested"."
       
       "
       protected void RadComboBoxDescritorItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
       {
              try
              {


                     Comum.LogsSistema.DebugLogsSistema.EnableProcessToLog();
                     Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "protected void RadComboBoxDescritorItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)", "");


                     e.EndOfItems = true;
                     string textoDigitado = e.Context["CustomText"].ToString();
                     if (textoDigitado.Length < 3) return;


                     Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "GerenteServicos.GerenteDeVocabulario.Instancia.AbreConexaoUnica()", "");
                     //TODO: Os termos não autorizados devem ser inseridos desse jeito mesmo?
                     GerenteServicos.GerenteDeVocabulario.Instancia.AbreConexaoUnica();
                     
                     Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "GerenteServicos.GerenteDeVocabulario.Instancia.ObtemDescritoresAutorizadosProximos(textoDigitado, 15)", "");
                     IEnumerable<Termo> termosEncontrados = GerenteServicos.GerenteDeVocabulario.Instancia.ObtemDescritoresAutorizadosProximos(textoDigitado, 15);
                     //Nesse momento ele deve pegar todos os itens que estiverm na base descritores que comecem com o texto
                     //IEnumerable<Termo> termosEncontrados = dataSource.ObtemDescritores(textoDigitado, 15);
                     foreach (Termo termoEncontrado in termosEncontrados)
                     {
                            Termo termoDaVez = termoEncontrado;
                            //if (!termoDaVez.Aprovado) continue;


                            Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "RadComboBoxItem item = new RadComboBoxItem()", "");
                            RadComboBoxItem item = new RadComboBoxItem();
                            if (termoDaVez.Tipo == TiposTermos.NAO_AUTORIZADO)
                            {
                                   IList<Termo> termoAutorizado = GerenteServicos.GerenteDeVocabulario.Instancia.
                                          GetDescritoresDeNaoAutorizado(termoDaVez.Id);


                                   if (termoAutorizado.Count > 0)
                                   {
                                          termoDaVez = termoAutorizado[0];
                                          item = new RadComboBoxItem(termoAutorizado[0].Nome, termoAutorizado[0].Id);
                                   }


                            }
                            else
                            {
                                   item = new RadComboBoxItem(termoDaVez.Nome, termoDaVez.Id);
                            }


                            Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "radComboBoxDescritor.Items.Add(item)", "");
                            radComboBoxDescritor.Items.Add(item);
                            Literal literalTitulo = (Literal)item.FindControl("literalTitulo");
                            literalTitulo.Text = termoDaVez.Nome;
                            StringBuilder detalhes = new StringBuilder();


                            Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "if (termoDaVez.TermosNaoAutorizados.Count > 0)", "");
                            if (termoDaVez.TermosNaoAutorizados.Count > 0)
                            {
                                   if (termoDaVez.TermosNaoAutorizados[0].Nome.StartsWith(textoDigitado, StringComparison.InvariantCultureIgnoreCase))
                                   {
                                          detalhes.Append("<b><br/>(Não use ");
                                          detalhes.Append(termoDaVez.TermosNaoAutorizados[0].Nome);
                                          detalhes.Append(")</b>");
                                   }
                            }


                            Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "foreach (Termo termoGeral in termoDaVez.TermosGerais)", "");
                            foreach (Termo termoGeral in termoDaVez.TermosGerais)
                            {
                                   if (termoGeral != null)
                                   {
                                          detalhes.Append("<br/><b>TG</b><br/>");
                                          detalhes.Append(termoGeral.Nome);
                                   }
                            }


                            Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "Literal literalDetalhes = (Literal)item.FindControl(\"literalDetalhes\")", "");
                            Literal literalDetalhes = (Literal)item.FindControl("literalDetalhes");
                            literalDetalhes.Text = detalhes.ToString();


                     }
              }
              catch (Exception exception)
              {
                     Comum.LogsSistema.DebugLogsSistema.UpdateLog("", "Cód. Rastreamento 20120425 - " + "catch (Exception exception) - exception.Message: " + exception.Message, "");
                     radComboBoxDescritor.Items.Clear();
              }


              Comum.LogsSistema.DebugLogsSistema.DisableProcessToLog();


       }
       "
       
       * Any ideas?!


       Note: The version of telerik is "Telerik.Web.UI_2011_1_519_Dev" that is still new!
       
Thank you!
0
Eduardo
Top achievements
Rank 1
answered on 27 Apr 2012, 03:04 PM
Slav,

Any ideas? Any response?

Thanks!
0
Slav
Telerik team
answered on 27 Apr 2012, 03:28 PM
Hello Eduardo,

I have modified my test sample, according to your suggestions and the RadComboBox loads its items as expected. Since the difference with your sample code is the data source that you are using to create the combo box items, I would suggest checking if the data is loaded successfully.

Also, as stated in the help article Controls are not updated during the ItemsRequested event, it is not recommended to use the built-in callback machinism of RadComboBox along with Telerik RadAjax, so I would suggest checking if this is the case.

You can find attached the modified sample so that you can verify that the RadComboBox is loading its items with the standard approach on your end.

All the best,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Button
Asked by
Eduardo
Top achievements
Rank 1
Answers by
Slav
Telerik team
Eduardo
Top achievements
Rank 1
Share this question
or