Unplanned
Last Updated: 07 Apr 2023 10:11 by ADMIN
Mark
Created on: 29 Mar 2023 13:14
Category: Buttons
Type: Feature Request
1
RadCheckBox: Add functionality for data binding the Check property to boolean application Settings

If there are boolean application Settings:

It is good to have the possibility to bind the Checked property for RadCheckBox in a similar way like the MS CheckBox offers:

RadCheckBox offers only the Text option:

 

5 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 07 Apr 2023 10:11

Hi, Mark,

I have tested with R3 2015 version as well and the functionality at design time is similar for RadCheckBox. Even though the Checked property is not explicitly available under ApplicationSettings in VS Properties section,  I would highly encourage you to use the previously suggested solution with adding the simple data binding programmatically while this feature is considered in the upcoming releases.

As to the question about the converter, please have in mind that the WinForms converter was introduced in R2 2016 (version 2016.2.503). This tool allows you to convert the standard .NET Windows Forms controls for all projects in a particular solution to their equivalent in Telerik UI for WinForms. It aims to speed up the conversion process and save time when such projects are modernized. After the conversion process is completed, you should check if all existing functionality is working as before.

I suppose that if initially the project contained the standard MS CheckBox and the binding was performed at design time, similar code was serialized in the Designer.cs file:

Me.CheckBox1.DataBindings.Add(New System.Windows.Forms.Binding("Checked", Global._1603312CheckBoxDataBinding.My.MySettings.Default, "IsFiltered", True, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged))
       

After running the converter tool, the CheckBox is converted to RadCheckBox and the previously serialized data remained. That is why the functionality continued working. However, if a new RadCheckBox is added to the form, the design time experience wouldn't allow you to setup the binding this way.

Regards,
Dess | Tech Support Engineer, Principal
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.

Mark
Posted on: 04 Apr 2023 15:32
Well, that's interesting. I couldn't say for sure what version but I'm fairly certain it was after 2010, probably around 2015. I'm wondering if, when I originally purchased Telerik, was there an automatic conversion utility that would convert standard Windows controls to the Telerik version? I know when I started the project, I didn't have Telerik controls so maybe it was something that was converted to Telerik after the fact. Maybe I found some kind of work-around but have since forgotten? Just in case there is any doubt that I somehow made it work, I've attached a screen shot. I appreciate your continued attention to this. If nothing else, I would like to know how I made it work!
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 04 Apr 2023 14:51

Hi, Mark,

Thank you for the provided additional details. I have reversed to an older version back to 2010 but I was unable to observe the functionality that RadCheckBox used to have according to your previous reply. Could you please specify which is the old Telerik version in which it was possible to bind the IsChecked property to an application setting at design time? Thus, we would be able to revise in a deeper manner what changes have been introduced during the years.

Thank you in advance. I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Principal
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/.

Mark
Posted on: 29 Mar 2023 14:48
Just to add to that, it used to be possible to bind a boolean application setting to a RadCheckBox at design time. I know that because I have several of these on that same form from when I initially developed this software several years ago. I hadn't done any work to it for a few years so I don't know when that functionality disappeared. For now, I'll add the data binding via code as suggested. At least I now know I'm not losing my mind!
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 29 Mar 2023 14:25

Hello, Mark,

Thank you for reporting this.

I confirm that this is a reasonable request and we will try to improve the design time data binding options for RadCheckBox. Make sure that you follow the item in order to get notified once any status changes occur.

Regards,
Dess | Tech Support Engineer, Principal
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/.