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

I am using a custom provider for file explorer control that gets folders from a database. The folders number in the 40 000s. I am facing the problem of now the page taking too long to load because the file explorer is trying to get the subfolders  for the 40000 something folders in the root directory in the the ResolveRootDirectoryAsTree Method. The page now takes hours to load.


 Public Overrides Function ResolveRootDirectoryAsTree(ByVal path As String) As DirectoryItem
        Dim directory As DirectoryItem = dataServer.GetDirectoryItem(path, True)

        If directory Is Nothing Then
            Return Nothing
        End If
        directory.Permissions = GetPermissions(path)

        If directory.Directories IsNot Nothing Then
            For Each dir As DirectoryItem In directory.Directories
                dir.Permissions = GetPermissions(path)
            Next
        End If

        Return directory
    End Function


 


Public Function GetDirectoryItem(ByVal path As String, ByVal includeSubfolders As Boolean) As DirectoryItem
        Dim item As DataRow = Me.GetItemRowFromPath(path)

        Return If(item IsNot Nothing, Me.CreateDirectoryItem(item, includeSubfolders), Nothing)
    End Function

    Private Function CreateDirectoryItem(ByVal item As DataRow, ByVal includeSubfolders As Boolean) As DirectoryItem
        'correct permissions should be applied from the content provider
        Dim directory As New DirectoryItem(item("Description").ToString(), Me.GetLoaction(item), Me.GetFullPath(item), [String].Empty, PathPermissions.Read, Nothing,
         Nothing)
        directory.Attributes.Add("CategoryID", item("CategoryID"))

        If includeSubfolders Then
            Dim subDirItems As DataRow() = GetChildDirectories(item)
            Dim subDirs As New List(Of DirectoryItem)()

            For Each subDir As DataRow In subDirItems
                subDirs.Add(CreateDirectoryItem(subDir, False))
            Next

            directory.Directories = subDirs.ToArray()
        Else
            directory.Directories = (New List(Of DirectoryItem)).ToArray()
        End If

        Return directory
    End Function

 

Is there a way to stop the initial load of the subfolders of the folders in the root folder and load them on demand? Or what can i do to make it more efficient in loading the too many folders?

 

Rumen
Telerik team
 answered on 18 Aug 2022
1 answer
813 views

I'm tasked with upgrading our Telerik suite to the latest Progress Telerik UI for ASP.NET AJAX (I downloaded Telerik_UI_for_ASP.NET_AJAX_2022_2_622) from a version a decade ago (2013.3.1114.45 - Telerik.Web.Design; 2011.2.712.35 - Telerik.Web.UI; 2012.3.1205.35 - Telerik.Web.UI.Skins).  The website uses web form and a lot of grids, radtreeview, radwindows and tabs.  I'd like deployment to be as easy as possible so not to have to install anything but rather deploy as part of the bin folder.

Please give me any guidance for this.  I'd really appreciate it.  Is there a nuget package that I can simply install?

Thank you very much!

Best regards

Valentin Dragnev
Telerik team
 answered on 15 Aug 2022
0 answers
106 views

I'm  using the ASP.NET Ajax version 2022.2.613.4.0 HTML Chart. Its been working fine. I have not changed any code or settings. Suddenly my application started throwing the JavaScript error below.  I have verified that my data sources are returning the required data. Attached are the code pages.  

Grateful for any help troubleshooting and resolving this issue.

 

/* START Telerik.Web.UI.HtmlChart.RadHtmlChart.js */
(function(a,m){Type.registerNamespace("Telerik.Web.UI");
Type.registerNamespace("Telerik.Web.UI.HtmlChart");
$telerik.toHtmlChart=function(n){return n;
};
$telerik.findHtmlChart=$find;
var b=Telerik.Web.UI,f=window,h=f.kendo,c=h.dataviz.ui.themes{},l=a.proxy,g=a.isFunction,k=f.parseInt,d=10,j="load",i="kendoWidgetInitializing";
HEIGHT="height",WIDTH="width",SPARKLINE="sparkline",DEFAULT_SPARKLINE_HEIGHT="20px",DEFAULT_CHART_HEIGHT=400,STOCK="stock",SERIES_CLICKED="seriesClicked",SERIES_HOVERED="seriesHovered",SERIES_SUPPORTING_GAP_AND_SPACING=["bar","column","radarColumn","candlestick","ohlc"],MISSING_RADCLIENTDATASOURCE="MissingRadClientDataSource";
var e="Default"; 
Fred
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 12 Aug 2022
0 answers
222 views
Hello, I am developing an ASP.NET Web Forms Application where I am using Telerik KendoGrid. The paging seems to work fine when I click on page numbers but the next, previous buttons and other advanced paging options are not working. Is there a way out?
SB
Top achievements
Rank 1
 asked on 12 Aug 2022
1 answer
291 views

For example, in the documentation's demo (below), if George's work schedule on Monday was both 8:00-14:00 AND 16:00-18:00, could those two bars be on the same line?

Telerik Web UI HtmlChart Range Bar Chart Demo | Telerik UI for ASP.NET AJAX

Rumen
Telerik team
 updated answer on 12 Aug 2022
0 answers
178 views

I am writign a scheduler program that handles drag and drop appointment from a RadGrid. I need to pass a certain amount of data to the AdvancedInsert form via custom attributes, but I can't figure out how. I have tried using ISchedulerTimeSlot.FormContainer.Appointment.Attributes and ISchedulerTimeSlot.Appointments[0].Attributes but in both cases null is returned and crash the program. I am trying to use the AdvancedInsertTemplate inline rather than via a usercontrol and controlling the form via the FormCreated method.

My current code:

        

protected void AppointmentList_RowDrop(object sender, GridDragDropEventArgs e) { GridDataItem dataItem = e.DraggedItems[0]; string id = (string)dataItem.GetDataKeyValue("ID"); string customer = (string)dataItem.GetDataKeyValue("Customer"); string title = (string)dataItem.GetDataKeyValue("Title"); string jobtype = (string)dataItem.GetDataKeyValue("JobType"); string targetSlotIndex = TargetSlotHiddenField.Value; if (targetSlotIndex != string.Empty) { HandleSchedulerDrop(id, title, customer, jobtype, targetSlotIndex); TargetSlotHiddenField.Value = string.Empty; } ISchedulerTimeSlot slot = AdeoJobScheduler.GetTimeSlotFromIndex(targetSlotIndex); AdeoJobScheduler.ShowAdvancedInsertForm(slot.Start);

// Pass extra details for JobType, Subject here }



        protected void AdeoJobScheduler_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
        {
            RadScheduler scheduler = (RadScheduler)sender;

            if (e.Container.Mode == SchedulerFormMode.AdvancedInsert || e.Container.Mode == SchedulerFormMode.AdvancedEdit)
            {

                RadDateTimePicker startInput = (RadDateTimePicker)e.Container.FindControl("StartInput");
                startInput.SelectedDate = AdeoJobScheduler.DisplayToUtc(e.Appointment.Start);

                RadDateTimePicker endInput = (RadDateTimePicker)e.Container.FindControl("EndInput");
                endInput.SelectedDate = AdeoJobScheduler.DisplayToUtc(e.Appointment.End);

                RadMultiSelect fitterlist = (RadMultiSelect)e.Container.FindControl("SelectFitters");

                foreach (Fitter.Result fitter in GetFitters().GetAwaiter().GetResult().results)
                {
                    MultiSelectItem newFitter = new MultiSelectItem() { Text = $"{fitter.properties.firstname} {fitter.properties.lastname}", Value = fitter.properties.id };
                    fitterlist.Items.Add(newFitter);
                }

            }
        }

 

Any help greatly appriciated.

Stuart
Top achievements
Rank 1
 asked on 12 Aug 2022
0 answers
200 views

I have a RadGridView that fits my page as expected utilizing the width property.

But when I set the AllowFilteringByColumn to "True" the grid now expands past the width property.

It first draws on the screen in proper width, then at the end expands way past width.

 

Using Version 2019.2.514.40

 

I have tried setting render mode to "Classic", "Lightweigt" but get exact same problem.

 

See picture below.  You can see all columns when I set to False, but when I set to True, you cannot see all columns, you

now have to scroll a lot to see them all.

 

Roger
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 11 Aug 2022
0 answers
148 views

When I click save, I want the grid to specify the column and pop up the required prompt box. Please!

zhe
Top achievements
Rank 1
Iron
Iron
 asked on 11 Aug 2022
0 answers
123 views

If shown, I want to modify the data source and click Save to send the parameters in the text box above to the background. How to achieve this!

zhe
Top achievements
Rank 1
Iron
Iron
 asked on 11 Aug 2022
4 answers
452 views

Hello everyone,

I've been trying to find a way to add my company's logo to the RadMenu, on the left side, just like we see on almost every website. You check the attached image to have a better idea about what do I exactly mean.

Thank you!

Valentin Dragnev
Telerik team
 answered on 10 Aug 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?