This is a migrated thread and some comments may be shown as answers.

Splitter position

3 Answers 104 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Mirek
Top achievements
Rank 1
Mirek asked on 04 Dec 2011, 12:43 AM
Hi,

I'm using RadPropertyGrid with multiple RadPropertyStore objects. The properties names are quite long and their length are run-time dependent. How can I auto resize (move the splitter) columns in RadPropertyGrid to fit contents of both the widest PropertyName and the Value.

Best regards,
Mirek

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Petrov
Telerik team
answered on 07 Dec 2011, 11:13 AM
Hello Mirek,

Thank you for writing.

Currently, the widths of the columns can only be set by code to a given value. You can use the following code to set the width of the value column:

this.radPropertyGrid1.PropertyGridElement.PropertyTableElement.ValueColumnWidth = 80;

The auto sizing for the columns is a good idea and I have added it to our Public Issue Tracking System. You can track its progress and vote for it on the following link - PITS Feature.

I have also updated your Telerik points for the good suggestion.

If you have further questions, I would be glad to help.

Regards,
Ivan Petrov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

0
fbi
Top achievements
Rank 1
answered on 09 Feb 2015, 09:50 AM
Hello Ivan,

is there an event for the changing of the splitter position ?

Best regards

Fritz
0
Dimitar
Telerik team
answered on 11 Feb 2015, 04:49 PM
Hello Frits,

Thank you for writing.

There is no event that will fire when the ValueColumnWidth property is changed. I have logged this in our Feedback Portal. You can track the item for status changes and add your vote for it here.

Unfortunately due to the nature of the issue I cannot provide you with a workaround for it.

Your Telerik Points have been updated for this report.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PropertyGrid
Asked by
Mirek
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
fbi
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or