Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
304 views

In general, I want a treeview I have to disable html encoding (enablenodetexthtmlencoding="false"). It looks great and lets me style the nodes accordingly. In some circumstances, I want to allow nodes to have < in their names, which causes issues with the encoding:

Examples:

CIR<CLE turns into CIR<cle< span=""/>

CIRCLE<E> turns into CIR <e/>

both of which display as HTML.

Is there any property or method to get these names to display, as needed, at the node level which will override the property set at the radtreeview?

Charles
Top achievements
Rank 1
 answered on 12 Feb 2016
2 answers
746 views

I am attempting to get the RadSpell control from the Q1 2016 release to work in my project, but thus far I keep getting a 404 error when clicking on the button. I used the smart tag for the RadSpell to add the appropriate HttpHandlers and what-not:

 

<httpHandlers>
            <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>

as well as the following to my web.config file:

<handlers>
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
</handlers>

However, every time I try to click the button I get a 404 for the following RequestUrl:

http://localhost:59087/Telerik.Web.UI.DialogHandler?DialogName=SpellCheckDialog&renderMode=2&Skin=Default&Title=&doid=48aede83-f455-4bde-a8ff-57a75e51bcbe&dpptn=&dp=dwkeUFUDGy9nFThMLRwMTlEnAjcgARF2bU8WVEZqVn4keTgQF38eXRMxD3cnZENrRH98G2h3QWJlBiBkKxwYTld6AiUfEhF2VBEeUkF6Vn4keTgQF38eUBMyJVgmdH4Gcn0OX2t3dDNvYAFVGzYmS1B4ET0IFChwZXUeVEdsfEkeHRICL0EnRhMxLUkga2Vdan4NWXwQVh5UBRoWKAxZTWoSDnsREBkybREaTHkbe0ovQwYZLh48WRI3D0AUWXkBcFYSZGEQVh1XPxJPKxw2flEdDiIfEA0rbWQCVkJ%2BG0MxaxoCL2QnRhMwOlIUa2EAfG48flIDdChXFxpJEwwuSmYCDjghOjMsbXoGcUZxbFUpQwYeF38RbQYjD1sYcFxGan48bVIpZDVXBQJTLR4MVlEnfTcfAmYwU2UgUkFHY0ovQwYZLh48WRIdABINEmFdRFcaRlIvEy1vFQFVGzYmS1B4ET0IPig%2BeBI0UnobaEocdjACKWsFXD0YNUkmZExCdFcOWVJ2dyh4ESMRGAwQUFYMEjcnFCcAbnU0Xnl6WU4xazcSGEERQw1FLRQbdU9LQmwRU2cpThZXFA5tHRwYd1d7NBYgHxEVek8kV3R9ZAkueCwyA3sdQw1FLRQWZBp2aHw4aGEQEmxjYG1fEx4MVlEnfTcfAmYwU2UgUkFHY0ovQwYZLh48WRIdABENE31Ef20CWWsRdC9sPwJNExw2U2Z4CjckDx13VFs0Y3p%2BVkMnfTcQAWo7UzsjIhYQdB5Zf1cwRmMTEzJvBQZNEwwye2oSCiIQZA1yVWUaXkJueFUZbTgtFHsRUAUnAFsOZXlIQm0dHWB3dCFRFW1SGxwMUlcNKDgnOhk%2BUnQCUkdxZFMneBJfLms%2FZQYjRk0OZnFZRHIGRn0AYyh6YxpREwwYS2J4LCIcZSsWVE91FkJ%2BfFUeRzgtFHsRUAUnAFgOZ2IGcH0eWWscaCtUK2FjKAwmS1F4IAsfAAU3VU8gFEJ%2BF0wxRRIaFHsRXAVFJRQhZH1%2Bf215Rn0BeDNXGhpKBR8hS2UhIBkmZi8eZEwOTEZ9eGAqQiQgKXozfD5HIXcPE2FCf1EsGVUSdyFkPyxPG2gIfmocIAkmZRY%2BbhECbnFFZEokRSQ9KHsvcjxHIXYPT3FBcn0wfWIvWh9kPjBHHh4QDmocJ3shAR0SZHooanVvQggpeA1aKGlYfwssIW4QZX1LdW8eZXwTaBJgOBJMKw01DWondRkIAA0OZE8kTXIaSlcreyg9LHsjYj0zB3UPT3IAcFErH1IoUgN7FjhoHx4MDGQndQknEmpxbREka0JFdEkqeBIlLBxcaA8gRxYQZEdbQn0kXFMpZCJQBBZOLRwHS2EnAj0mZQo0emE7GQ%3D%3D

I can't for the life of me figure out what I've done wrong. I know it has to be some configuration issue, because I can create a Telerik Web Forms app and drop the RadSpell control, click it and it works fine.

Thanks in advance for any help.

Danail Vasilev
Telerik team
 answered on 12 Feb 2016
1 answer
67 views

When i click the file select button moving up to hide the half button. How to resolve this any Idea.

 

Thanks,

Murugan

Ivan Danchev
Telerik team
 answered on 12 Feb 2016
5 answers
216 views
Hi,

Is it possible to set a custom search icon for the RadSearchbox?

Thanks,
Freddy
Ivan Danchev
Telerik team
 answered on 12 Feb 2016
3 answers
401 views

 

Hi,

I'm curious as to whether the loading panel is compatibile with composite controls.

I have created a composite control in an external project and am importing it into my web application.  When I attempt to use the loading panel with the control, I don't see anything as the data loads.

01.<telerik:RadAjaxManager ID="RadAjaxManagerGrid" runat="server" UpdatePanelsRenderMode="Inline">
02.    <AjaxSettings>
03.        <telerik:AjaxSetting AjaxControlID="ShareSelectorGrid">
04.            <UpdatedControls>
05.                <telerik:AjaxUpdatedControl ControlID="ShareSelectorGrid" LoadingPanelID="RadAjaxLoadingPanelGrid" />
06.            </UpdatedControls>
07.        </telerik:AjaxSetting>
08.    </AjaxSettings>
09.</telerik:RadAjaxManager>
10.<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelGrid" runat="server" />

When I instead try to use the subcontrols referenced inside of the composite control, I get an error:

"Unhandled exception at line 1, column 132567 in http://localhost:8756/bundles/MsAjaxJs?v=c42ygB2U07n37m_Sfa8ZbLGVu4Rr2gsBo7MvUEnJeZ81
0x800a138f - JavaScript runtime error: Unable to get property 'PRM_MissingPanel' of undefined or null reference"

Here's the code that generates this error:

01.<telerik:RadAjaxManager ID="RadAjaxManagerGrid" runat="server" UpdatePanelsRenderMode="Inline">
02.    <AjaxSettings>
03.        <telerik:AjaxSetting AjaxControlID="RadButtonAAFCULoadShareIDs">
04.            <UpdatedControls>
05.                <telerik:AjaxUpdatedControl ControlID="SymDropDownListShareLoanAAFCUShareIDs" LoadingPanelID="RadAjaxLoadingPanelGrid" />
06.            </UpdatedControls>
07.        </telerik:AjaxSetting>
08.    </AjaxSettings>
09.</telerik:RadAjaxManager>
10.<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelGrid" runat="server" />

Maria Ilieva
Telerik team
 answered on 12 Feb 2016
1 answer
172 views

Hi,
My query is regarding Rad Editor.
The problem is when I create a custom commands in rad editor to apply styles to content as font size, font type etc.,.
But at the same when I try to apply CSS class to content it is not working for me.
Below is my Code


Below is the code working

EditorCommandList["Mandatory"] = function (commandName, editor, args) {

            if (editor.getSelectionHtml() != "") {
                editor.fire("FontSize", { value: "40" });
}
}

Below is the code not working

EditorCommandList["GuideLines"] = function (commandName, editor, args) {

            if (editor.getSelectionHtml() != "") {

                editor.fire("ApplyClass", { value: "radGuideLines " });

}
}

In the above code when i try apply a class using "ApplyClass" command it is not working.

Please provide me solution ASAP.

 

Thanks

 

 

Nikolay
Telerik team
 answered on 12 Feb 2016
1 answer
159 views

Hi!

I am trying to build a page using multiple radHtmlCharts, all of them with drill down functionality.

Followed the steps described in the demo page: http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultvb.aspx?show-source=true

I am using onClientSeriesClicked event and the AjaxRequest event of the Ajax Manager to force drill down. As far as i understand I can have only one Ajax Manager in my page and all of my htmlCharts points to the same AjaxRequest.

Here is the code (sample) in my .aspx page:

    <head runat="server">
    ...

        <script src="script.js" type="text/javascript"></script>
    </head>

    ...
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
             <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadHtmlChartAverageImageResolutionOfCountries" LoadingPanelID="AjaxLoadingPanel1" />
             </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
             <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="RadHtmlChartAverageComplianceOfCountries" LoadingPanelID="AjaxLoadingPanel1" />
             </UpdatedControls>
       </telerik:AjaxSetting>
        ...
    </telerik:RadAjaxManager>
 
 <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Skin="BlackMetroTouch">
 </telerik:RadAjaxLoadingPanel>
 
 <telerik:RadCodeBlock ID="RadCodeBlock65" runat="server">
    <script type="text/javascript">
        function getAjaxManager()
            {
                 return $find("<%=RadAjaxManager1.ClientID%>");
            }
    </script>
 </telerik:RadCodeBlock>
    ...
    <div class="col4">
 
            <telerik:RadHtmlChart runat="server" ID="RadHtmlChartAverageImageResolutionOfCountries" OnClientSeriesClicked="AverageImageResolutionOfCountriesOnClientSeriesClicked" Skin="Black"  Height="280"
          <Appearance>
     <FillStyle BackgroundColor="#262626"></FillStyle>
  </Appearance>
  <ChartTitle Text="XXXXX1"></ChartTitle>
   <PlotArea>
    <Series>
      <telerik:ColumnSeries Name="Countries" DataFieldY="AverageImageResolution">

       ...

      </telerik:ColumnSeries>
   </Series>
   <XAxis DataLabelsField="Country">
   </XAxis>
   <YAxis>
   </YAxis>
 </PlotArea>
 </telerik:RadHtmlChart>
    </div>
    ...
    <div class="chart3">
 <telerik:RadHtmlChart runat="server" ID="RadHtmlChartAverageComplianceOfCountries" OnClientSeriesClicked="AverageComplianceOfCountriesOnClientSeriesClicked"  Skin="Black" Height="300">
   <ChartTitle Text="XXXXXX2">
           </ChartTitle>
   <PlotArea>
     <Series>
      <telerik:ColumnSeries Name="Countries" DataFieldY="Compliance">
                 ...
      </telerik:ColumnSeries>
     </Series>
     <XAxis DataLabelsField="Country">
     </XAxis>
     <YAxis>
     </YAxis>
  </PlotArea>
 </telerik:RadHtmlChart>
   </div>

   ...

 

So, if i try to drill down a specific radHtmlChart  all the other charts are also getting refreshed and if they use the same categories (ColumnSeries: Countries) then they also drill down (if not, then they just load empty).

The script i am using (script.js):

(function (global, undefined) {
    global.AverageImageResolutionOfCountriesOnClientSeriesClicked = function (sender, args) {
        var ajaxManager = global.getAjaxManager();
 
        if (args.get_seriesName() !== "Sites") {
            ajaxManager.ajaxRequest(args.get_category());
        }
 
 
    }
})(window);
 
(function (global, undefined) {
    global.AverageComplianceOfCountriesOnClientSeriesClicked = function (sender, args) {
        var ajaxManager = global.getAjaxManager();
 
        if (args.get_seriesName() !== "Sites") {
            ajaxManager.ajaxRequest(args.get_category());
        }
    }
})(window);
 

And in VB code:

Protected Sub RadAjaxManager1_AjaxRequest(sender As Object, e As AjaxRequestEventArgs)
 
        ' Drill down for Average Image Resolution ''''''''''''''''''''''''''''''''''''''''''''''''''''''
        Dim seriesNameRes As String = RadHtmlChartAverageImageResolutionOfCountries.PlotArea.Series(0).Name
        If seriesNameRes = "Countries" Then
             
            Dim CountryRes As String = (e.Argument).ToString
            RadHtmlChartAverageImageResolutionOfCountries.PlotArea.XAxis.DataLabelsField = "Site"
            RadHtmlChartAverageImageResolutionOfCountries.PlotArea.Series(0).DataFieldY = "AverageImageResolution"
            RadHtmlChartAverageImageResolutionOfCountries.PlotArea.Series(0).Name="Sites"
            RadHtmlChartAverageImageResolutionOfCountries.DataSource = GetAverageImageResolutionOfCountrySites(CountryRes)
            RadHtmlChartAverageImageResolutionOfCountries.DataBind()
         
           End If
         
 
        ' Drill down for Compliance ''''''''''''''''''''''''''''''''''''''''''''''''''''''
        Dim seriesNameCmpl As String = RadHtmlChartAverageComplianceOfCountries.PlotArea.Series(0).Name
        If seriesNameCmpl = "Countries" Then
             
            Dim CountryCmpl As String = (e.Argument).ToString
            RadHtmlChartAverageComplianceOfCountries.PlotArea.XAxis.DataLabelsField = "Site"
            RadHtmlChartAverageComplianceOfCountries.PlotArea.Series(0).DataFieldY = "Compliance"
            RadHtmlChartAverageComplianceOfCountries.PlotArea.Series(0).Name="Sites"
            RadHtmlChartAverageComplianceOfCountries.DataSource = GetAverageComplianceOfCountrySites(CountryCmpl)
            RadHtmlChartAverageComplianceOfCountries.DataBind()
         
           End If
 
        End Sub

How could i refresh only the HtmlChart for which i am calling the onClientSeriesClicked event?

Thanks!

Thanasis

Danail Vasilev
Telerik team
 answered on 12 Feb 2016
1 answer
141 views

I am trying to use RadCloudUploader with Azure Media Services. I need to override the BlobContainer per uploaded file so that I can upload each into their own container in azure blob storage (due to the way Azure Media Services works). I have created a custom provider and custom upload handler but the problem is how to get the azure container name into the AzureProvider Initialize method.

Here is how the processing needs to work:

  1. Get Azure Media Services container name
  2. Upload each selected file into the correct blob container (name comes from step 1)
  3. Do some additional processing after each file has uploaded (database work, additional Azure Media Services API stuff, etc.)

Step 2 is the problem. I just need to be able to specify the container name (not the folder path, as per the Handler's SetKeyName override). Thanks for any help, I've been going a bit crazy on this one.

 
Peter Filipov
Telerik team
 answered on 12 Feb 2016
1 answer
128 views

x axis label alignment not able to set even if i given rotationangle=20 also

 

Please see attached files without angle and with angle images.

 

 

Danail Vasilev
Telerik team
 answered on 12 Feb 2016
15 answers
505 views
Hello,

I have the grid which has groups set programmatically , and that functionality works as needed, subtotals get calculated fine. The grid is fully dynamic. What I need to do, is to have text inside each group footer which would display field name or field value of that group. That text needs to be under the column where group field name is displayed. For example:

ClientID: 1
ProductID: 2
Test 1 10 50
Test 2 20 60
ProductID 2 Total: 30 110
ClientID 1 Total: 30 110

Thanks,
Alex
Konstantin Dikov
Telerik team
 answered on 12 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?