
I have data in English/French/Chinese in my database and I want to bind that data in RadComboBox. But I am getting Script error on postback in RadComboBox.
.aspx page:
<telerik:RadComboBox ID="rcbCourses" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" EmptyMessage=" --Select Course-- "
Width="150" Localization-AllItemsCheckedString="All Courses selected" DropDownAutoWidth="Enabled" Filter="Contains" MarkFirstMatch="true" AutoCompleteSeparator="," AutoPostBack="false" >
</telerik:RadComboBox>
.aspx.cs page:
obj.BGetAllDetails(objBEAdmin);
{
if (objBEAdmin.DtResult.Rows.Count > 0)
{
rcbCourses.DataSource = objBEAdmin.DtResult;
rcbCourses.DataTextField = "CourseName";
rcbCourses.DataValueField = "CourseID";
rcbCourses.DataBind();
}
gvReports.DataSource = new object[] { };
gvReports.DataBind();
}
I am getting below error:
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3abc17b1ef-7a1b-49cb-a795-5f1c64597a53%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.1.403.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a128ef0a7-4d36-4e4e-8195-e785e5239856%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a490a9d4e%3a2003d0b8%3a1e771326%3aaa288e2d%3a7165f74%3a58366029:6 Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: A generic error occurred in GDI+.
Please help. Thank You In Advance.
12 Answers, 1 is accepted
Hi Onkar,
I tried to replicate the reported error but to no avail. Can you, please, prepare and send me a sample project (with some test data) where I can reproduce the error and debug it further?
Basically, setting the appropriate charset encoding in your HTML/ASPX page would allow you to define items with special characters in RadCombobox. Please, try the suggestion in the following KB article and let me know what the result is.
For convenience, I am attaching my test project to this reply. If it is easier for you, you can modify it up to a point where the issue occurs and send it back for a further investigation.
Regards,
Vessy
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Hi Vessy, Thank You So Much for your quick reply. Please find below URL for my sample code and please do change connection string per your storage locations.
Another example of this error is I am not able to deselect items once I select "check all" because of special character.
<link removed by Admin for violating EULA>
Thank You,

Hi Vessy,
I work with Onkar and the issue he is seeing for special characters is for characters such as : ä Æé. These look to be showing up in the RadComboBox display but cannot be multiselected. We have the ability to select a check all but then we can no deselect multiples or manipulate the dropdown selection. I have been able to recreate the issue as well.
Jamie
Hi guys,
Thanks a lot for the provided sample project. I tested it at my end but was not able to replicate the reported problems. Can you, please, take a look at the video from my test below and see if I am leaving anything out?
Regards,
Vessy
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Hi Vessy,
Please try to select all and then deselect 1 and then after click on Submit button. We are not able to deselect individual checkboxes after select all box initiated.
Thank You,
Onkar Tripathi.
Hi Onkar,
Thanks a lot for the steps. We managed to reproduce it and we are currently examining what is causing the problem.
I will write a follow-up here once we can provide any updates.
Regards,
Vessy
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Onkar,
After a further investigation, the problem turned out to be caused due to a restriction of Chrome related to the count of the items and their text (we are setting the concatenated text to the innerHtml value of a dynamic div element). You can avoid this browser limitation by adding the following script at the bottom of the page holding the ComboBox:
<script>
Telerik.Web.UI.RadComboBox.prototype._checkedItemsTextsFitInputWidth = function (checkedItemTexts) {
if (checkedItemTexts.length > 300) {
return false;
}
var inputDiv = document.createElement('div'),
itemsTextsFit;
inputDiv.id = "checkedItemTextsDiv";
inputDiv.style.position = 'absolute';
inputDiv.style.font = "12px Segoe UI,Arial,sans-serif";
inputDiv.style.top = '-1000px';
inputDiv.style.left = '-1000px';
inputDiv.innerHTML = "";
inputDiv.innerHTML = checkedItemTexts;
document.body.appendChild(inputDiv);
itemsTextsFit = this._cachedInputWidth > inputDiv.offsetWidth;
document.body.removeChild(inputDiv);
return itemsTextsFit;
};
</script>
</form>
Regards,
Vessy
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Hi Vessy,
Thank You so much for your quick reply on this.
Please find attached screenshot, This issue is coming after post back of same radcombobox. I am using RadStyleSheetManager and RadScriptManager but still this issue still populates. Looking forward for your suggestion on this.
Thank You,
Onkar Tripathi.

Hi Vessy,
I am getting this error in edge, firefox and chrome browser. Please find below link for sample application to replicate this error.
<link removed by Admin for violating EULA>
Look forward for your help on this.
Thank You,
Onkar Tripathi.
Hi Onkar,
Thank you for the provided new project. We managed to reproduce the reported issue and will need some more time to investigate it. I will write a follow-up in this thread when we can provide any insights on the matter.
Regards,
Vessy
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Hello Vessy,
Is there any update on the curent error?
Thanks,
Jamie
Hello all,
The problem exists only in the old versions and the method that was causing this issue was removed entirely and the logic that calculates if the items' length is improved.
With that said, the only option to fix this is upgrading your Telerik to a later version.
We recommend considering upgrading to version R1 2020 or later because they have improved security. The R1 2020 version is available as a complimentary for everyone that has access to the licensed Telerik assemblies, regardless of the version. That means, if you have a license for 2013, you can download the R1 2020 for free.
Regards,
Peter Milchev
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.