Telerik Forums
UI for ASP.NET AJAX Forum
17 answers
1.3K+ views

Hello,

i try to show a pdf file with the PdfjsProcessingSettings, but  i get the message "file fails to process."
What have i made wrong?

<telerik:RadScriptManager runat="server" ID="RadScriptManager" />
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
        <script type="text/javascript">
            window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
        </script>
        <telerik:RadPdfViewer runat="server" ID="RadPdfViewer1" RenderMode="Lightweight" Height="550px" Width="900px" Scale="1.5" ActivePage="1">
            <PdfjsProcessingSettings  File="unterlagen.pdf">
            </PdfjsProcessingSettings>
        </telerik:RadPdfViewer>
         <script>
             kendo.pdfviewer.pdfjs.processor.fn._updateDocument = function (file) {
                 if (this.pdf) {
                     this.pdf.loadingTask.destroy();
                 }
 
                 this.file = file;
             };
 
        </script>

Best regards
Jens

Vessy
Telerik team
 answered on 19 Feb 2021
1 answer
342 views

Hi,

 

We are currently using Telerik UI ASP .NET AJAX version 2011.1.519 Utlimate suite. Now, We have downloaded & upgraded to is R1 2020 (2020.1.114). 

we are having the following issues.
1. In a page, we have fields (textboxes, dropdown, etc) and "Add" button and a grid. When we fill the data in the fields and click on Add button, the row gets inserted in the grid. But, after that, we are not able to click on any controls in the page. We are getting the following error.
Uncaught DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '

        /*.RadGrid_Default .rgHeader {
            color: #333;
        }'.
    at Telerik.Web.UI.RadAjaxPanel.updateHeadStyles (http://localhost:55737/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4cbd659c-b98a-4927-a1fb-c4da1dd51125%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a7117b8b5-14b4-4d23-bc93-42b3881fb089%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3af46195d3%3a4877f69a%3ac128760b%3a19620875%3a33715776%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3a1e771326%3a88144a7a%3a2bef5fcc%3ae06b58fd%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3ae085fe68%3a58366029:7771:30)
    at Telerik.Web.UI.RadAjaxPanel.set_styles (http://localhost:55737/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4cbd659c-b98a-4927-a1fb-c4da1dd51125%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a7117b8b5-14b4-4d23-bc93-42b3881fb089%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3af46195d3%3a4877f69a%3ac128760b%3a19620875%3a33715776%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3a1e771326%3a88144a7a%3a2bef5fcc%3ae06b58fd%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3ae085fe68%3a58366029:7565:32)
    at Sys$Component$_setProperties (http://localhost:55737/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4cbd659c-b98a-4927-a1fb-c4da1dd51125%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a7117b8b5-14b4-4d23-bc93-42b3881fb089%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3af46195d3%3a4877f69a%3ac128760b%3a19620875%3a33715776%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3a1e771326%3a88144a7a%3a2bef5fcc%3ae06b58fd%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3ae085fe68%3a58366029:6:32354)
    at Sys.Component.create (http://localhost:55737/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4cbd659c-b98a-4927-a1fb-c4da1dd51125%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a7117b8b5-14b4-4d23-bc93-42b3881fb089%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3af46195d3%3a4877f69a%3ac128760b%3a19620875%3a33715776%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3a1e771326%3a88144a7a%3a2bef5fcc%3ae06b58fd%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3ae085fe68%3a58366029:6:32842)
    at <anonymous>:32:5
    at Sys._Application.add_init (http://localhost:55737/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4cbd659c-b98a-4927-a1fb-c4da1dd51125%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a7117b8b5-14b4-4d23-bc93-42b3881fb089%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3af46195d3%3a4877f69a%3ac128760b%3a19620875%3a33715776%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3a1e771326%3a88144a7a%3a2bef5fcc%3ae06b58fd%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3ae085fe68%3a58366029:6:51407)
    at <anonymous>:1:17
    at Sys._ScriptLoader._loadScriptsInternal (http://localhost:55737/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4cbd659c-b98a-4927-a1fb-c4da1dd51125%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a7117b8b5-14b4-4d23-bc93-42b3881fb089%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3af46195d3%3a4877f69a%3ac128760b%3a19620875%3a33715776%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3a1e771326%3a88144a7a%3a2bef5fcc%3ae06b58fd%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3ae085fe68%3a58366029:6:44695)
    at Sys._ScriptLoader._loadScriptsInternal (http://localhost:55737/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4cbd659c-b98a-4927-a1fb-c4da1dd51125%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a7117b8b5-14b4-4d23-bc93-42b3881fb089%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3af46195d3%3a4877f69a%3ac128760b%3a19620875%3a33715776%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3a1e771326%3a88144a7a%3a2bef5fcc%3ae06b58fd%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3ae085fe68%3a58366029:6:44749)
    at Sys._ScriptLoader._loadScriptsInternal (http://localhost:55737/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4cbd659c-b98a-4927-a1fb-c4da1dd51125%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a7117b8b5-14b4-4d23-bc93-42b3881fb089%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3af46195d3%3a4877f69a%3ac128760b%3a19620875%3a33715776%3a874f8ea2%3a490a9d4e%3abd8f85e4%3aed16cbdc%3a2003d0b8%3a1e771326%3a88144a7a%3a2bef5fcc%3ae06b58fd%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3ae085fe68%3a58366029:6:44749)

2. We are opening multiple modal windows as Parent and Child combinations. In this version, when we open the Window A and then, it is supposed to open Window B. But, Window B gets opened behind Window A.

Please let me know the fix for this.

Rumen
Telerik team
 answered on 19 Feb 2021
3 answers
107 views

How to focus MultiColumnComboBox from ComboBox selectionindexchanged?

I did this, but doesn't work for me!

 

protected void radcombobxProd_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        BindGrid2();
        RadMultiColumnComboBox1.Focus();      
    }     
Vessy
Telerik team
 answered on 18 Feb 2021
12 answers
341 views
We have replaced the regular Sharepoint 2010 Global Nav menu with the Telerik RadMenu.  When a new link is added to the Global Nav and the "Open in new window" option is selected, clicking on that new link in the Global Nav does not open the link in a new window.  Is there a setting that I am missing or is this a bug?  Is there a workaround?

Thanks
BraydonCampbell
Top achievements
Rank 1
 answered on 17 Feb 2021
8 answers
461 views
Hi,

I have a custom edit form. I open it up by setting OnClientAppointmentEditing="OpenEditSchedulePopup".

In my page I have some dropdownlists which are used to filter the data in the RadSchedule. I use a RadAjaxManager so that when the dropdown selection is changed the RadSchedule is updated via Ajax.

I would like to get the same effect when the Custom Edit Popup is closed. I have noticed that when the standard edit form is closed it uses Ajax to rebind the RadScheduler. How do I get my custom Edit popup form to use ajax to update the radscheduler when it is closed?

The standard edit form is doing it so I am sure it is possible.
n/a
Top achievements
Rank 1
Veteran
 answered on 17 Feb 2021
5 answers
108 views
I have three resources added and when someone creates and saves an appointment I want the resource to be required, is there and easy way to do this? Is this functionality built in?
Peter Milchev
Telerik team
 answered on 16 Feb 2021
1 answer
252 views
Hi,

   I am responsible for a web forms applications which has  been working fine for quite  a while. We've gotten to IE 11 and we've started having problems. So we changed to edge and found other problems. IE 11 was sending an enter key on a save of screen which caused problems with the applications. Once we changed to Edge we encountered even weirder problems:
1. We have a number of telerik dropdowns (radComboBox). There are a few that, if they are changed to the non default  values, shift back to the default value when save button is clicked. The weird thing is that this is only happening on two of the dropdowns, always the same two. The other drop downs that are working fine (which is most of them, as many as fifty). So these two that aren't working are "random". This is the second time we've found something like this. This is happening on two web forms
2. We switched to the same web form and used IE 11. The problem went away. 

In both cases where this happened this has happened with random dropdowns. However it always happens with the same two dropdown. Just to clarify, all the dropdowns, the ones that work and the one's that don't,  have exactly the same two values in them:
"GO"
"No GO".

Any help would be appreciated.

Thanks,
Neil Newton
Doncho
Telerik team
 answered on 16 Feb 2021
11 answers
635 views
Hi

I'm a few days trying to solve a strange behavior with radmultiselect, but without success.

I have a page works fine for very years, but now I added a new control, the radmultiselect. When I use in production Redis with distributed session/cache provider, the page crash. Many strange behaviors occurs. When I use inproc, everything works fine. 

I added the radmultiselect dinamicaly like this example:

Telerik.Web.UI.RadMultiSelect rms;
rms = new RadMultiSelect();
rms.ID = "xyz";
rms.DataTextField = "text";
rms.DataValueField = "value";
rms.Filter = RadMultiSelectFilter.Contains;
rms.MinLength = 3;
rms.Font.Size = FontUnit.Small;
rms.Width = Unit.Percentage(70);
rms.AutoBind = false;
rms.AutoPostBack = true;
rms.WebServiceClientDataSource.PageSize = 20;
rms.WebServiceClientDataSource.AutoSync = true;
rms.WebServiceClientDataSource.AllowPaging = true;
rms.WebServiceClientDataSource.EnableServerPaging = true;
rms.WebServiceClientDataSource.EnableServerFiltering = true;
rms.WebServiceClientDataSource.EnableViewState = true;
rms.WebServiceClientDataSource.WebServiceSettings.Select.DataType = ClientDataSourceDataType.JSON;
rms.WebServiceClientDataSource.WebServiceSettings.Select.ContentType = "JSON";
rms.WebServiceClientDataSource.WebServiceSettings.Select.Url = f.FixupUrl("~/dal/webservices/service.asmx/getTags");
rms.Enable = true;
"name of placeholder".Controls.Add(rms);


The problem occurs when I try to add the database value.

I tried some formats:

1 - Dynamic list

List<dynamic> selected = new List<dynamic>();
 
foreach (DataRow dr_rms in dt_rms.Rows) {
    MultiSelectItem msi = new MultiSelectItem();
    msi.Value = dr_rms["value"].ToString();
    msi.Text = dr_rms["text"].ToString();
 
    rms.Items.Add(msi);
 
    var item = new {
        text = dr_rms["text"].ToString(),
        value = dr_rms["value"].ToString()
    };
    selected.Add(item);
}
 
rms.Value = selected;


2 - Fixed Class

public class RadMultiSelectClass {
    public int value { get; set; }
    public string text { get; set; }
}
 
List<RadMultiSelectClass> selected = new List<RadMultiSelectClass>();
 
foreach (DataRow dr_rms in dt_rms.Rows) {
    selected.Add(new RadMultiSelectClass { value = Convert.ToInt32(dr_rms["value"].ToString()), text = dr_rms["text"].ToString() });
}
 
rms.Value = selected;

webconfig:

Everything works fine: 
The radmultiselect get the value from database and the page flow are totaly normaly. With many postbacks, everything works fine.
<sessionState mode="InProc" cookieless="false" timeout="120" />


Page with strange behaviors, loosing sessions.
<sessionState mode="Custom" customProvider="MySessionStateStore">
  <providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="xxx.cache.amazonaws.com" port="6379" accessKey="" ssl="false" retryTimeoutInMilliseconds="60" throwOnError="false" />
  </providers>
</sessionState>

If I comment the "// rms.Value = selected;" The page works fine, with or without redis. The problem only occurs when I put some value to rms.value.

The RadMultiSelect.Value have any problem with Redis or distributed session provider?

 

Thanks

Peter Milchev
Telerik team
 answered on 16 Feb 2021
2 answers
198 views

Hi I am trying change to change the color of the bar chart and databinded using sql datasource. the 

Here's the code behind

Page load code behind

Dim barColors As Color() = New Color(7) {Color.Purple, Color.SteelBlue, Color.Aqua, Color.Yellow, Color.Navy, Color.Green, Color.Blue, Color.Red}
        GraphIncoming.ChartTitle.Text = "Number of Incoming request per Area for the Year " + dpdYearWKPerArea.SelectedValue.ToString + ""
        GraphIncoming.DataBind()
        Dim k As Integer = 0
        GraphIncoming.PlotArea.Series(0).Name = "Value"
        For Each item As ChartSeriesItem In GraphIncoming.PlotArea.Series(0).Items
            item.Appearance.FillStyle.MainColor = barColors(System.Math.Max(System.Threading.Interlocked.Increment(k), k - 1))
        Next
######

aspx Page

 <telerik:RadHtmlChart ID="GraphIncoming" runat="server" DataSourceID="SqlDataSource2" Font-Underline="False" Skin="Office2010Blue" Width="100%">
                                                        <PlotArea>
                                                            <Series >
                                                                <telerik:ColumnSeries DataFieldY="Value"  >
                                                                    <Appearance FillStyle-BackgroundColor="#337ab7"></Appearance>
                                                                    <TooltipsAppearance Color="White" />
                                                                </telerik:ColumnSeries>
                                                            </Series>
                                                            <XAxis DataLabelsField="Area">
                                                                <LabelsAppearance RotationAngle="45">
                                                                </LabelsAppearance>
                                                                <TitleAppearance Text="">
                                                                    <TextStyle Bold="true" Color="Red" FontFamily="Verdana" FontSize="12px" Italic="true" />
                                                                </TitleAppearance>
                                                            </XAxis>
                                                            <YAxis>
                                                                <TitleAppearance Text="Number of Incoming request">
                                                                    <TextStyle Bold="true" Color="Red" FontFamily="Verdana" FontSize="12px" Italic="true" />
                                                                </TitleAppearance>
                                                            </YAxis>
                                                        </PlotArea>
                                                        <Legend>
                                                            <Appearance Visible="True">
                                                            </Appearance>
                                                        </Legend>
                                                        <ChartTitle >
                                                            <Appearance Visible="True">
                                                                <TextStyle Bold="true" Color="Blue" FontFamily="Verdana" FontSize="12px" Italic="true" />
                                                            </Appearance>
                                                        </ChartTitle>

                                                        <Zoom Enabled="False"></Zoom>
                                                    </telerik:RadHtmlChart>

 

 

 

Vessy
Telerik team
 answered on 15 Feb 2021
1 answer
306 views
Hi,

Wound like to check whether Telerik.Web.UI.dll 2009 version is affected by CVE-2019-18935 or CVE-2017-11317?

Our application is using Telerik.Web.UI.dll 2009 version and please let us know if any vulnerabilities with this version?

Please advise.
Vessy
Telerik team
 answered on 15 Feb 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?