Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
Hi
On double-click a user can addnew or edit existing appointment item.

what i want to do is when user single clicks on exiting appointment item, i want to display description is a textbox
which is located outside scheduler control on a page.

Regards
Ivana
Telerik team
 answered on 29 Aug 2011
1 answer
170 views
 The telerik rad tree view is not behaving properly, we have it as a left navigation menu into a user control that gets loaded inside the master page. This issue is just  in some subsites of a big site collection migrated.

The menu will display the sites and subsites that SharePoint has.
The problem is that the arrows that it has on the left, ( see attached image please),  sometimes those arrows are pointing in a right direction ( right  for  the subsites of the site that im visiting ) , but in some other sites, the arrows wiill not show up correctly. This is all in the same site collection.

Here is the code. See atached image to know .

<

 

 

script type="text/javascript">

 

 

 

function ClientDoubleClick(sender, args) {

 

 

 

var node = args.get_node();

 

args.set_cancel(

 

true);

 

}

 

 

function ClientNodeClicking(sender, args) {

 

 

 

var node = args.get_node();

 

args.set_cancel(

 

true);

 

}

 

 

function ClientNodeExpanded(sender, args) {

 

 

 

var node = args.get_node();

 

 

 

if (node.get_level() == 0) {

 

args.set_cancel(

 

true);

 

}

 

 

else {

 

ResetNodes(node,

 

"up");

 

ResetNodes(node,

 

"down");

 

 

 

var attributes = node.get_attributes();

 

 

 

var level = node.get_level();

 

 

 

var nodeID = attributes.getAttribute("nodeID");

 

 

 

var nodeDiv = document.getElementById(nodeID);

 

 

 

var nextNodeDiv;

 

 

 

if (node.get_nextNode() != null) {

 

 

 

var nextNode = node.get_nextNode();

 

 

 

var nextNodeAttributes = nextNode.get_attributes();

 

 

 

var nextNodeID = nextNodeAttributes.getAttribute("nodeID");

 

nextNodeDiv = document.getElementById(nextNodeID);

}

 

 

if (level == 1) {

 

 

 

var endTreeViewDiv = document.getElementById("ctl00_CardinalLeftNav_endTreeView");

 

endTreeViewDiv.className =

 

"cahCollaspedEnd";

 

nodeDiv.className =

 

"cahLevel1 cahExpanded1";

 

 

 

if (node.get_nextNode() != null)

 

nextNodeDiv.className =

 

"cahLevel1 cahSiblingExpanded1";

 

 

 

else

 

endTreeViewDiv.className =

 

"cahExpandedEnd";

 

}

 

 

else if (level == 2) {

 

nodeDiv.className =

 

"cahLevel2 cahExpanded2";

 

}

 

 

else if (level == 3) {

 

nodeDiv.className =

 

"cahLevel3 cahExpanded3";

 

 

 

if (node.get_nextNode() != null)

 

nextNodeDiv.className =

 

"cahLevel3 cahSiblingExpanded3";

 

}

 

 

else if (level == 4) {

 

nodeDiv.className =

 

"cahLevel4 cahExpanded4";

 

}

}

}

 

 

function ClientNodeCollapsed(sender, args) {

 

 

 

var node = args.get_node();

 

 

 

if (node.get_level() == 0) {

 

args.set_cancel(

 

true);

 

}

 

 

else {

 

ResetNodes(node,

 

"up");

 

ResetNodes(node,

 

"down");

 

}

}

 

 

function ResetNodes(node, direction) {

 

 

 

if (node != null) {

 

 

 

var attributes = node.get_attributes();

 

 

 

var level = node.get_level();

 

 

 

var nodeID = attributes.getAttribute("nodeID");

 

 

 

var nodeDiv = document.getElementById(nodeID);

 

 

 

if (level == 1) {

 

nodeDiv.className =

 

"cahLevel1";

 

 

 

var endTreeViewDiv = document.getElementById("ctl00_CardinalLeftNav_endTreeView");

 

endTreeViewDiv.className =

 

"cahCollaspedEnd";

 

}

 

 

else if (level == 2) {

 

nodeDiv.className =

 

"cahLevel2";

 

}

 

 

else if (level == 3) {

 

nodeDiv.className =

 

"cahLevel3";

 

}

 

 

else if (level == 4) {

 

nodeDiv.className =

 

"cahLevel4";

 

}

 

 

if (direction == "up")

 

ResetNodes(node.get_previousNode(), direction)

 

 

else

 

ResetNodes(node.get_nextNode(), direction)

}

}

</

 

 

script>

 

<

 

 

telerik1:RadTreeView ID="CardinalRadTreeView" runat="server" Skin="" EnableTheming="false" OnNodeExpand="RadTreeView1_NodeExpand"

 

 

 

SingleExpandPath="true" ShowLineImages="False" OnClientNodeExpanded="ClientNodeExpanded"

 

 

 

OnClientDoubleClick="ClientDoubleClick" OnClientNodeCollapsed="ClientNodeCollapsed"

 

 

 

OnClientNodeClicking="ClientNodeClicking"></telerik1:RadTreeView>


Is there any known issue about the styles or the misbehaving look & feel on the radtreeview on SharePoint 2010???

Help Please.

 

Cat Cheshire
Top achievements
Rank 1
 answered on 29 Aug 2011
4 answers
119 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
95 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
55 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
134 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
65 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
760 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
56 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
94 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?