Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
259 views

Hi there,

 

We currently have a setup where we have a RadEditor control embedded into a user control (.ascx). This user control is then embedded into the content template of a RadWindow control that is not visible by default. The user clicks a button, and we have it set up to where the RadWindow pops up and the RadEditor control is fully functioning. 

As is today, the setup works perfectly except for one issue: performance.

Using the network monitor, we've noticed that page loads and postbacks take anywhere between 900 ms to 1.4 seconds. If we take the RadEditor completely out of the code, this performance improves to 100ms to 200ms page loads and pstbacks.

So my question is are there any known performance issues regarding the RadEditor control inside of a RadWindow control?

 

For reference we are referencing Telerik.Web.UI.dll version 2019.2.514.45

Rumen
Telerik team
 answered on 19 Mar 2020
8 answers
467 views
Hi,
I have ajaxed radgrid component (with EditFormSettings) that need to postback on specific case.
The radgrid contains GridButtonColumn object when clicked it creates excel file and send it through httpresponse.
I thought I solve the problem by register the buttons at radgrid ItemCreated event
this is the code:

    protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) 
    { 
        //register all buttons that exports excel files 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem gridItem = e.Item as GridDataItem; 
            try 
            { 
                TableCell buttonTc = gridItem["exportButton"]; 
                ControlCollection controls = buttonTc.Controls; 
                foreach (Control button in controls) 
                { 
                    ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(button); 
                } 
            } 
            catch (Exception) { return; } 
        } 
    }  

it works perfectly till someone opens the EditFormSettings (by clicking on a row).
after that, it looks like the buttons were somehow unregistered and became ajax again, which means no excel file will open.

Is there a solution for this?

thanks.

Eyup
Telerik team
 answered on 18 Mar 2020
4 answers
302 views
This is the message Box I receive. Maybe the filename is too long?

Many thanks.

---------------------------
Microsoft Visual Studio
---------------------------
Impossibile installare l'estensione perché si è verificato il seguente errore:

C:\Documents and Settings\Nicola\Impostazioni locali\Dati applicazioni\Microsoft\VisualStudio\10.0\Extensions\Telerik\Telerik WebUI VSExtensions\2011.3.1125.0\ProjectTemplates\Telerik\Web\TlrkASPNETAJAXCSWebSiteTk.zip: TlrkASPNETAJAXCSWebSiteTk.vstemplate
---------------------------
OK   
---------------------------

Nikolay Mishev
Telerik team
 answered on 18 Mar 2020
2 answers
166 views

Hi all,

I have 2 resource types in my scheduler that need to be multi-select: Student Group & Room. I've implemented Student Group as per the MultipleValuesResourceControl from the demo using a DBProvider & all is working fine.

However, I'm attempting to show Rooms as a RadGrid because I need to show room number, description, capacity & room type, which is rather too long to concatenate into a list item. The RadGrid is showing the rooms correctly & on sample appointments where I've pre-populated the rooms in the database they are being ticked/selected correctly - although I had to move that into ItemDataBound.

When stepping through the code I can see that the data key values are being pulled from the grid into the array & into ResRoom.Value; however the resource doesn't get attached to the appointment. When the SchedulerDBProvider is reached for insert or update only student groups are in the resource list.

 Is this due to the javascript? I saw that AdvancedForm.js only handles multi-valued resources as checkboxes & modified as below, but still have the issue.

01.this._scheduler.get_resourceTypes().forEach(function (resourceType) {
02.    var resourceTypeName = resourceType.get_name();
03.    var baseName = template._templateId + "_Res" + resourceTypeName + resourceControlSuffix;
04.    var resourcesOfThisType = schedulerResources.getResourcesByType(resourceTypeName);
05.                          
06.    if (resourceType.get_allowMultipleValues()) {
07.        if (resourceTypeName = "Room") {
08.            var masterTable = $find(baseName).get_MasterTableView();
09.            var items = masterTable.get_dataItems();
10.            if (items.length > 0)
11.                apt.get_resources().removeResourcesByType(resourceTypeName);
12. 
13.            for (var i = 0; i < count.length; i++) {                                   
14.                if (items[i].selected && resourcesOfThisType.get_count() >= i) {                                      
15.                    apt.get_resources().add(resourcesOfThisType.getResource(i));
16.                }
17.            };
18.        }
19.        else {
20.            var checkBoxes = $(String.format("input[id*='{0}']", baseName), this._formElement);
21. 
22.            if (checkBoxes.length > 0)
23.                apt.get_resources().removeResourcesByType(resourceTypeName);
24. 
25.            for (var i = 0; i < checkBoxes.length; i++) {
26.                if (checkBoxes[i].checked && resourcesOfThisType.get_count() >= i)
27.                    apt.get_resources().add(resourcesOfThisType.getResource(i));
28.            };
29.        }
30.    }

I'm using SchedulerDBProvider rather than a WebService

thanks,

Ellie

Peter Milchev
Telerik team
 answered on 17 Mar 2020
1 answer
105 views

Hi all,

My timetabling system needs to have an "allowed clash" functionality. This is because it's storing timetables per course, but some classes (e.g. maths) are shared between courses. So rather than detecting & preventing clashes on insert/update I need to go to a clash resolution section.

The preferred design from the specification would be to have a 2nd tab on the advanced insert/update form appear after clash validation, but we could also go with a new pop-up appearing after the appointment is saved.

My actual questions:

- would the advanced form support a multi-tab functionality?

- is there an AfterInsert / AfterUpdate event handler - i can only see handlers that fire before the SchedulerDBProvider talks to the database

Thanks,

Ellie

Peter Milchev
Telerik team
 answered on 17 Mar 2020
1 answer
667 views

I'm having trouble finding documentation/example code for adding page numbers to merged PDF file.  Merging of PDF files/pages I can do, adding page numbers to this new document, I cannot do.  Can anyone point me in the right direction?

 

Thanks!

Martin
Telerik team
 answered on 17 Mar 2020
1 answer
849 views

Is it possible to set a specific zoom percentage, when/as a pdf is loading or to set the Default zoom to "Fit to Width" ?  

 

I looked in the Documentation and saw nothing about adjusting the default zoom.  

 

 

Vessy
Telerik team
 answered on 17 Mar 2020
6 answers
900 views

 

We use the RadFileExplorer to display a large set of folders and content.  However we have run into the issue that when the user scrolls down in the treeview and selects a subnode,  the tree does not maintain it's scroll position always to show the selected node.  Instead jumps back to top of view.  Strangely, this behavior seems to effect mostly the 1st subnode in the tree.  If a node had multiple sub-nodes, clicking a subnode other than first results in the tree maintaining scroll position correctly.  Attached PNG shows a simple test program we created that isolates the issue to a small web app based on your demo code.  I can provide the simple web app for your review to diagnose this issue if that is helpful. 

At moment am lost on how to proceed to correct this issue.

Note:  none of the RadFileExplorer demos online show this issue - there is not enough content in the tree view for it to scroll off bottom of view and have a scrollbar.

 

 

 

 

 

 

 

Vessy
Telerik team
 answered on 17 Mar 2020
1 answer
690 views

Dear Telerik Community,

 

I am having a requirement where rad gird column group text is rotated vertically. For that i want to insert some label and apply css. I have checked the docs to add template on Column group. but didn't find any. Is there any way or am i missed something.

Doncho
Telerik team
 answered on 16 Mar 2020
3 answers
180 views

I'm looking at the tutorial (https://demos.telerik.com/aspnet-ajax/multicolumncombobox/overview/defaultvb.aspx) and it uses a form of the ASP Embedded Code Blocks to reference the data source column.  Is it possible to use conditionals in this code, i.e. If clauses, so that the template can be customized based on the value?  I'd like to use it for an address to only show the comma separating Address Line 1 and Line 2 when Line 2 is not null/empty (so you don't have an extraneous comma at the end of the street address).  I tried the following code but it doesn't work (the drop-down never appears)

<span>#: Vendor_Address_1 #</span><span>#: If(Vendor_Address_2="","",", " & Vendor_Address_2) #</span>

Vessy
Telerik team
 answered on 16 Mar 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?