Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
189 views
I am having multiple problems with the combo box control and event handling/population between Visual Studio 2010/Windows 7 and operation under Server 2008 site.

I am developing/supporting a web site under Visual Studio 2010 on Windows 7.  All of my combo boxes are working fine.  I have both cascading combo boxes that trigger javascript and combo boxes that utilize the SelectedIndexChanged.  In all cases, these combo boxes operate just fine when testing them on my development machine.

But when I upload the pages/site up to a Server 2008 machine, the combo boxes/events do not fire correctly or they do not operate correctly.  Cascading combo boxes show the "Loading..." text, but never populate.  A combo box that is supposed to trigger a SelectedIndexChanged event triggers the event, but then the combo box resets back to the value before the user selected a new one.

How can all of this be happening?  Why would a combo box would perfectly under Visual Studio/Windows 7 and not under Server 2008?

Can anybody offer an explanation?

Below is the code from one of the "SelectedIndexChanging" combo boxes.

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="LanguageSelector.ascx.vb" Inherits="UserControls_LanguageSelector" %>
<telerik:RadComboBox
    ID="LanguageSelectorComboBox"
    AutoPostBack="true"
    EnableEmbeddedSkins="true"
    Skin="Sitefinity"
    runat="server"
    Height="200px"
    Width="215px"
    ZIndex="9000"
>
</telerik:RadComboBox>


Protected Sub LanguageSelectorComboBox_SelectedIndexChanged(ByVal sender As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs) Handles LanguageSelectorComboBox.SelectedIndexChanged
    If Page.IsPostBack Then
        Dim KeyVal As String = e.Value
        Dim languageId As Integer = Convert.ToInt32(KeyVal)
        Dim conn1 As New SqlConnection(Convert.ToString(Application("SiteDBConnect")))
        Try
            conn1.Open()
        Catch ex As Exception
            Throw New ApplicationException("Error in connection=" & ex.Message & ". The requested list cannot be created.")
        Finally
        End Try
        Dim iRtn As Integer = 0
        Dim Languages_Data As New Languages_DDC()
        Dim Languages_Cmds As New Languages_DUC()
 
        Dim Currencies_Data As Currencies_DDC = New Currencies_DDC
        Dim Currencies_Cmds As Currencies_DUC = New Currencies_DUC
 
        Dim TransTextSort_Data As TransTextSort_DDC = New TransTextSort_DDC
        Dim TransTextSort_Cmds As TransTextSort_DUC = New TransTextSort_DUC
        Dim TransTextSort_Arry As ArrayList = New ArrayList
 
        Dim iUSDKey As Integer = 1
        Dim iForgnKey As Integer = 0
        Dim currencyId As Integer = Session("UserCurrencyKey")
 
        Dim iDebug As Int32 = -1
        Languages_Data.LanguageId = languageId
        iRtn = Languages_Cmds.GetSpecific(conn1, Languages_Data, iDebug, "HON")
        If iRtn = -1 Then
            If bSetSessionValue Then
                Session("UserLanguageKey") = Languages_Data.LanguageId
                Session("UserLanguageCulture") = Languages_Data.LanguageTransCulture
                Session("UserLanguageName") = Languages_Data.LanguageEnglishName
                Session("UserChangedLanguage") = "Yes"
                Session("UserLanguageNum") = GetNewLangKeyStringValue(Languages_Data.LanguageId)
 
                '   Now we need to change the names of the session currency info so it is in the newly selected language
                Dim sLangName As String = GetNewLangKeyStringValue(Session("UserLanguageKey"))
                Dim sFieldToPopulate As String = "TextSortLang" & sLangName
 
                iRtn = TransTextSort_Cmds.GetAllByTextSort_Currency(conn1, TransTextSort_Arry, currencyId, -1, "HON Currency Change")
                For Each TransTextSort_Data In TransTextSort_Arry
                    'Session("USDLanguageName") = "United States Dollar"
                    'Session("NativeCurrencyLanguageName") = "United States Dollar"
                    Session("NativeCurrencyLanguageName") = TransTextSort_Cmds.GetField(TransTextSort_Data, sFieldToPopulate)
                    '   There can only be one record in this array, so force an exit after processing the first record
                    '   to protect us from something squirrely happening
                    Exit For
                Next
                '   Now get the native language name for the USD, unless we already have it
                If currencyId = 1 Then
                    Session("USDLanguageName") = Session("NativeCurrencyLanguageName")
                Else
                    TransTextSort_Arry = New ArrayList
                    iRtn = TransTextSort_Cmds.GetAllByTextSort_Currency(conn1, TransTextSort_Arry, 1, -1, "HON Currency Change")
                    For Each TransTextSort_Data In TransTextSort_Arry
                        Session("USDLanguageName") = TransTextSort_Cmds.GetField(TransTextSort_Data, sFieldToPopulate)
                        '   There can only be one record in this array, so force an exit after processing the first record
                        '   to protect us from something squirrely happening
                        Exit For
                    Next
                End If
            End If
            If bReloadPage Then
                Response.Redirect(HttpContext.Current.Request.RawUrl, True)
            End If
        End If
        conn1.Close()
        conn1 = Nothing
    End If
End Sub

This is just one example.  I have more. If you want to see the results on the server 2008 system, navigate to http:://www.homesonlinenetwork.com and try changing the language selected in the combo box in the far upper right-hand corner.  This same combo box works perfectly under Visual Studio 2010/Windows7.

Any thoughts/help would be greatly appreciated!  I am stumped!

Thanks in advance!

Lynn

Simon
Telerik team
 answered on 29 Aug 2011
6 answers
136 views
Is there an RAD ASP.net control extender to make a control always visible.. like the ASP.net Ajax Toolkit AlwaysVisible Control Extender?  If not.  Is the ASP.net Ajax Toolkit compatible with the RAD tools?  thanks

EDIT ======================================================================
for others that follow. 
good solution is here...

http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/alwaysvisiblecontrol.aspx

Don't bother reading below, big waste of time.
Frank
Top achievements
Rank 1
 answered on 29 Aug 2011
1 answer
105 views
Hi,

In the tools.xml we have set restrictions such that the user is not able to change the forecolor or backcolor or table tags etc.
So many of the buttons are hidden from the user.

But I see that the user is able to copy any content from MS word into the editor and It works.It does not filter the content based on the restrictions we have set,

How can we restrict the content which i being copied into the editor.
Rumen
Telerik team
 answered on 29 Aug 2011
2 answers
194 views
Hello!

I was wondering if is it possible to display user control inside the RadGrid on ItemCommand event. What I need is similar to the EditForm, but without the Save button.

Any help would be appreciated!

Thank you!
Ignjat
Top achievements
Rank 1
 answered on 29 Aug 2011
1 answer
103 views
Greetings,

We are having some kind of compatability issues with 51degrees.Mobi redirects and RadRotator.  We can not seem to use them on the same page or within the same Web.config.

There is a similar thread here: http://www.telerik.com/community/forums/aspnet-ajax/combobox/combobox-on-the-ipad-iphone.aspx#1707186

Basically, if we try to do a Mobi redirect on our home page which uses a RadRotator, the rotator ends up showing all of its panels on the page.  We are opening a ticket with 51degrees as well, and we are waiting to see which of you will be more responsive to the issue.  We really like using both Mobi and Telerik... it would be a shame if we have to choose between the two.  I can provide contact information for 51degrees if necessary.

Please advise.  Thank you!

Matt
WAMatt
Top achievements
Rank 2
 answered on 29 Aug 2011
6 answers
920 views
I have a Windows Server 2008 with IIS 7.  I've been using the app pool set to classic.  I'm getting ton of the errors listed below and my frustration level is high now.  When I look at it under Visual Studio or browse to it locally through IIS it works find.  When I hit it externally, I can't get far and get a ton of the errors below.  The site is on to web servers that have a load balancer.  The site is 3.5 framework.  Any ideas of how to handle this?  Everything I read, says to just make sure you have the "handler" and "httphandler" taken care of.

Log Entry :

04/18/2011 08:23:06

Error in: http://IP/WebResource.axd?d=VI8cl_KcmUGuI9J1ljdtUfC1Fw80RJY2VzQZYXQfGP0yeuKF-7AWuly-tpJ11x2a_6gaGIATt0WVy_mAl85-FKZ1YcAyy_vBFM5jGFPfo0ZORjc3fFgvDSzkUT_F6n-kXSDfUN3gV5VX-9vAY5MDBzkMYS81&t=634383688500000000. Error Message:This is an invalid webresource request.

_______________________________________________________________________________________

 

Log Entry :

04/18/2011 08:23:06

Error in: http://IP/ScriptResource.axd?d=fPOKxOrQov_9YUMZc3ASm_bwNNXSMem5KtbOESTth5rr7e5BE9ELI2PBp-1xMcPS20DG6vjSCqyO1ID_YMACdl_KttkxrOcGBwn7g2H6rYdcmbnW7g6JSr4959JxtNMIlVDQ2mLSAtjaD_kna09x9uLr84pDD2WagO4CW20FUv8P7cUX0&t=5c2f384e. Error Message:This is an invalid script resource request.

_______________________________________________________________________________________

Web.config

    <httpHandlers>
      <add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha" />
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" 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="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>

    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
     
      <remove name="ChartImage_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="CaptchaImage_aspx" path="CaptchaImage.aspx" verb="*" type="WebControlCaptcha.CaptchaImageHandler" resourceType="Unspecified" preCondition="integratedMode" />
      <add name="ImageVerifier_axd" path="ImageVerifier.axd" verb="*" type="MRMUtilities.Web.UI.Controls.CImageVerifier" resourceType="Unspecified" preCondition="integratedMode" /><add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>

 

Simon
Telerik team
 answered on 29 Aug 2011
3 answers
82 views
Hi Support,
 
We are facing the issue in RAD Editor control in Fire fox 6.0.  when loading the RAD Editor The toolbars are not displayed. And the contents are showed as html code in default view.  we are not able to switch to default view & html view.  Refer the attached screen shot.
 
Thanks for the support.
 
  we are using the
 RadEditor.Net2, Version=7.0.2.0
 Visual studio version: VS 2005
 .NET version 2.0
 Browser: Firefox 6.0

 
Regards,
Megha.
megha.thattil@wolterskluwer.com
Rumen
Telerik team
 answered on 29 Aug 2011
3 answers
132 views
Hi,

I'm trying to insert a telerik tree view inside a telerik combo box ....
I'm looking at this example:
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx

The question is how do I go about having a default value for the combo box ...
In the example above how would I set "Brazil" as the default value for the combo box ?

Seabus
Ivana
Telerik team
 answered on 29 Aug 2011
1 answer
134 views
Hi
I have a problem following this demo http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx#
i can't load the user control in this code
 private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("ProductDetailsCS.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            ProductDetailsCS details = (ProductDetailsCS)ctrl;
            details.ProductID = elementID;
        }

 
ProductDetailsCS not found. 
i need your help, may be i doing something wrong.
thk.
Fernando
Top achievements
Rank 1
 answered on 29 Aug 2011
1 answer
92 views

Im getting the attached error with a radcombobox set up as descrubed below:

<telerik:RadComboBox ID="radComboBoxClientName" runat="server" Filter="Contains"
              Width="300px" Height="300" DataTextField="ClientAltName" DataValueField="ClientId"
              AutoPostBack="True" CausesValidation="false" EnableLoadOnDemand="True" EnableVirtualScrolling="true"
              EmptyMessage="No Client Selected" OnClientItemsRequesting="OnKPClientItemsRequesting">
              <WebServiceSettings Method="GetClients" Path="~/Services/AutoCompleteService.svc" />
          </telerik:RadComboBox>


Public Function GetClients(ByVal context As RadComboBoxContext) As RadComboBoxData
    Dim result As RadComboBoxData = New RadComboBoxData()
    Dim allClients As List(Of RadComboBoxItemData)
 
    Dim contextDictionary As IDictionary(Of String, Object) = DirectCast(context, IDictionary(Of String, Object))
    Dim deptCode As String = (DirectCast(contextDictionary("DeptCode"), String))
    Dim display As String = (DirectCast(contextDictionary("Display"), String))
 
 
    'Select Case deptCode
    'Case "EFF"
    '   From cli As Client In ClientCache.GetCacheDataTypedList
    '                  Where cli.IsValidETFMS
    '                  Select New RadComboBoxItemData With {.Text = If(display = "Short", cli.ClientShortAltName, cli.ClientAltName), .Value = CStr(cli.ClientId)}).OrderBy(Function(c) c.Text).ToList
    'Case Else
    '    allClients = (From cli As Client In ClientCache.GetCacheDataTypedList
    '                  Select New RadComboBoxItemData With {.Text = If(display = "Short", cli.ClientShortAltName, cli.ClientAltName), .Value = CStr(cli.ClientId)}).OrderBy(Function(c) c.Text).ToList
 
    'TODO : Dont like using SP, AAP.
    Dim qnClients As New List(Of DataLayer.qn_Client_getResult)
    Using kp As New DataLayer.KestrelProLinq.KestrelProDb
        qnClients = kp.qn_Client_get(deptCode).ToList()
    End Using
    allClients = (From cli As DataLayer.qn_Client_getResult In qnClients
                  Select New RadComboBoxItemData With {.Text = If(display = "Short", ClientCache.GetStoreObject.GetClientShortAltName(cli.ShortName, cli.AgressoClientId), ClientCache.GetStoreObject.GetClientAltName(cli.ShortName, cli.Name, cli.AgressoClientId)), .Value = CStr(cli.ClientId)}).OrderBy(Function(c) c.Text).ToList
    'End Select
 
 
    Dim text As String = context.Text
    If Not String.IsNullOrEmpty(text) Then
        allClients = (From item As RadComboBoxItemData In allClients
                      Where item.Text.ToLower.Contains(text.ToLower)
                      Select item).ToList
        If allClients.Count <= 1 Then allClients.Add(New RadComboBoxItemData With {.Text = "", .Value = ""})
    End If
 
    Dim numberOfItems As Integer = context.NumberOfItems
    Dim clients As List(Of RadComboBoxItemData) = allClients.Skip(numberOfItems).Take(100).ToList
 
    result.Items = clients.ToArray
 
    Dim endOffSet As Integer = numberOfItems + clients.Count
    Dim totalCount As Integer = allClients.Count
 
    If endOffSet = totalCount Then result.EndOfItems = True
 
    'If clients.Count <= 0 Then result.Message = "No Matches"
 
    Return result
End Function
Dimitar Terziev
Telerik team
 answered on 29 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?