Is this a RadForm issue?

1 Answer 23 Views
Form
Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
Simos Sigma asked on 14 Aug 2022, 11:09 AM

Greetings community!!!

I am facing a problem here and I would like to know if this a RadForm's issue.

Let's say I want to change the alignment of TitleBar title. If I do that from RadForm_Load is okay.

        private void Main_RadForm_Load(object sender, EventArgs e)
        {
            this.FormElement.TitleBar.TitlePrimitive.Alignment = ContentAlignment.MiddleRight;            
        }
But if I do this through RadForm properties, in design mode, nothing happens!!! And when I check my RadForm's Designer.cs, this change doesn't exist!!!

Any idea why is this happening? Is this an issue of RadForm or something?

Thank you for your time!!!

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Aug 2022, 11:44 AM
Hello, Simos,  

The FormElement.TitleBar.TitlePrimitive.Alignment property is not expected to be serialized in the Designer.cs file. That is why after closing the form and reopening the designer, the titlebar is again left aligned.

Please have in mind that not all elements that belong to the FormElement's elements hierarchy are expected to serialize their properties. That is why the recommended way to ensure that any settings are properly applied is to set them programmatically.

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

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
commented on 15 Aug 2022, 01:20 PM

Thank you for your time!!
Tags
Form
Asked by
Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or