Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
233 views

Hi, I have a HtmlChart that I databind to the Sql stored procedure. The number of records returned is based on the parameters that user selects from the few dropdowns. So sometimes you have 50 records, sometimes 1.

Is it possible to set chart height based on the number of records?

Currently I set height to 1000px but it does look very funny when I display 1 records.

Vessy
Telerik team
 answered on 11 Mar 2021
0 answers
163 views

Hi, 

I'm using the barcode control for coding my text and I'm doing it with type Code128, but I need to add FNC1 beetwen my text

Example: 41577099986707238020001065097544 FNC1 3900000000538300 FNC1 9620210118

Can you please tell me what is the character to do this? 

Thanks

Maria Camila
Top achievements
Rank 1
 asked on 11 Mar 2021
1 answer
154 views

I can find how to create snippets here:

 

https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/toolbars/dropdowns/code-snippets

But what is the correct toolname to add the snippets dropdown in the toolbar?

Cannot find it in the docs...

 

Marc

Vessy
Telerik team
 answered on 11 Mar 2021
7 answers
261 views
I have the following in my tools file XML, when I remove a class, it is removed from the editor.  However, when I add a class entry and associated .class definition in the style sheet, I do not get the class in the styles drop-down in the editor.

<classes>
    <class name="Photo (Left)" value=".photo-left"></class>
    <class name="Photo (Right)" value=".photo-right"></class>
 </classes>


Rumen
Telerik team
 answered on 10 Mar 2021
1 answer
719 views

 

We are trying to upload file using telerik RadAsynchUpload controller. File upload controller works fine in Internet Explorer, Edge Chromium and Firefox browser but it doesn't works in chrome browser. We can select file but during upload it freeze.
Following version of Telerik.Web.UI.RadAsyncUpload
Runtime version : v2.0.50727
Version: 2013.2.709.35

We updated Telerik.Web.UI.RadAsyncUpload to following version but still not working in chrome browser.

Runtime Version: v4.0.30319
Version: 2020.1.114.45

Please advise which version to use or any other solution.


Thanks,
Muhammad

Vessy
Telerik team
 answered on 10 Mar 2021
3 answers
146 views

Hoping someone can help. I've been in a shared hosting environment for about 3 years with smarterasp. Their service is so bad and unreliable that I finally had to change. I picked interserver.net and have the same shared service. My code has worked perfectly for 3 years so I know it works. Now, with the new provider, it does not work. They are willing to install anything I need, but I don't know what is needed. 

So far, they have installed MDAC 2.6 and Asp.net AJAX. 32bit support has been enabled and CAS full-trust is also enabled. But it still isn't working. I've attached the latest error I'm getting. I have found a few articles about referencing certain things in system.webserver, however i haven't had to do this for the last 3 years, so not sure why now. 

If anyone can help me get this resolved, I'll even pay them. Just need to get it done asap or else i need to leave interserver for someone else. My site is very busy and i don't have much down time to test.

If you know of anything I need to tell my hosting provider to turn on or certain things that need to be installed, please let me know. They are standing by.

Rumen
Telerik team
 answered on 10 Mar 2021
1 answer
170 views

i am using Radgrid edit form type=popup in my web application using asp.net c#. i want to bind dropdown list selected value on edit but whenever i bind it in web user control form then add new record and edit button command of my radgrid is not fired. here is my dropdownlist code :-

 <asp:DropDownList ID="ddlTranType" runat="server" Width="200" SelectedValue='<%# DataBinder.Eval(Container, "DataItem.TRAN_TYPE") %>'>
                                    <asp:ListItem Text="Sales" Value="ORD"></asp:ListItem>
                                    <asp:ListItem Text="Purchase" Value="PUR"></asp:ListItem>

</asp:DropDownList >

Doncho
Telerik team
 answered on 10 Mar 2021
3 answers
772 views

Hi,

I have a table with a header and 2 columns. In the left column I'm loading a pdftreeview with a lot of entries. This is scrolling neatly inside its column.

In the right column I'm loading the pdfviewer to show pdf files that are clicked in the tree view.

I don't want any scroll bars in the pdfviewer column. I want it to size automatically to its available space in that column.

I have already set the FitToWindow in client side script. But the container where the pdf is loaded in causes the windows to scroll.

Can the height be adjusted so it takes up the available space, without scroll bars?

Doncho
Telerik team
 answered on 10 Mar 2021
5 answers
226 views
I do not want Description box to go away without appearing all the time. How do I do that.
Now I must go with the mouse pointer for it to resurface, or I can put time how long it stays?
Vessy
Telerik team
 answered on 09 Mar 2021
21 answers
1.7K+ views
Hi All,

I have a link to popup a RadWindow.
This is working fine.

On the popup window, I have 3 radio button (Excel, PDF, CSV) and 2 buttons (Save As, Close).
This is working fine.

When user click on 'Save As' button, system will show a 'Save As' window to user to choose the file name and file location.
System will then export the data to the format they choose.
This is working fine.

When user click on 'Close' button, system will close the popup window.
This is working fine too.

Now, the problem is the popup window didn't close after the data is exported.
I think this is due to the system still need to continue to do the export even I have the close at the end of the function.

Please help.

Parent code.
    <telerik:RadWindowManager ID="reportSettingsWindowManager" KeepInScreenBounds="true" 
        runat="server" VisibleStatusbar="false" DestroyOnClose="true" Modal="true" Behaviors="Close,Move">  
        <Windows> 
            <telerik:RadWindow ID="downloadWindow" DestroyOnClose="true" runat="server" Modal="true" 
                VisibleStatusbar="false" Behaviors="Close,Move" /> 
        </Windows> 
    </telerik:RadWindowManager> 
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
 
        <script language="javascript" type="text/javascript">  
            function fnCustomizeDownload(name) {  
                var radWindowMgr = $find("<%= reportSettingsWindowManager.ClientID %>")  
                var wnd = radWindowMgr.open('<asp:Literal ID="ltrlDownloadFormat" runat="server" />', name);  
                wnd.setSize(300, 225);  
                wnd.show();  
                return false;  
            }  
 
        </script> 
 
    </telerik:RadScriptBlock> 
 
    <div id="content">  
        <ul id="actions">  
            <li id="liDownloadData" runat="server"><href="#" onclick="fnCustomizeDownload('downloadWindow');return false;">  
                <asp:Literal ID="ltrlDownloadData" runat="server" Text="<%$ Resources:Link, ltrlDownloadData %>" /> 
            </a></li>  
        </ul> 
    </div> 
 

Child ASPX Code
    <telerik:RadScriptBlock ID="scriptBlock1" runat="server">  
 
        <script language="javascript" type="text/javascript">  
            function GetRadWindow()  
            {  
                var oWindow = null;  
                if (window.radWindow) oWindow = window.radWindow;  
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
                return oWindow;  
            }  
 
    <table style="width: 220px">  
    <tr> 
        <td colspan="2" class="style1">  
        <asp:Panel ID="Panel2" runat="server"  GroupingText="<%$ Resources:ltrlDownloadGroupingText %>" 
                 Height="99px">  
        <asp:RadioButtonList ID="SelRadioButtonList1" runat="server" Height="55px"   
                Width="211px">                  
                <asp:ListItem Selected="True" Text="<%$ Resources:ltrlDownloadExcel %>"></asp:ListItem> 
                <asp:ListItem Text="<%$ Resources:ltrlDownloadPDF %>"></asp:ListItem> 
                <asp:ListItem Text="<%$ Resources:ltrlDownloadCSV %>"></asp:ListItem> 
        </asp:RadioButtonList> 
        </asp:Panel> 
        </td> 
    </tr> 
    <tr> 
        <td> 
            <asp:Button ID="btnSaveAs" runat="server" Text="<%$ Resources:Button, btnSaveAs %>" OnClick="btnSaveAs_Click" /> 
        </td> 
        <td> 
            <asp:Button ID="btnClose" runat="server" Text="<%$ Resources:Button, btnClose %>" OnClick="btnClose_Click" /> 
        </td> 
    </tr> 
    </table>    
 
            function Close()  
            {  
                var arg = new Object();  
                var oWnd = GetRadWindow();  
                oWnd.close(arg);  
            }  
 
        </script> 
 
    </telerik:RadScriptBlock> 
 

Child C# Code
        protected void btnSaveAs_Click(object sender, EventArgs e)  
        {  
            Logger.LogInformation("Start""btnSaveAs_Click""DownloadFormat");  
            DownloadData();  
            lblCloseWindow.Text = GetRadWindowCloseScript();  
            Logger.LogInformation("End""btnSaveAs_Click""DownloadFormat");  
        }  
 
        protected void btnClose_Click(object sender, EventArgs e)  
        {  
            Logger.LogInformation("Start""btnClose_Click""DownloadFormat");  
            lblCloseWindow.Text = GetRadWindowCloseScript();  
            Logger.LogInformation("End""btnClose_Click""DownloadFormat");  
        }  
 
        private void DownloadData()  
        {  
            Logger.LogInformation("Start""DownloadData""DownloadFormat");  
            //CSV  
            if (SelRadioButtonList1.SelectedItem.Text == SelRadioButtonList1.Items[2].Text)  
            {  
                this.SetCSVDelimiter();  
                this.radGrid.MasterTableView.ExportToCSV();  
            }  
            //Excel  
            else if (SelRadioButtonList1.SelectedItem.Text == SelRadioButtonList1.Items[0].Text)  
            {  
                this.radGrid.MasterTableView.ExportToExcel();  
            }  
            //PDF  
            else if (SelRadioButtonList1.SelectedItem.Text == SelRadioButtonList1.Items[1].Text)  
            {  
            }  
            Logger.LogInformation("End""DownloadData""DownloadFormat");  
        }  
 
        public static string GetRadWindowCloseScript()  
        {  
            return @"
            <script type='text/javascript'>
                var oWindow = null; 
                if (window.radWindow) 
                    oWindow = window.radWindow; 
                else if(window.frameElement.radWindow) 
                    oWindow = window.frameElement.radWindow; 
                var currentWindow = oWindow; 
                currentWindow.Close();
            </script>";  
        }  
 

Anatoly
Top achievements
Rank 1
Iron
 answered on 09 Mar 2021
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?