I recently upgraded from ASP.NET AJAX 2014 to 2022 and ran into an issue with a RadComboBox. It can be reproduced with this code:
Test.aspx
<telerik:RadScriptManager ID="scriptManager" runat="server" />
<telerik:RadComboBox ID="rcb" runat="server" Label="Medication:" AutoPostBack="true"
Width="250" OnSelectedIndexChanged="rcb_SelectedIndexChanged">
<Items>
<telerik:RadComboBoxItem Text="-- select --" Value="" />
<telerik:RadComboBoxItem Text="Benztropine 0.5 mg " />
<telerik:RadComboBoxItem Text="Buspirone 10 MG" />
<telerik:RadComboBoxItem Text="Haloperidol 100mg/ml" />
<telerik:RadComboBoxItem Text="Metaprolol 25 mg" />
<telerik:RadComboBoxItem Text="Quetiapin/Seroquel 400 mg" />
<telerik:RadComboBoxItem Text="Trazadone 150 mg" />
<telerik:RadComboBoxItem Text="Vitamin D2 50,000 units" />
</Items>
</telerik:RadComboBox>
<label>SelectedIndex</label> <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
Test.aspx.cs
protected void rcb_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
Label1.Text = rcb.SelectedIndex.ToString();
rcb.SelectedIndex = 0;
}
When "Benztropine 0.5 mg " is selected, the SelectedIndex in the selected index changed method is incorrectly set to 0, instead of 1. Selecting any other item in the list results in the correct SelectedIndex. I spent a lot of time debugging the code until I noticed that "Benztropine 0.5 mg " has a space at the end.
I found two workarounds:
1. Trim the trailing space from text.
2. Add values for each item.
This was not as issue with the old 2014 version. Is this a bug or am I missing something?
Thanks,
Tim
Hi,
I have a RadGrid consisting of a number of GridTemplateColumn's containing InsertTemplateColumns. When an item is inserted I perform validation on the C# side and either perform the insert or display an error message with RadWindowManager and RadAlert. The problem is when validation fails and an error message is displayed the grid is reloaded and all of the insert input fields are emptied, forcing the user to re-enter all the information. How can I validate the insert and display an error message without reloading the grid?
Thanks
This ASP.NET C# .NET 4.5.1 application was created with Telerik in 2018? and has not been used for a few years because of the pandemic. The programmer who knew Telerik retired and I have no experience with Telerik. Now, it will not compile. This software is a culinary reservation system, so nobody is able to make reservations. It gets the following error:
Severity Code Description Project File Line Suppression State
Error 'Could not load file or assembly 'Telerik.Web.UI, Version=2018.3.910.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)' GTCC_Culinary C:\Users\ssjohnson\OneDrive - Guilford Technical Community College\Documents\Projects\Culinary\GTCC_Culinary-main\GTCC_Culinary\LC
I believe that this has something to do with a gridview because an error I saw on the server pointed to line 335.
Here are the Telerik references in the project:


I have a RadEditor in my web application defined as follows:
<tr>
<th style="text-align: right; vertical-align: top;">
<asp:Label ID="lblQuestion" runat="server" Text="Question"></asp:Label>
</th>
<td style="text-align: left; vertical-align: top;">
<telerik:RadEditor ID="redQuestion" runat="server" EditModes="Design" Skin="Bootstrap" ToolsFile="~/EditorTools.xml" Width="100%" Height="150px" BorderStyle="Solid" BorderColor="Black" BorderWidth="1">
</telerik:RadEditor>
</td>
</tr>When I run, I cannot grab the corner of the RadEditor and resize the text area, but if I remove the EditModes="DESIGN" property, then the grabber appears in the lower right corner and I can resize the text area.
I found this article on the forum that said to specify the style below, but it did not resolve my issue.
<style type="text/css">
.reToolZone table tr
{
display: block !important;
}
</style>Can anyone offer any suggestions or insight into how to have DESIGN mode but still be able to resize the text area?

Hello!
I'm having a problem using the RadTreeView. I've got a menu divided into a global parent > parent > child.
This means that I've got 3 levels in my treeview. The problem is once I click on the expand button, if it was the first time then there are no issues however if it is the second time or more, the items start to duplicate with each time.
You may watch the recorded video in order to understand what I meant exactly.
1. How to solve the issue with the duplicates? This did not use to happen on the TreeView
2. Is there a way to actually reduce the time it's taking to load the items? As you can see in the video on how it is slow with every click to expand.
Thanks for the help!
Private Sub creaTV(ByVal user As String)
Dim acdo As New SiteWeb.AccesDonnees
Dim rdro As SqlDataReader
RTV_menuUtilisateur.Nodes.Clear()
rdro = acdo.RetournerDataReader("SELECT Identifiant, Libelle FROM lobdjetBDD " _
& "WHERE Parent is null AND NomUser='" & Trim(user) & "' ORDER BY Libelle,Parent", "EU_BREST")
Do While rdro.Read
Dim NewNode As New RadTreeNode(rdro(1), rdro(0))
NewNode.ExpandMode = TreeNodeExpandMode.ServerSide
NewNode.Expanded = False
RTV_menuUtilisateur.Nodes.Add(NewNode)
Loop
rdro.Close()
acdo.Dispose()
End Sub
Protected Sub RTV_menuUtilisateur_NodeExpand(sender As Object, e As RadTreeNodeEventArgs) Handles RTV_menuUtilisateur.NodeExpand
Dim acdo As New SiteWeb.AccesDonnees
Dim rdro As SqlDataReader
Dim user As String
user = DDL_utilisateur_menu.SelectedValue 'this is a combobox with a list of users, ignore it in your tests
rdro = acdo.RetournerDataReader("SELECT Identifiant, Libelle, LienPage FROM lobdjetBDD WHERE Parent = " _
& e.Node.Value & " AND NomUser='" & Trim(user) & "' ORDER BY Libelle,Parent", "EU_BREST")
Do While rdro.Read
Dim NewNode As New RadTreeNode(rdro(1), rdro(0))
NewNode.ExpandMode = TreeNodeExpandMode.ServerSide
e.Node.Nodes.Add(NewNode)
Loop
rdro.Close()
acdo.Dispose()
End SubI have the telerik radcombox and I want to loop through all the items on that radcombox before adding any element to it. I want to achieve this at client side.I tried this code but it did not give result I was expecting for. I have application which will add items to the radcombox but before that I want to check element is already there or not. Not sure why my below code is not working.
var combo = $find("<%= MyCombo.ClientID %>");
var items = combo.get_items();
for (var i = 0; i < items._array.length; i++) {
var myradcomboValues= items.getItem(i);
alert(myradcomboValues);
}
Hello everyone!
I have 2 listboxes where I am transferring data from one to another. You may check the attached screenshot for a better understanding of my page's layout.
The page contains a combobox and 2 listboxes.The combobox allows you to select a user from the list and then both listboxes will display the permissions this user has (on the left) and the perms he doesn't have (on the right). All of it is automatic of course and connected to a database.
Moving items from one listbox to another is messing with the order. I have tried to do the following:
Protected Sub RadListBoxSource_MM_Transferred(sender As Object, e As RadListBoxTransferredEventArgs) Handles RadListBoxSource_MM.Transferred
SortRadListBoxes_MM
End Sub
Protected Sub RadListBoxDestination_MM_Transferred(sender As Object, e As RadListBoxTransferredEventArgs) Handles RadListBoxDestination_MM.Transferred
SortRadListBoxes_MM()
End Sub
Private Sub SortRadListBoxes_MM()
RadListBoxSource_MM.Sort = RadListBoxSort.Ascending
RadListBoxSource_MM.SortItems()
RadListBoxDestination_MM.Sort = RadListBoxSort.Ascending
RadListBoxDestination_MM.SortItems()
End SubThis is not working, and the items are being added to the bottom of the list instead of being sorted to their correct position.
Thanks!
<telerik:RadListBox RenderMode="Lightweight" runat="server" ID="RadListBoxSource_MM"
Height="200px" Width="100%" Skin="Material"
AllowTransfer="true" TransferToID="RadListBoxDestination_MM"
ButtonSettings-AreaWidth="35px">
</telerik:RadListBox>
<telerik:RadListBox RenderMode="Lightweight" runat="server"
ID="RadListBoxDestination_MM" Height="200px" Width="100%"
ButtonSettings-AreaWidth="35px" Skin="Material">
</telerik:RadListBox>
My RadGrid has multiple GridTableViews, I have tested my ItemDataBound code on a RadGrid with no GridTableViews and the image gets added as expected.
The problem is the code in the ItemDataBound needs adjusting to be able to access the GridTableView with the name "ReviewLabel"
as the error is "Cannot find a cell bound to column name 'photoid'"
Please can someone show me how to rewrite this please
This is the ItemDataBound Code
protected void RadGrid1_ItemDataBound1(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
string s = item["photoid"].Text;
if (s == null || s == string.Empty || s == "" || s.Length < 2 || s == " ")
{
//code
}
else
{
//code
}
}
}
Thanks
Jason