Completed
Last Updated: 23 Mar 2023 16:47 by ADMIN
Release R1 2023 SP2
Marco Piumi
Created on: 15 Mar 2023 09:43
Category: UI for ASP.NET AJAX
Type: Bug Report
14
Uncaught TypeError: Cannot read properties of null (reading 'get_wrapper') - ComboBox

I just installed the latest release (Telerik_UI_for_ASP.NET_AJAX_2023_1_314) and the program gives me an error.

This is the error :

14 comments
ADMIN
Rumen
Posted on: 23 Mar 2023 16:47

Hi everyone,

We just released R1 2023 SP2 (version 2023.1.323) where the error is fixed. You should update your projects to apply the fix.

Regards,
Rumen
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/.

Jorge
Posted on: 23 Mar 2023 15:59

just want to support this request.

I'm currently getting the same error with 2023.1.314.45 , I'll be waiting for a fix.


Attached Files:
ADMIN
Attila Antal
Posted on: 22 Mar 2023 12:42

Hello Jochen,

The good news is that a fix is about to be released very soon. 

About the problem you have mentioned, we have made a couple of tests where the Workaround was placed on the MasterPage and we loaded up to 10 UserControls each containing a ComboBox with the Enabled="False" state. The workaround seemed to be working.

If that is not working for you, the cause could be something else. If you'd like, we can investigate that in Support Ticket. We just need the information that will help us replicate the problem and we will track down the cause.

Regards,
Attila Antal
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/.

Jochen
Posted on: 22 Mar 2023 08:18

Unfortunately the workaround doesn't work around in our scenario - it's a UserControl containing four RadComboBoxes, which throws javascript errors. Other usercontrols are "fixed" - both cases are reproducable.

As we have more than 160 UserControls in our app, I cannot trust the workaround to be included in a regular release :(.

We will try to roll back the Telerik release and wait for a fix.

 
ADMIN
Attila Antal
Posted on: 21 Mar 2023 08:56

Hello Stein,

If you share the details of that scenario, I can test it out and see if the fix is not working or if something else is at fault.

Regards,
Attila Antal
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/.

Stein
Posted on: 21 Mar 2023 08:48
The radpanelbar-problem was not easy to find out. I had several radpanels with comboxes in several of them and it was just one that was giving this problem. I narrowed it down to one specific radpanelbar and I gave up finding out why - so I just set the panelbar to not visible just to get the system up and working again.
ADMIN
Attila Antal
Posted on: 21 Mar 2023 08:24

Hi Stein,

I have tested and I can confirm that the Fix is working in both cases. When the Combo with Enabled="False" is placed inside RadPanelBar Item, or when the RadPanelBar has the Enabled="False".

Regards,
Attila Antal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Stein
Posted on: 21 Mar 2023 08:18

I'm experiencing problems with the fix if comboboxes are placed in radpanelbars that have .Enabled=false

My workaround for this was to set the panelbar.Visible to false instead

ADMIN
Attila Antal
Posted on: 21 Mar 2023 08:11

The Script has been tested and is working even if it's Placed on the MasterPage while the Combo is located elsewhere (Content Page or UserControl).

If it doesn't work for someone, look for JavaScript errors.

Regards,
Attila Antal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jochen
Posted on: 21 Mar 2023 08:03
"Page" is important. "MasterPage" doesn't work.
ADMIN
Attila Antal
Posted on: 21 Mar 2023 07:50

Hello Sze Huai,

I have updated the description to make the instructions clearer.

Regards,
Attila Antal
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/.

Sze Huai
Posted on: 20 Mar 2023 23:51
Instruction for workaround not clearly state where to put in this. 
Stein
Posted on: 20 Mar 2023 08:49

When is this planned to be fixed?

Adding workarounds like this is not optimal

ADMIN
Attila Antal
Posted on: 16 Mar 2023 12:02

Hi Marco,

Thank you for reporting the problem.

Unfortunately, with our latest release (2023.1.314) we have introduced a regression for the ComboBox.

 

Workaround

Until the fix is released, we suggest using the following workaround.

Place this Script on the Page with the ComboBox and it will override the Combo's internal function.

<script>
    // Condition to ensure the Telerik.Web.UI.RadComboBox object is instantiated and is present on the page
    if (Telerik && Telerik.Web && Telerik.Web.UI && Telerik.Web.UI.RadComboBox) {
        // store the original function in a variable
        var originalFunction = Telerik.Web.UI.RadComboBox.prototype.set_enabled;
        // override the original function
        Telerik.Web.UI.RadComboBox.prototype.set_enabled = function (value) {
            // add the override
            if (!this._view) {
                this._view = new Telerik.Web.UI.RadComboBox.ViewFactory.GetView(this);
            }

            // call the original function after the override
            originalFunction.call(this, value);
        }
    }
</script>

 

Please excuse us for any inconvenience this may have caused!

 

Regards,
Attila Antal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.