Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
86 views
hello admin,
                   Can we filter the radSchedular with Radfilter ? in my scenario i want to filter my radSchedular with the help of radSchedular .
Veronica
Telerik team
 answered on 06 Dec 2010
9 answers
306 views
Dear Forum,

Please assist! I have created a RadGrid with GridTemplateColumns where the FilterTemplates contain RadComboBoxes. I cannot figure out how to access the selected value or item of the RadComboBox in codebehind (C#) and I need to do this on the RadGrid's _ItemCommand event for this criteria if (e.CommandName == Telerik.Web.UI.RadGrid.FilterCommandName).

No clue, and I've read everything I can find.

Celeste

Tsvetina
Telerik team
 answered on 06 Dec 2010
5 answers
323 views

Hello,

I am trying to figure out how to change the localization of the RadasyincUpload control at runtime.  I have read the article at: http://www.telerik.com/help/aspnet-ajax/localizing-radupload.html and have created the Required App_GlobalResources directory at my website root – it appears in IIS right under the App_Data folder on the same level.  I have added the RadUpload.resx file and created a RadUpload.es-ES.resx file with the appropriate language translations in it.

I create a RadAsyncUpload control at runtime as such

public Telerik.Web.UI.RadAsyncUpload _uploadControl = new Telerik.Web.UI.RadAsyncUpload();

Then I set some propertie:

  this._uploadControl.ID = "u" + this.QuestionID;

  this._uploadControl.InitialFileInputsCount = 1;

  this._uploadControl.MaxFileInputsCount = 1;

  this._uploadControl.FileUploaded += new FileUploadedEventHandler(File_FileUploaded);

  this._uploadControl.TemporaryFolder = _fileVirtualPath;

  this._uploadControl.TargetFolder =_fileVirtualPath ;

  this._uploadControl.HttpHandlerUrl = "~/RadUpload/RadUploadFile.ashx";

  this._uploadControl.Width = new Unit(250);

  this._uploadControl.CssClass = "normalRemoveButton";

 

Then I have some code to determine the culture and attempt to set the culture of the upload control like :
              

 

this._uploadControl.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("es-ES");

 

Then the control is added to the page controls.

 

The control still shows all the buttons in English.

 

What am I doing wrong, how can I get this to work?

 


We are using Telerik.Web.UI version 2010.3.1109.35

Thanks,

 


Gary

 

Helen
Telerik team
 answered on 06 Dec 2010
3 answers
81 views
Not sure if it's just MY FF, or all versions :)  However it happens on my work PC and this laptop.

I cant CRTL+shift->Left arrow to select text anymore.  Happens in this radeditor and the one on the demo page.

Works in IE

...just me?
Rumen
Telerik team
 answered on 06 Dec 2010
1 answer
197 views
I want checkbox inside Panelbar header. On the checked event of that checkbox panel will expand and collaps.
Any Idea how to do this thing?


Thanks

Sandeep.
Iana Tsolova
Telerik team
 answered on 06 Dec 2010
7 answers
228 views
Hello All,

I am receiving this error on javascript error list,
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLInputElement.selectionStart]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://server1:8080/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d---%3aen-US%3a--%3a--%3b:: anonymous :: line 2151"  data: no]

this error appears when i close the RADwindow by asp .net button.

Thanks in advance.
Georgi Tunev
Telerik team
 answered on 06 Dec 2010
15 answers
632 views
Good morning !

There is any project sample for using RadEditor into an MVC .NEt project ?
Rumen
Telerik team
 answered on 06 Dec 2010
6 answers
216 views
Hello,

I am adding BlogEngine.Net to a working website using telerik controls with radscripManager.
So I added all the modules and httphandlers from blogengine to the original web site.

Before adding this, I verified that bogengine was working normally with it's own web.config

I then noticed that under IE8, I get an error in all my pages using radscriptmanager (french web site)
and when I replace RadSciptManager with asp:scriptmanager everything works ok ?

Thank you for clarification (I am using the last version 2010.2.929 , may vs 2010 is compiled with framework 2 ( 3.5)


Détails de l’erreur de la page Web
 
Agent utilisateur : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.2; .NET4.0C; .NET4.0E)
Horodateur : Tue, 12 Oct 2010 16:53:03 UTC
 
 
Message : Erreur de syntaxe
Ligne : 2
Caractère : 1
Code : 0
URI : http://localhost:5052/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ADNScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3afab31106-1bd6-4491-9a14-59e0fc4a7081%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen%3a15a8cff0-9e51-4282-a100-c2dcd204ecf2%3a16e4e7cd%3af7645509%3aed16cbdc%3a874f8ea2%3a24ee1bba%3a19620875%3a39040b5c%3af85f9819
 
 
Message : ASP.NET Ajax client-side framework failed to load.
Ligne : 58
Caractère : 34
Code : 0
URI : http://localhost:5052/site/alias__xx/pls__Secure/21/register.aspx
 
 
Message : 'Sys' est indéfini.
Ligne : 70
Caractère : 1
Code : 0
URI : http://localhost:5052/site/alias__xx/pls__Secure/21/register.aspx
 
 
Message : 'Sys' est indéfini.
Ligne : 169
Caractère : 25
Code : 0
URI : http://localhost:5052/site/alias__xx/pls__Secure/21/register.aspx

Here is my page code

<%@ Page Language="C#" AutoEventWireup="false" Codebehind="Register.aspx.cs" Inherits="xx.Secure.Register" %>
<%@ Register TagPrefix="cc1" Namespace="xx.UI.WebControls" Assembly="ADNCRM.Core" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title>Register Page</title>
    <style media="all" type="text/css">
    .panetable
    {
        table-layout:fixed;
        overflow:hidden;
    }
    </style>
    <Telerik:RadStyleSheetManager ID="RSSManager" Runat="server" />
</head>
<body id="Body1" runat="server">
<!--[if lte IE 7]>
    <link rel="stylesheet" type="text/css" href="/aspnet_client/ADNCRM_CSS/iehacks.css" />
  <![endif]-->
 
  <!--[if lte IE 6]>
    <script type="text/javascript" src="/aspnet_client/ADNCRM_scripts/ie6scripts.js"></script>
    <link rel="stylesheet" type="text/css" href="/aspnet_client/ADNCRM_CSS/ie6hacks.css" />
  <![endif]-->
 
  <!--[if lt IE 6]>
    <link rel="stylesheet" type="text/css" href="/aspnet_client/ADNCRM_CSS/iehacks-5.5.css" />
  <![endif]-->
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="ADNScriptManager" Runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true"  EnableTheming="True">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            </Scripts>
        </telerik:RadScriptManager>
 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  DefaultLoadingPanelID='AjaxDefaultLoadingPanel1' ClientEvents-OnRequestStart="onRequestStart" UpdatePanelsRenderMode="Inline"/>
        <Telerik:RadToolTipManager ID="RTTManager1" runat="server"  AutoTooltipify="false" Position="BottomCenter" RelativeTo="Element"/>
        <Telerik:RadToolTipManager ID="RTTManager2" runat="server"  AutoTooltipify="false" Position="TopCenter" RelativeTo="Element"/>
        <div class='adn_mainpanes' >
        </div>
        <div>
            <telerik:RadAjaxLoadingPanel ID="AjaxDefaultLoadingPanel1" runat="server" Style="position: absolute; left: 0; top: 0;" width="100%" height="100%" IsSticky="true" >
            </telerik:RadAjaxLoadingPanel>
        </div>
        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
            function onRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("ExportTo") >= 0)
                    args.set_enableAjax(false);
                else $get("<%= AjaxDefaultLoadingPanel1.ClientID %>").style.height = document.documentElement.scrollHeight + "px";
            }
        </script>
        </telerik:RadScriptBlock>
    </form>
</body>
</html>

and web.config

  <httpHandlers>
    <remove path="*.asmx" verb="*" />
    <add verb="*" path="adncss.axd" type="xx.HttpHandlers.CssHandler" validate="false" />
    <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 path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
    <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="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
    <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
    <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
    <add path="FtbWebResource.axd" verb="GET" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
    <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    <add path="CaptchaImage.axd" verb="*" type="xx.Captcha.CaptchaImageHandler, ADNCRM.Captcha" validate="false" />
    <!-- BlogEngine -->
    <add verb="*" path="file.axd" type="BlogEngine.Core.Web.HttpHandlers.FileHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="image.axd" type="BlogEngine.Core.Web.HttpHandlers.ImageHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="syndication.axd" type="BlogEngine.Core.Web.HttpHandlers.SyndicationHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="sitemap.axd" type="BlogEngine.Core.Web.HttpHandlers.SiteMap, BlogEngine.Core" validate="false" />
    <add verb="*" path="trackback.axd" type="BlogEngine.Core.Web.HttpHandlers.TrackbackHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="pingback.axd" type="BlogEngine.Core.Web.HttpHandlers.PingbackHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="opensearch.axd" type="BlogEngine.Core.Web.HttpHandlers.OpenSearchHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="metaweblog.axd" type="BlogEngine.Core.API.MetaWeblog.MetaWeblogHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="rsd.axd" type="BlogEngine.Core.Web.HttpHandlers.RsdHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="css.axd" type="BlogEngine.Core.Web.HttpHandlers.CssHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="js.axd" type="BlogEngine.Core.Web.HttpHandlers.JavaScriptHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="rating.axd" type="BlogEngine.Core.Web.HttpHandlers.RatingHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="opml.axd" type="BlogEngine.Core.Web.HttpHandlers.OpmlHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="blogml.axd" type="BlogEngine.Core.Web.HttpHandlers.BlogMLExportHandler, BlogEngine.Core" validate="false" />
    <add verb="*" path="sioc.axd" type="BlogEngine.Core.Web.HttpHandlers.Sioc, BlogEngine.Core" validate="false" />
    <add verb="*" path="apml.axd" type="BlogEngine.Core.Web.HttpHandlers.Apml, BlogEngine.Core" validate="false" />
    <add verb="*" path="foaf*.axd" type="BlogEngine.Core.Web.HttpHandlers.Foaf, BlogEngine.Core" validate="false" />
    <add verb="*" path="*.htm" type="System.Web.StaticFileHandler" />
    <!-- END BlogEngine -->
  </httpHandlers>
  <httpModules>
    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
    <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add name="Rewrite.NET" type="Rewrite.NET.Rewrite,Rewrite.NET" />
    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
    <!-- BlogEngine -->
    <add name="WwwSubDomainModule" type="BlogEngine.Core.Web.HttpModules.WwwSubDomainModule, BlogEngine.Core" />
    <add name="UrlRewrite" type="BlogEngine.Core.Web.HttpModules.UrlRewrite, BlogEngine.Core" />
    <add name="CompressionModule" type="BlogEngine.Core.Web.HttpModules.CompressionModule, BlogEngine.Core" />
    <add name="ReferrerModule" type="BlogEngine.Core.Web.HttpModules.ReferrerModule, BlogEngine.Core" />
    <!-- END BlogEngine -->
  </httpModules>
</system.web>
<!--
      The system.webServer section is required for running ASP.NET AJAX under Internet
      Information Services 7.0.  It is not necessary for previous version of IIS.
  -->
<system.webServer>
  <validation validateIntegratedModeConfiguration="false" />
  <modules>
    <remove name="ScriptModule" />
    <remove name="RadUploadModule" />
    <remove name="RadCompression" />
    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0" />
    <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add name="Rewrite.NET" type="Rewrite.NET.Rewrite,Rewrite.NET" />
    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0" />
    <!-- BlogEngine -->
    <add name="WwwSubDomainModule" type="BlogEngine.Core.Web.HttpModules.WwwSubDomainModule, BlogEngine.Core" />
    <add name="UrlRewrite" type="BlogEngine.Core.Web.HttpModules.UrlRewrite, BlogEngine.Core" />
    <add name="CompressionModule" type="BlogEngine.Core.Web.HttpModules.CompressionModule, BlogEngine.Core" />
    <add name="ReferrerModule" type="BlogEngine.Core.Web.HttpModules.ReferrerModule, BlogEngine.Core" />
    <!-- END BlogEngine -->
  </modules>
  <handlers>
    <remove name="WebServiceHandlerFactory-Integrated" />
    <remove name="ScriptHandlerFactory" />
    <remove name="ScriptHandlerFactoryAppServices" />
    <remove name="ScriptResource" />
    <remove name="WebServiceHandlerFactory-Integrated" />
    <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="xx_adncss_axd" path="adncss.axd" type="xx.HttpHandlers.CssHandler" 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" />
    <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="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="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="xx_Captcha_CaptchaImageHandler_axd" path="CaptchaImage.axd" verb="*" type="xx.Captcha.CaptchaImageHandler, ADNCRM.Captcha" preCondition="integratedMode,runtimeVersionv2.0" />
    <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" />
    <!-- BlogEngine -->
    <add name="ImageHandler" verb="*" path="image.axd" type="BlogEngine.Core.Web.HttpHandlers.ImageHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Syndication" verb="*" path="syndication.axd" type="BlogEngine.Core.Web.HttpHandlers.SyndicationHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Sitemap" verb="*" path="sitemap.axd" type="BlogEngine.Core.Web.HttpHandlers.SiteMap, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Trackback" verb="*" path="trackback.axd" type="BlogEngine.Core.Web.HttpHandlers.TrackbackHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Pingback" verb="*" path="pingback.axd" type="BlogEngine.Core.Web.HttpHandlers.PingbackHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="OpenSearch" verb="*" path="opensearch.axd" type="BlogEngine.Core.Web.HttpHandlers.OpenSearchHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="MetaWeblog" verb="*" path="metaweblog.axd" type="BlogEngine.Core.API.MetaWeblog.MetaWeblogHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="RSD" verb="*" path="rsd.axd" type="BlogEngine.Core.Web.HttpHandlers.RsdHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="CssHandler" verb="*" path="css.axd" type="BlogEngine.Core.Web.HttpHandlers.CssHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Javascript" path="js.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.JavaScriptHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Rating" verb="*" path="rating.axd" type="BlogEngine.Core.Web.HttpHandlers.RatingHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Opml" verb="*" path="opml.axd" type="BlogEngine.Core.Web.HttpHandlers.OpmlHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="BlogML" verb="*" path="blogml.axd" type="BlogEngine.Core.Web.HttpHandlers.BlogMLExportHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="SIOC" verb="*" path="sioc.axd" type="BlogEngine.Core.Web.HttpHandlers.Sioc, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Apml" verb="*" path="apml.axd" type="BlogEngine.Core.Web.HttpHandlers.Apml, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Foaf" verb="*" path="foaf*.axd" type="BlogEngine.Core.Web.HttpHandlers.Foaf, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />
    <add name="Html" path="*.htm" verb="*" type="System.Web.StaticFileHandler" resourceType="Unspecified" preCondition="integratedMode" />
    <!-- END BlogEngine -->
  </handlers>

Sebastian
Telerik team
 answered on 06 Dec 2010
1 answer
131 views
We are using RadEditor in our article management system.

I can apply a CSS class to a paragraph by using the ApplyClass tool (which will ad a <span class="className"> inside the paragraph. However, if i tried to select multiple paragraphs, it also wrap the content with the <span> tag for every paragraph. What I want to achieve is to have a <div class="className"> wrapping those multiple paragraphs. Can this be achieved?

e.g.

ORIGINAL:
<p>This is the first paragraph.</p>
<p>This is the second paragraph</p>
<p>This is the third paragraph</p>
<ol>
    <li>This is the first list item</li>
    <li>This is the second list item</li>
</ol>

OUTPUT:
<p class="className">This is the first paragraph.</p>
<p><span class="className">This is the second paragraph</span></p>
<p><span class="className">This is the third paragraph</span></p>
<ol>
    <li><span class="className">This is the first list item.</span></li>
    <li><span class="className">This is the second list item.</span></li>
</ol>

EXPECTED OUTPUT:
<div class="className">
<p>This is the first paragraph.</p>
<p>This is the second paragraph</p>
<p>This is the third paragraph</p>
<ol>
    <li>This is the first list item</li>
    <li>This is the second list item</li>
</ol>
</div>
Rumen
Telerik team
 answered on 06 Dec 2010
1 answer
59 views
Is there a way to create my own server control that encapsulates the rad controls? I'd like to use it by doing something like this:

<mycontrols:window /> that encapsulates the rad window?

Do I have to pretty much copy the rad window code and add my own logic or is there any easier way?
Vinkel
Top achievements
Rank 1
 answered on 06 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?