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

Is it possible in radgrid to allow a collapsed group to be selected by row and then drag and drop to new grid and all the collapsed rows under the group are dropped?

 

 

Vasko
Telerik team
 answered on 03 Jun 2024
1 answer
56 views
Is it possible to load an image from SQL server rather than specifying an ImageUrl?
Vasko
Telerik team
 answered on 03 Jun 2024
1 answer
94 views
 

Recently I've been expressing some weird behavior with the MultiSelect displaying and extra dropdown next to the control (see attached image).  This is just standard markup, nothing fancy. Is there a property setting I'm missing? 

 

Thanks for any help you can provide.

<telerik:RadMultiSelect ID="msLOB" runat="server" Width="100%" Filter="StartsWith" Placeholder="Select LOB" DataTextField="text" DataValueField="value" Skin="Silk" RenderMode="Lightweight">
    <Items>
       <telerik:MultiSelectItem Text="All" Value="All" Selected="false"></telerik:MultiSelectItem>
       <telerik:MultiSelectItem Text="Commercial-Large" Value="Commercial-Large" Selected="false"</telerik:MultiSelectItem>
       <telerik:MultiSelectItem Text="Commercial-Small" Value="Commercial-Small" Selected="false"></telerik:MultiSelectItem> 
        <telerik:MultiSelectItem Text="Commercial-Individual" Value="Commercial-Individual" Selected="false"> 
        </telerik:MultiSelectItem>
       <telerik:MultiSelectItem Text="Medicare-MAPD" Value="Medicare-MAPD" Selected="false"></telerik:MultiSelectItem>
  </Items>
</telerik:RadMultiSelect>


Vasko
Telerik team
 answered on 03 Jun 2024
1 answer
63 views

Hi,

I have an HTML form and a RadGrid configured on a page. RadGrid's events and all the properties are dynamically built on the server side. RadGrid has an ExportToExcel toolbar command and works as it is. The issue is when I click the ExportToExcel toolbar button, It downloads the Excel file. When I click the HTML form's Save button, which means input type submit button, Radgrid downloads the Excel file again. If I click a different Radgrid toolbar command and then click the Form submit button, Radgrid will trigger its previous toolbar event.

Thanks

Vasko
Telerik team
 answered on 31 May 2024
1 answer
68 views
Hello, please consider to add scenario when MultiColumnComboBox is used as RadGrid column filter
Rumen
Telerik team
 answered on 28 May 2024
1 answer
171 views

Hi,

I'm testing the PDF Signature demo shown in this Telerik example PDF Signature demo. The issue I'm having is I cannot pull a pdf that resides on a network file server where we store all common files. I have no issues loading a pdf on my localhost machine. 

From what I can tell, the issue appears to be the third party opensource pdf.js file Telerik is using in demo that seems confined to only load pdf's from directories within the web application and it's sub-folders defined in IIS for the website. Also, the network file server is used everywhere within our web application so it's not a security issue. 

The error I get from pdf.js is "Not allowed to load local resource" which results in page prompt "PDF file fails to process." display. 

We have an existing web.config entry that looks like this:

<add key="AttachmentsShare" value="\\my_file_server\file"/>

I've tried calling the file server a few different ways with no luck.

RadPdfViewer1.PdfjsProcessingSettings.File = ConfigurationManager.AppSettings("AttachmentsShare") & "1234.pdf"

RadPdfViewer1.PdfjsProcessingSettings.FileSettings.Url = ConfigurationManager.AppSettings("AttachmentsShare") & "1234.pdf"

Please advise. Thanks. 

Disposable Hero
Top achievements
Rank 1
Iron
 answered on 24 May 2024
1 answer
100 views

I am attempting to show a 'tooltip'-like window/div on the RadGrid Columns context menu panel that slides out when you hover over 'Columns'. 

The div is shown on the 'mouseenter' event, and then removed on the 'mouseout' event.  The issue I'm experiencing is that the 'Columns' context menu will hide itself shortly after the 'tooltip' div is shown, thus causing the window to immediately be removed from the DOM. 

Is there a more effective way to produce this kind of behavior?  Additionally, I'm targeting the 'li.rmitem.rmtemplate' class, and I'm also wondering if that is the most appropriate one?

In this code snippet from the ClientEvents OnGridCreated event, I'm populating the 'tooltip' div with the column heading, but it will eventually be replaced with dynamic data based upon which column heading is hovered over.


let columnSlideOutItems = document.querySelectorAll('li.rmitem.rmtemplate');

columnSlideOutItems.forEach(function (c) {
	let thisNode = c.childNodes[0];
	let tooltip = document.createElement('div');
	tooltip.style.position = 'absolute';
	tooltip.style.backgroundColor = '#fff';
	tooltip.style.border = '1px solid #000';
	tooltip.style.padding = '10px';

	tooltip.innerHTML = thisNode.innerText;
	document.body.appendChild(tooltip2);

	thisNode.addEventListener('mouseenter', function (e) { 
		console.log(this.innerText);
		tooltip.style.left = e.pageX + 'px';
		tooltip.style.top = (e.pageY - 22) + 'px';
		tooltip.style.zIndex = 99999;
	});

	thisNode.addEventListener('mouseout', function (e) {
	    if (tooltip) tooltip.remove();
	});
});

 

 

 

 

Vasko
Telerik team
 answered on 22 May 2024
1 answer
82 views

Hello Telerik crew,

After the recent Chrome update (vers 125.0.6422.61), I am encountering strange behavior when opening a custom dialog from within a RadEditor control. I have not experienced the below issue in Firefox nor Edge, only latest version of Chrome.

If plain text is selected (i.e.: no html formatting), the custom dialog is launched and the text loses it's focus which in-turn causes a hyperlink to be pasted directly after the text I had selected. If an A tag is selected, the custom dialog is launched and the selected A tag doesn't lose focus.

I have included the code I am using to launch the custom dialog:

            Telerik.Web.UI.Editor.CommandList["InsertHyperlink_FWText"] = function (commandName, editor, args) {
                // only continue if we have actual text selected in <textarea>
                var selected_text = editor.getSelection().getText();
                if (selected_text != "" || editor.getSelectedElement().tagName == "A") {
                    var elem = editor.getSelectedElement(); //returns the selected element.
                    var flag = true;
                    var parent_elem = elem.parentElement;
                    if (elem.tagName == "A") {
                        if (elem.getAttribute('class') == "advbutton") {
                            flag = false;
                        }
                        editor.selectElement(elem);
                        argument = elem;
                    } else {
                        do { //set up the parent element and find the encapsulating A tag
                            parent_elem = parent_elem.parentElement;
                            if (parent_elem == null) { break; }
                        } while (parent_elem.tagName != "A");
                    
                        if (parent_elem != null) {
                            if (parent_elem.tagName == "A") {
                                if (parent_elem.getAttribute('class') == "advbutton") {
                                    flag = false;
                                }
                                selected_text = parent_elem.innerHTML;
                                editor.selectElement(parent_elem);
                                argument = parent_elem;
                            }
                        } else {
                            //remove links if present from the current selection - because of JS error thrown in IE
                            editor.fire("Unlink");
                            //remove Unlink command from the undo/redo list
                            var commandsManager = editor.get_commandsManager();
                            var commandIndex = commandsManager.getCommandsToUndo().length - 1;
                            commandsManager.removeCommandAt(commandIndex);
                            //
                            var content = editor.getSelectionHtml();
                            var link = editor.get_document().createElement("A");
                            link.innerHTML = content;
                            argument = link;
                        }
                    }

                    // only if dealing with a hyperlink advanced button, do we continue
                    if (flag == true) {
                        //---------------- Classic ASP Hyperlink Editor ---------------------------------------------
                        var doChooseLink = function (elem) {
                            var objEl = new Object();
                            if (elem.getAttribute("href") != null) {
                                objEl.href = elem.getAttribute("href");
                                objEl.target = elem.getAttribute("target");
                                objEl.title = elem.getAttribute("title");
                            } else {
                                objEl.href = ""
                                objEl.target = ""
                                objEl.title = ""
                            }
                            var args = new Array();
                            args["objEl"] = objEl;
                            args["Mode"] = "doclink"
                            flexDialog(620, 410, "/fw/_theditor/ed_links.asp", args, doChooseLink_CallBack, null);
                        }

                        var doChooseLink_CallBack = function (retValue, objEl) {
                            if (retValue.href == "") {
                                editor.pasteHtml(String.format(selected_text));
                            } else {
                                if (selected_text.charAt(selected_text.length - 1) == ' ') {
                                    selected_text = selected_text.substring(0, selected_text.length - 1);
                                    editor.pasteHtml(String.format("<a href='{0}' title='{1}' target='{2}'>" + selected_text + "</a> ", retValue.href, retValue.title, retValue.target));
                                } else {
                                    editor.pasteHtml(String.format("<a href='{0}' title='{1}' target='{2}'>" + selected_text + "</a>", retValue.href, retValue.title, retValue.target));
                                }
                            }
                        }

                        doChooseLink(argument);
                        //---------------- END Classic ASP Hyperlink Editor ---------------------------------------------
                    }
                }
            };

Please let me know if you need any other information, or a clearer explanation of the issue I am experiencing in Chrome (vers.125) only).

Thank you!

Rumen
Telerik team
 answered on 21 May 2024
1 answer
446 views

We are using the below .dlls as standalone .dlls (Not from Nuget package installation) In a .Net Framework Web Forms Application

We want to migrate/upgrade to .Net framework 4.8

Are these Dlls backwards compatible or should i use new versions of these dlls that will be compatible with .Net Framework 4.8?

  • Telerik.Web.Design, Version=2013.2.717.40
  • Telerik.Web.UI, Version=2013.2.717.40
  • Telerik.Web.UI.Skins, Version=2013.2.717.40

Thanks!

Rumen
Telerik team
 answered on 21 May 2024
1 answer
63 views

Hello
I have several separate report pages in ASP.NET, for example :

Report 1.cs

Report 2.cs,

Report 3.cs

And when I get a report, I want these 3 reports to be seen in 3 pages and consecutively and displayed consecutively in the output file like PDF.
Thank you for guiding me.

Rumen
Telerik team
 answered on 13 May 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?