Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
547 views
Hei!

Is it possible to override the css class of buttons in delete confirmation message? And is it possible to put some custom string in this message (e.g. the phone number of person you are trying to delete)?

Thanks for answer

Radek
Andre
Top achievements
Rank 1
 answered on 05 Dec 2019
3 answers
249 views

Hi I have a radlistbox with SelectionMode="Multiselect". I want to get the count of checked items of listbox on button click. I tried to get the count by finding control on button click event but i am not able to find the control. 

HTML Code:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%">

<div>

<asp:Table>

<asp:TableRow>
                <asp:TableHeaderCell>
                <telerik:RadLabel ID="RadLabel_abc" runat="server" Text="ABC"></telerik:RadLabel>
                </asp:TableHeaderCell>

</asp:TableRow>

<asp:TableRow>

<asp:TableCell>

<telerik:RadListBox ID="rlbAbc" runat="server" 
            Height="100px"
            Width="480px"
            AllowTransfer="false"
            AllowTransferOnDoubleClick="false"
            TransferToID="rlbChosen"
            EnableDragAndDrop="true"
            OnClientTransferring="rlbAbc_OnClientTransferring"
            CheckBoxes="true"
            ButtonSettings-ShowTransferAll="false"
            EnableViewState="false"
            SelectionMode="Multiple"/>

</asp:TableCell>

</asp:TableRow>

</asp:Table>

</div>

</telerik:RadAjaxPanel>

 

.VB File

Protected Sub RadButton_AddToList_Click(sender As Object, e As EventArgs)

GetSelectedItemText("rlbABC")

End Sub

Public Function GetSelectedItemText(ByVal controlID As String) As String
        Dim theListbox As RadListBox = CType(FindControl(controlID), RadListBox)
        For idx As Integer = 0 To theListbox.Items.Count - 1
            Dim li As RadListBoxItem = theListbox.Items(idx)

            If theListbox.Items(idx).Selected = True Then
                Return theListbox.Items(idx).Text
            End If
        Next

        Return Nothing
    End Function

But I am not able to find control. Can anyone suggest a better way to do this. My main objective is to get count of checked items of list box on button click

Attila Antal
Telerik team
 answered on 04 Dec 2019
4 answers
628 views

We need to disable embedded JQuery used in latest Telerik UI for ASP.NET AJAX 2017.3.913 library since it is using old jQuery version (version 1.11.1) and we have been advised to refer to disabling the embedded jQuery to do it (Ticket ID:1143165).

Unfortunately disabling it through web.config Telerik.ScriptManager.EnableEmbeddedjQuery key doesnt work. The application still loads old jQuery file.

We cannot use following suggestion to disable embedded jQuery since existing application is heavily depend on <asp:ScriptManager> and changing it to <telerik:RadScriptManager> breaks the existing code.

 

Disable the built-in jQuery on a concrete page.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableEmbeddedjQuery="false"><Scripts><asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /><asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryExternal.js" /><asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryPlugins.js" /></Scripts></telerik:RadScriptManager>

 

Appreciate if you could help us with this.

Thanks

Lak

kalyan
Top achievements
Rank 1
 answered on 04 Dec 2019
10 answers
522 views

Hi
How to Solve Export To PDF Using RadClientExportManager For RadHtmlChart
not support Persian Characters in Export PDF Using "RadClientExportManager"
As pictured below : 

    Attached file


Is there another way :   Client Side OR Server Side

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 03 Dec 2019
3 answers
401 views
Hi,

  I am inserting image into the editor using image Manager and writing some contents in the editor.I would like to export the editor content with images to word document.

Am using these below code to export to word

               HttpContext.Current.Response.Clear();
                HttpContext.Current.Response.Charset = "";

                HttpContext.Current.Response.ContentType = "application/msword";
                string strFileName = "";
              
                strFileName = "GenerateDocument" + ".doc";
                
                HttpContext.Current.Response.AddHeader("Content-Disposition",
                  "inline;filename=" + strFileName);

                StringBuilder strHTMLContent = new StringBuilder();
                strHTMLContent.Append("<body lang=EN-US >");
                strHTMLContent.Append(RadEditor1.Content);
                strHTMLContent.Append("</body>");

                
                HttpContext.Current.Response.Write(strHTMLContent);
                HttpContext.Current.Response.End();
                HttpContext.Current.Response.Flush();


But I am not able to export the image into word doc.

please solve my problem.I have to export the image into the word document

Thanks for any help


Rumen
Telerik team
 answered on 03 Dec 2019
206 answers
2.6K+ views
Hi everyone,

Below you can find the list of latest resource for Telerik UI for ASP.NET AJAX suite. Resources are posted by chronological order.

To navigate to the latest one you can use the link below:

Link to Latest Online Resources (3 December 2019)






Online Resources from 23.11.2012:

New Articles

RadEditor
: Inner toolbars are displayed in multiple lines
When there are CSS styles applied through global selectors (tag names) the elements in the RadEditor may not have the expected rendering.

RadMenu: Creating Context Menu at Runtime
Help article that describes how to create RadContextMenu at runtime.

Update Articles

RadInput: Understanding the Single Rendering HTML Output and CSS Styling
Updated almost the whole content.

RadPivotGrid: Range Grouping in RadPivotGrid
Added ShowGroupsWhenNoData property.

RadListBox
Added code examples in the following articles:

RadAsyncUpload
Added code examples in the following articles:

Rumen
Telerik team
 answered on 03 Dec 2019
1 answer
116 views
Hi, 
i'm having trouble while closing a RadWindow.
I can't post the entire project because of the dimensions but i'm posting as much code as possibile of what i think could be relevant.

In my project there's a JS function used to get the rad window and you'll see it used in TS scripts as window.GetRadWindow():
function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement)
        if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}

I have a base page that opens a RadWindow (here called WINDOW1) with this code, and with this close event attached:

private btnAddFarmacoClick(): void {
            window.DeskDataEditing(true);
            var url = `${this.schedaRicFarmaGestFarmacoUrl}?IdItem=-1&IdFarmaco=-1`;
            let oBrowserWnd = window.GetRadWindow();
            setTimeout(() => {
                let oWnd: t.RadWindow = oBrowserWnd ? oBrowserWnd.BrowserWindow.radopen(url, "wSchedaRicGestFarm") : window.radopen(url, "wSchedaRicGestFarm");
                oWnd.moveTo(10, 10);
                oWnd.set_height(400);
                oWnd.set_width(700);
                oWnd.set_modal(true);
                oWnd.set_title("Titolo");
                oWnd.set_visibleTitlebar(true);
                oWnd.set_visibleStatusbar(false);
                oWnd.set_behaviors(t.WindowBehaviors.Move | t.WindowBehaviors.Close);
                oWnd.remove_close(this.farmacoRiconciliazioneClose$dlg);
                oWnd.add_close(this.farmacoRiconciliazioneClose$dlg);
                //oWnd.set_destroyOnClose(true);
            }, 0);
        }
 
        private farmacoRiconciliazioneClose(oWnd: any, args: any): void {
            oWnd.remove_close(this.farmacoRiconciliazioneClose$dlg);
            var arg = args.get_argument();
            if (arg != null) {
//DO THINGS
            }
        }

Then, in WINDOW1, i open another rad window (WINDOW2) with this script and event attached:

private ricercaFarmacoClick(): void {
    let url = `${this.ricercaFarmaciUrl}?Close1Step=1&idTest=-1`;
    let oBrowserWnd = window.GetRadWindow();
    setTimeout(() => {
        let oWnd: t.RadWindow = oBrowserWnd ? oBrowserWnd.BrowserWindow.radopen(url, "wSchedaRicFarmRicercaFarmaco") : window.radopen(url, "wSchedaRicFarmRicercaFarmaco");
        oWnd.moveTo(10, 10);
        oWnd.set_height(570);
        oWnd.set_width(800);
        oWnd.set_modal(true);
        oWnd.set_visibleStatusbar(false);
        oWnd.set_behaviors(t.WindowBehaviors.Move | t.WindowBehaviors.Close);
        oWnd.remove_close(this.ricercaFarmacoClose$dlg);
        oWnd.add_close(this.ricercaFarmacoClose$dlg);
        //oWnd.set_destroyOnClose(true);
    }, 0);
}
 
private ricercaFarmacoClose(oWnd, args): void {
    oWnd.remove_close(this.ricercaFarmacoClose$dlg);
    let arg = args.get_argument();
    if (arg != null) {
        //DO THINGS
    }
}

In WINDOW2 i open a third rad window (WINDOW3) with no event attached:

private dettaglioFarmacoClick(sender: any) {
    if (sender && sender.currentTarget) {
        let idFarmaco = sender.currentTarget.getAttribute("data-id-farm");
        let url = `${this.dettaglioFarmacoUrl}?IdFarmaco=${idFarmaco}`;
        let oBrowserWnd = window.GetRadWindow();
        setTimeout(() => {
            let oWnd = oBrowserWnd ? oBrowserWnd.BrowserWindow.radopen(url, "wRicercaFarmaciDettaglioFarmaco") : window.radopen(url, "wRicercaFarmaciDettaglioFarmaco");
            oWnd.moveTo(10, 10);
            oWnd.set_height(600);
            oWnd.set_width(800);
            oWnd.set_modal(true);
            oWnd.set_visibleStatusbar(false);
            oWnd.set_behaviors(t.WindowBehaviors.Move | t.WindowBehaviors.Close);
            oWnd.set_destroyOnClose(true);
        }, 0);
    }
 
}

WINDOW3 has nothing special: some readonly data, and can be closed by the X of the rad window itself and from a button that does this:

function CloseModal() {
    setTimeout(function () {
        GetRadWindow().close();
    }, 0);
}

The problem occurs whem i close WINDOW3:
i expect nothing to happen, instead the ricercaFarmacoClose of WINDOW1 is called. Obviously this beahviour causes all the chain of events to break.
I tried adding and removing all the destroyonclose without success. It's been 4 days of debugging, trying and failing at solving this problem.

Is there something i am missing?

Tanks in advance

Eyup
Telerik team
 answered on 03 Dec 2019
14 answers
719 views
Does anyone know if it is possible to display a column in the grid of the FileExplorer that displays the file's last modified date?
Rumen
Telerik team
 answered on 02 Dec 2019
1 answer
130 views
Hello, doing tests with the latest version of reports and controls ajax I find that if on the same page there is a Chart(HTML5) and a Telerik Report Viewer the top bar of the report is not generated correctly. I have tried including different versions of jquey, and the result is the same, starting a new project and only leaving those two controls the problem persists, deactivating one control and leaving only the other separately work perfectly, the problem only occurs when the two. Making tests to understand the problem disable some attributes of the Chart(HTML5) and leaving (EnableEmbeddedScripts = "false") the two controls are generated correctly even if the graph is not displayed. Is it not possible to combine the two controls? Thanks.
Vessy
Telerik team
 answered on 02 Dec 2019
2 answers
97 views

 

Hi,

We are using RadHtmlChart - BarSeries for one of our requirements. We would like to show a custom tool tip when user mouser overs on y-axis but not on the bar chart.

Please see the attached image. When user moves the cursor on circled area on y-axis on the graph, we would like to show some custom tool tip.

Kindly help on this.

We are referring the following below link:

https://demos.telerik.com/aspnet-ajax/htmlchart/examples/charttypes/barchart/defaultcs.aspx

 

Thanks,

Srinivas Merugu

Vessy
Telerik team
 answered on 02 Dec 2019
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?