Unplanned
Last Updated: 31 Aug 2020 13:28 by ADMIN
Jürgen
Created on: 22 Sep 2019 08:00
Category: PopupEditor
Type: Bug Report
2
RadSpinEditor controls and RadTextBox controls on a RadPopupContainer form do not fire value changed and validation events.

Hi Progress Team,

 

I have encountered another issue in the RadPopupEditor control. For RadSpinEditor controls as well as for RadTextBox controls on the Popup container form, no value changed or validating/validation events are fired. For RadSpinEditor controls the ValueChanged event is fired when the spin buttons are used to change the value but when the user directly enters a value in the editor element and the control losts the focus (either by TAB or mouse click outside the control) the ValueChanged event is missing.

I have attached a small VS2017 project which illustrates the issue.

Thank you very much!

 

Regards,

 

Jürgen

Attached Files:
6 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 31 Aug 2020 13:28

I would like to follow up with an additional case that should be also covered when addressing this issue.

RadTextBoxControl also doesn't fire the Validating/Validated events. Use the GotFocus/LostFocus events instead.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 21 Nov 2019 13:39
Hello, Jason,

Thank you for writing.

Please make sure that you cast your vote for this item. The more votes an item gathers, the higher its priority becomes. Currently, the Validating/Validated events for the hosted controls are not fired. Feel free to use the GotFocus and LostFocus events instead.

Should you have further questions please let me know.

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Jason
Posted on: 15 Nov 2019 18:29
I, too, have encountered this problem.  I have a RadDropDownList (DropDown style) on a RadPopupContainer, which is associated to a RadPopupEditor. I need to validate user key-in values, but the Validating event does not fire when expected.
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 24 Sep 2019 05:34

 

Hello, Jürgen,  

Indeed, the behavior for RadSpinEditor and RadTextBox is different regarding the CausesValidation behavior. However, the current implementation of RadPopupEditor uses a message filter which is responsible for closing the popup and it intercept the leave and enter messages. That is why the Validating/Validated events are not processed. If the validation fails for RadSpinEditor, it would be expected the popup to be still opened. 

I have discussed this scenario with the development team and we have decided to log this case and further investigate whether it is possible to introduce such functionality that won't prevent the Validating/Validated events from firing.

I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

 

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to use the Got/LostFocus events as it was previously suggested.

Should you have further questions please let me know.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Jürgen
Posted on: 23 Sep 2019 11:33

Hi Dess,

The spin editor in a poup editor form definitely shows a different behaviour than on a "regular" form. On a regular form a focus change via TAB key fires theValueChanged event. On a popup editor form it doesn't. Maybe this malfunction is a side effect of the issue I reported with support ID 1430750 (TAB key not working as expected in popup editor).

Can you please confirm that this is a issue and log it on your feedback portal?

Thanks!

Jürgen

 

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 23 Sep 2019 07:41
Hello, Jürgen,  

The provided sample project is greatly appreciated. The RadSpinEditor.ValueChanged event is expected to be fired when the underlying value is updated. When you use the up/down arrows, the value is directly modified. But if you enter some text in the editable part of RadSpinEditor, the value will be committed when you press Enter. The same behavior is observed with the standard MS NumericUpDown

As to the validation, note that RadPopupEditor has a message filter which is responsible for closing the popup and it intercept the leave and enter messages. For all nested controls inside the RadPopupContainer, use the GotFocus and LostFocus events instead.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.