Splitter Position

5 posts, 1 answers
  1. Stevens
    Stevens avatar
    7 posts
    Member since:
    Oct 2013

    Posted 07 May Link to this post

    Is there a way to get and set the splitter position?
  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3369 posts

    Posted 08 May Link to this post

    Hello, Stevens,     

    In order to move the splitter in RadPropertyGrid, you can define the width of the value column. For this purpose, it is necessary to set the PropertyGridElement.PropertyTableElement.ValueColumnWidth property to the desired value: 

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

    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.
  3. Stevens
    Stevens avatar
    7 posts
    Member since:
    Oct 2013

    Posted 08 May in reply to Dess | Tech Support Engineer, Sr. Link to this post

    This does not work.  I am setting this property after the call to InitializeComponent

    When property grid is displayed it's value = -30 and is displayed as far right as you can get.

    What Is the value? Screen Location or Client location or Size in pixels. If it is size then how do I determine that after user adjust location? I am trying to save the users preference to setting and reset it when they run the app again.

    Thanks for your help

  4. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3369 posts

    Posted 09 May Link to this post

    Hello, Stevens,     

    Please ensure that the ValueColumnWidth property is set in the Load event after the layout has been successfully performed:  

    private void RadForm1_Load(object sender, EventArgs e)
    {
        this.radPropertyGrid1.PropertyGridElement.PropertyTableElement.ValueColumnWidth = 40;
    }

    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.
  5. Stevens
    Stevens avatar
    7 posts
    Member since:
    Oct 2013

    Posted 09 May in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Oh yes, that was it.

    Thanks alot

Back to Top