Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
172 views
When a node in a RadTreeView is expanded, its child nodes show correctly, but its bellow nodes which same level show incorrect position. (See screenshot attached).

What can I do about this or is this a bug? (It can run fine in IE 11, but not with other browser like Chrome)

Thank you,
Doncho
Telerik team
 answered on 04 Mar 2021
1 answer
120 views

Hi,

I'm having this issue when I open Table Wizard-> More Table Styling

I tried to modify the css in the skin that I'm using but I have no success.

 

Rumen
Telerik team
 answered on 04 Mar 2021
7 answers
1.0K+ views

Hello!

I am trying to run the demo found here but with no success (not working). I made the minimum of changes to get data from my own DB but I keep receiveing the same error saying that "The server method 'GetiPMP' failed". I already double checked path, code and I even referred to the solution showed here but no success.

My code...

 

PMP_WS.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="iPMP_WS.aspx.cs" Inherits="custom_scripts_iPMP_iPMP_WS" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
    <script type="text/javascript">
        function requesting(sender, eventArgs) {
            var context = eventArgs.get_context();
            //Data passed to the service.
            context["ClientData"] = "ClientData_Passed_To_The_Service";
        }
    </script>
</head>
 
<body>

    <form id="form1" runat="server" >
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />

        <telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="RadAutoCompleteBox1" ClientID="RadAutoCompleteBox1" 
            autopostback="true" 
            InputType="Token" Width="100%" Visible="true"
            AllowCustomEntry = "false"
            DropDownWidth="300px"
            onclientrequesting="requesting" >

            <WebServiceSettings Path="iPMP_WS.asmx" Method="GetiPMP" />
        </telerik:RadAutoCompleteBox>

    </form>

</body>
</html>

 

iPMP_WS.asmx

<%@ WebService Language="C#" CodeBehind="~/App_Code/iPMP_WS.cs" Class="iPMP_WS" %>

 

iPMP_WS.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
using System.Web.Services;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class iPMP_WS : System.Web.Services.WebService
{

    public iPMP_WS()
    {
    }

    [WebMethod]
    public static AutoCompleteBoxData GetiPMP(RadAutoCompleteContext context)
    {
        string clientData = context["ClientData"].ToString();

        string sql = "SELECT top 10 desc as 'edesc',codes as 'ecode' FROM INVENTORY";
        SqlDataAdapter adapter = new SqlDataAdapter(sql,ConfigurationManager.ConnectionStrings["MyCon"].ConnectionString);
        DataTable data = new DataTable();
        adapter.Fill(data);
        List<AutoCompleteBoxItemData> result = new List<AutoCompleteBoxItemData>();
        AutoCompleteBoxData dropDownData = new AutoCompleteBoxData();

        result = new List<AutoCompleteBoxItemData>();

        for (int i = 0; i < data.Rows.Count; i++)
        {
            AutoCompleteBoxItemData itemData = new AutoCompleteBoxItemData();
            itemData.Text = data.Rows[i]["edesc"].ToString();
            itemData.Value = data.Rows[i]["ecode"].ToString();
            result.Add(itemData);
        }

        dropDownData.Items = result.ToArray();
        return dropDownData;
    }
}

Any idea?

Yan Moura
Top achievements
Rank 1
Veteran
Iron
 answered on 03 Mar 2021
4 answers
344 views

I would prefer to use an SVG for the ImageUrl property of the RadToolBarButton. However, I cannot figure out how to get the RadToolBar to resize the image to match the button/text size.

When I export my SVG to 18px, it is deformed.  But at a larger size, it exports fine.  So, essentially I want to use that larger size, then resize it in the browser (RadToolBarButton).

How do I get the RadToolBar to resize the Image set in the ImageUrl property?

Peter Milchev
Telerik team
 answered on 03 Mar 2021
10 answers
2.0K+ views
When I attempted to execute the url http://XXX.XXX/Telerik.Web.UI.WebResource.axd?type=rau 
directly I got the message:
{ "message" : "RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly." }

This message need to stopped on direct access. Pls help
Vessy
Telerik team
 answered on 02 Mar 2021
1 answer
314 views

Hello,

The company I work for is using Telerik UI 2012.1.411.40

I have been tasked with building a new page on one of our products, but I cannot seem to find documentation in our downloads.

I understand the version is old, I assume that upgrading from 2012 to 2021 would cause a number of issues to come up.

I was wondering if support could provide the documentation for this older version or the closest I could follow to it?

I would also like the opportunity to speak with someone, if possible, about possibly using a different version within the application for a specific section.

I look forward to hearing from anyone really.

 

Doncho
Telerik team
 answered on 02 Mar 2021
0 answers
58 views

This seems to be happening in more recent versions.  With that said, here we go...

So let's say I have a RadComboBox(refered to a RCB from here forward) set up in the following manner:

<telerik:RadComboBox ID="cbAcctType" runat="server" DataValueField="ACCT_TYPE_ID" DataTextField="acct_code" RenderMode="Classic"
    AutoPostBack="True" CausesValidation="False" Width="100%" DropDownWidth="400px" HighlightTemplatedItems="True"
    InputCssClass="required_cb" EnableLoadOnDemand="true" AppendDataBoundItems="True">
    <ItemTemplate>
        <asp:Table runat="server" CellPadding="0" CellSpacing="0" Width="100%" GridLines="None">
            <asp:TableRow>
                <asp:TableCell Width="30%">
                    <%# DataBinder.Eval(Container.DataItem, "acct_code") %>
                </asp:TableCell>
                <asp:TableCell Width="70%">
                    <%# DataBinder.Eval(Container.DataItem, "acct_description") %>
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
    </ItemTemplate>
</telerik:RadComboBox>

 

and it's databound via code in the code behind.  All that works fine. Now when my form loads I obviously set RCB value.  I have a function to do this:

Public Shared Function SetRadCombByVal(ByVal ddl As Telerik.Web.UI.RadComboBox,
                                      ByVal val As String) As Boolean
 
    If val = "" Or val.Trim.Length <= 0 Then
        Return False
    End If
    If ddl.Items.Count = 0 Then
        Return False
    End If
    ddl.SelectedIndex = -1
 
    Try
        ddl.FindItemByValue(val.Trim).Selected = True
    Catch ex As Exception
        Return False
    End Try
 
    If ddl.SelectedIndex < 0 Then
        Return False
    End If
    Return True
 
End Function

 

this also works fine with one caveat.  Lets say the RCB is data bound with the following values A, B, C, D.  When you bind the RCB it defaults to the 1st in the list being selected.  So the Text area of the RCB contains A.  Now when I set the RCB via my function to let's say C...the row becomes the selected row, but the Text area of the RCB continues to contain A making it look like the operation of setting the RCB to the proper value didn't work.  Subsequently, I've had to add the following code:

ddl.FindItemByValue(val.Trim).Selected = True
ddl.Text = ddl.SelectedItem.Text.ToString  'This ones the new line.

 

Seems a bit ridiculous and redundant to have to add that.  If need be, I can setup a whole project to showcase my findings.

SSirica
Top achievements
Rank 3
Iron
Iron
Iron
 asked on 01 Mar 2021
5 answers
474 views
Hi there,

I am trying to implement something like this

http://demos.telerik.com/aspnet-ajax/upload/examples/async/imageuploader/defaultcs.aspx?product=asyncupload

It works great on my local, but when deployed in IIS 7, it throws a security error

System.UnauthorizedAccessException: RadAsyncUpload could not create App_Data\RadUploadTemp folder. Ensure the App_Data folder is writable or set the TemporaryFolder property to a writable location.     at Telerik.Web.UI.RadAsyncUpload.CreateTempFolder()     at  

While I know how to fix the security issue, I really do not want the AsyncUpload tool to write to any local folders [due to various deployment environment constraints]

Any idea why this is happening?

Here's my code in the markup

<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" MultipleFileSelection="Automatic" HttpHandlerUrl="~/lib/Upload.ashx" >
</telerik:RadAsyncUpload>

Rumen
Telerik team
 answered on 01 Mar 2021
1 answer
133 views

Hi Telerik Team,

we are experience an issue which happens on Telerik demo site too, is there any way we can fix it?

 

Steps to Reproduce :

1. go to link https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

2. Highlight and copy some HTML( you can copy html bottom of the page )
3. Use Paste as Plain Text to paste your content.

4. check RadEditor html, <p> has been replaced by <br/>

 

you can check the detailed info in the attachment too,

 

Thanks,

Lan

Rumen
Telerik team
 answered on 01 Mar 2021
1 answer
103 views

Hi there.

I have a radgrid that has two GridDropDownColumns both using the same datasource to display a list of users.

When I click the second column header it sorts the first column. I.e. I clicked the Overseer column below but it sorted the Author column.

<telerik:GridDropDownColumn AllowFiltering="false" AllowAutomaticLoadOnDemand="true" DropDownControlType="RadComboBox" DataField="ProcessAuthorUserID" DataType="System.Int32" HeaderText="Author" HeaderStyle-Width="110px" SortExpression="DisplayName" UniqueName="ProcessAuthorUserID" DataSourceID="SqlDataSource2" ListTextField="DisplayName" ListValueField="UserID">
    <ItemStyle VerticalAlign="top" Width="60px" />
</telerik:GridDropDownColumn>
<telerik:GridDropDownColumn AllowFiltering="false" AllowAutomaticLoadOnDemand="true" DropDownControlType="RadComboBox" DataField="DOUserID" DataType="System.Int32" HeaderText="Overseer" HeaderStyle-Width="110px" SortExpression="DisplayName" UniqueName="DOUserID" DataSourceID="SqlDataSource2" ListTextField="DisplayName" ListValueField="UserID">
    <ItemStyle VerticalAlign="top" Width="60px" />
</telerik:GridDropDownColumn>

 

Thanks in advance. :-)

Attila Antal
Telerik team
 answered on 26 Feb 2021
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?