Declined
Last Updated: 08 Apr 2020 14:07 by ADMIN
Mark
Created on: 05 Feb 2020 15:16
Category: ComboBox
Type: Bug Report
1
RadComboBox does not work correctly in legacy Edge

Browser:

Microsoft Edge 44.18362.449.0

Telerik Control:

RadCombobox

Teleri Version:  Version=2017.3.913.45,

Issue:

When a item is selected and a postback is occured, the SelectedValue returns an empty string.

Expected behavior:

The correct SelectedValue should be return.

Thing that have been tried so far:

1: upgrade the telerik to the latest version (2020.114) ---> issue persists

2: set autopostback to "true" problem solved

3: use other browsers (chrome, FireFox, new Version 79.0.309.68 ) issue disappears

Sample code: 

1: aspx

<telerik:radcombobox
        id="ddlSupplier"
        runat="server"
        skin="Material"
        rendermode="Lightweight"
        cssclass="materializeit"
        enableloadondemand="true"
        inputcssclass="browser-default"
        width="100%"
        filter="Contains"
        highlighttemplateditems="true"
        showmoreresultsbox="false"
        onitemsrequested="ddlSupplier_ItemsRequested" autopostback="false">
    </telerik:radcombobox>

2: code behind

protected void Page_Load(object sender, EventArgs e)
    {
    }
 
    protected void saveIssue_Click(object sender, EventArgs e)
    {
 
 
    }
 
    protected void ddlSupplier_ItemsRequested(object sender, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
    {
        RadComboBoxItem li = new RadComboBoxItem("Alan Jones (Brunel Systems Pty Ltd, test site)", "123");
 
        ddlSupplier.Items.Add(li);
 
         li = new RadComboBoxItem("Jackie Chiu (Optimum Construction, Optimum Construction (Sydney)) ", "23" );
 
        ddlSupplier.Items.Add(li);
 
         li = new RadComboBoxItem("Erik Baker (Optimum Construction, Optimum Construction (Sydney))", "2323");
 
        ddlSupplier.Items.Add(li);
    }
 
    protected void b_Click(object sender, EventArgs e)
    {
        var a = ddlSupplier.SelectedValue;  // most of the time returns "" for Edge
    }
  

 

 

 

 

2 comments
ADMIN
Rumen
Posted on: 08 Apr 2020 14:07

Hi Folks,

I changed the status to Declined since we support only the current version of Microsoft Edge (Chromium) - see the Browser support page.

If the legacy Edge is important for you, please use the provided workaround.

 

Regards,
Rumen
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
ADMIN
Peter Milchev
Posted on: 05 Feb 2020 15:24

Hello,

As a temporary workaround, the following handler can be used:

<telerik:RadComboBox
    ID="ddlSupplier"
    runat="server"
    Skin="Material"
    OnClientItemsRequested="OnClientItemsRequested"
    RenderMode="Lightweight"
    CssClass="materializeit"
    EnableLoadOnDemand="true"
    InputCssClass="browser-default"
    Width="100%"
    Filter="Contains"
    HighlightTemplatedItems="true"
    ShowMoreResultsBox="false"
    OnItemsRequested="ddlSupplier_ItemsRequested" AutoPostBack="false">
</telerik:RadComboBox>
<script>
    function OnClientItemsRequested(sender, args) {
        // temporary workaround for https://feedback.telerik.com/aspnet-ajax/1452415-radcombobox-does-not-work-correctly-in-legacy-edge
        if (Telerik.Web.Browser.edge && !Telerik.Web.Browser.chrome) {
            sender.get_items().forEach(function (it) {
                // the get_text() needs to be called, although it does nothing special
                it.get_text();
                //console.log(it.get_text());
            });
        }
    }
</script>

Regards,
Peter Milchev
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.