Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
159 views

I just updated to ASP>NET AJAX 2024 Q4 and I get an error in the following code...

string fileName = "SampleFile.xlsx"; 
 
IWorkbookFormatProvider formatProvider = new XlsxFormatProvider(); 
 
using (Stream output = new FileStream(fileName, FileMode.Create)) 
{ 
    formatProvider.Export(workbook, output); 
} 

'formatProvider.Export(workbook, output);' is looking for an additional parameter now 'TimeSpan? timeout'.

I took a guess and entered null and it seems to work.

What are the options for this new parameter?

Rumen
Telerik team
 updated answer on 29 Nov 2024
2 answers
119 views

When you switch between the Design tab and the HTML tab in the RadEditor, it does not remember your position in the text/content.

It seems like this is a bug, but I am wondering if there is any way to tell the RadEditor to remember the position when switching between those two tabs.

If you have a large amount of content with many HTML tags it becomes quite difficult to find the exact position you were in on the other tab.

 

Rumen
Telerik team
 answered on 29 Nov 2024
1 answer
76 views

Hello,

 

I have the advanced template setup like so in the radscheduler:

 


                        <AdvancedEditTemplate> 
                        <div class="card" style="padding:10px" >
                            <div class="card-header corpsnet_panelPrimary" style="padding:10px">
                                <strong><h4><asp:Label ID="lblTitle"  runat="server" Text='<%# Bind("RosterDateStringLong") %>' ></asp:Label></h4></strong>
                            </div>
                            <div class="card-body smallscreensection" style="padding:10px">
                                <div class="container">
                                    <div class="row">
                                        <div class="col-md-4" >                                           
                                           CREW:</h5>
                                        </div>
                                        <div class="col-md-8" >
                                            <h5 class="card-title"><asp:Label ID="lblCrew" runat="server" Text='<%# Bind("CrewName") %>' ></asp:Label></h5>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-4" >                                           
                                           <h5>SUPERVISOR:</h5>
                                        </div>
                                        <div class="col-md-8" >
                                            <h5 class="card-title"><asp:Label ID="Label1" runat="server" Text='<%# Bind("SupervisorUserProfileName") %>' ></asp:Label></h5>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-4" >                                           
                                           <h5>MEETING POINT (Click for directions):
                                        </div>
                                        <div class="col-md-8" >
                                            <h5 class="card-title-link"><asp:HyperLink runat="server" ID="hyplnkMeetingPoint" Target="_blank" Text='<%# Bind("MeetingPointDescription") %>' NavigateUrl='<%# Bind("MeetingPointURL") %>' ></asp:HyperLink></h5>
                                        </div>
                                     </div>
                                    <div class="row">
                                        <div class="col-md-4" >                                           
                                           <h5>MEETING/START TIME:
                                        </div>
                                        <div class="col-md-8" >
                                            <h5 class="card-title"><asp:Label  ID="lblStartTime" runat="server" Text='<%# Bind("StartTimeString") %>' ></asp:Label></h5>
                                        </div>
                                     </div>
                                    <div class="row">
                                        <div class="col-md-4" >                                           
                                           <h5>PROJECT:</h5>
                                        </div>
                                        <div class="col-md-8" >
                                            <h5 class="card-title"><asp:Label  ID="lblProject" runat="server" Text='<%# Bind("Project") %>' ></asp:Label></h5>
                                        </div>
                                     </div>
                                    <div class="row">
                                        <div class="col-md-12" >                                           
                                           <asp:Button ID="btnClose" CssClass="btn btn-primary" runat="server" Text="Close" OnClientClick="closeEditForm(); return false;" />
                                        </div>
                                     </div>
                                </div>
                            </div>
                        </div>
                        </AdvancedEditTemplate>                         

I want the close button to revert to the weekview from the edit form.  I can get the form to close but it's then blank.  How do I show the radscheduler weekview view again on close.  here is my closeEditForm javascript function


        function closeEditForm() {
            var scheduler = $find("<%= RadScheduler1.ClientID %>");
            scheduler.hideAdvancedForm();
            // Switch the view to Month View
            scheduler.set_selectedView(Telerik.Web.UI.SchedulerViewType.MonthView);
            scheduler.navigateToDate(new Date()); // Optional: Navigate to today's date 
            return false;
        }
thanks!!
Rumen
Telerik team
 answered on 27 Nov 2024
4 answers
105 views

I try to use

         <telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" EnableEmbeddedSkins="True"
             InitialPath="\\network\EL00394132">
             <Configuration ViewPaths="\\network\EL00394132" 
                 DeletePaths="\\network\EL00394132" 
                 UploadPaths="\\network\EL00394132" SearchPatterns="*.*"/>
        </telerik:RadFileExplorer>

 

access a network shared folder by creating my own FileBrowserContentProvider 

            this.RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(Extensions.NetworkShareProvider).AssemblyQualifiedName;

It can view files

 

But when I try to upload a file

 

After click Upload button, it triggers my own FileBrowserContentProvider class

but no files are being uploaded, then get an error

 

it dose not trigger

 

How to fix? Please help !

Rumen
Telerik team
 answered on 22 Nov 2024
1 answer
99 views

When I try to open a file I'd like to be able to click on a link to an Excel file and have it open directly in Excel on my computer, without any intermediate popup windows. Is this possible? or download to local?

Rumen
Telerik team
 answered on 22 Nov 2024
1 answer
82 views
How to make this "Drop Files Here" zone bigger?



Rumen
Telerik team
 answered on 22 Nov 2024
1 answer
232 views
Hello

I have a grid with many columns, for this I created a horizontal and vertical scroll bar, but I would also like to fix the header, but when I need to scroll vertically and horizontally and the header follows, it only works vertically, horizontally the header does not follow the columns.

Thank you in advance
Vasko
Telerik team
 answered on 22 Nov 2024
1 answer
64 views
Hello,

I have two projects with very similar code and I can identify the properties that concern the reordering of columns on the client:

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnableRowHoverStyle="true">

The difference between the projects is that one uses a masterpage.

Any suggestions?
Vasko
Telerik team
 answered on 21 Nov 2024
1 answer
101 views
We recently migrated our website over from a 2012 server to a 2022 server. Upon migration we're now receiving the following error:
Telerik.Web.UI.InsecureExternalStyleSheetException: The style sheet '~/Scripts/app.js' is not located in any of the 'Style Sheet' folders designated in the web.config.
Telerik.Web.UI.InsecureExternalStyleSheetException: Telerik.Web.UI.InsecureExternalStyleSheetException: The style sheet '~/Scripts/app.js' is not located in any of the 'Style Sheet' folders designated in the web.config.
  at Telerik.Web.UI.ExternalScriptHelper.ResolveSecurePath(String scriptRelativePath)

We then found this link: Telerik Forums Post

Following the instructions, we now have the following in our web.config file in <appSettings>:
<add key="Telerik.Web.UI.StyleSheetFolders" value="~/Scripts/; ~/styles/; ~/ReportViewer/js/; ~/kendo/js/;" />
We added multiple value's for the multiple different files that were being placed in the error messages.

We also ensured that our Master files for our different types of pages have been updated to match:

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <telerik:RadScriptReference Path="~/Scripts/app.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1">
            <StyleSheets>
                <telerik:StyleSheetReference Path="~/Scripts/app.js" />
            </StyleSheets>
        </telerik:RadStyleSheetManager>
The errors are still being thrown. The pages work fine, but we don't want to be continuously being given these errors over and over again in Stackify.
Rumen
Telerik team
 answered on 21 Nov 2024
1 answer
86 views

Hi Team

We have removed the AjaxControlToolkit reference as it is no longer required from our solution.  However, one file, where no changes were made, is now breaking, after we removed the AjaxControlToolkit package. This file uses the Telerik RadCalendar control and is breaking during initialization.

Interestingly, the error disappears when the AjaxControlToolkit package is re-added.  The following error is noticed when toolkit package is removed ,

Uncaught TypeError: Cannot read properties of undefined (reading '_events')
    at Sys.UI.DomEvent.addHandler (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6:57366)
    at Telerik.Web.UI.RadCalendar.initialize (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a59462f1%3aa51ee93e:109:8)
    at Telerik.Web.UI.RadCalendar.endUpdate (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6:53689)
    at Sys.Component.create (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6:55151)
    at <anonymous>:4:5
    at Sys._Application.add_init (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6:67025)
    at <anonymous>:1:17
    at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:15:4736)
    at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:15:4794)
    at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMain_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4533c2d0-c52e-4b49-a697-806d77e9914d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.3.1111.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abcb430ee-771a-4d39-a6d4-3550d81a8d67%3a16e4e7cd%3a365331c3%3a88144a7a%3aed16cbdc%3a24ee1bba%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3af46195d3%3a4877f69a%3a33715776%3a490a9d4e%3abd8f85e4%3a58366029%3a2003d0b8%3a1e771326%3aaa288e2d%3a258f1c72%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:15:4794)

The corresponding ajax and vb file is uploaded here for review.

Rumen
Telerik team
 answered on 21 Nov 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?