Setting RadPane.Title at runtime

3 posts, 0 answers
  1. Jamest
    Jamest avatar
    41 posts
    Member since:
    Apr 2007

    Posted 05 May 2009 Link to this post

    I am setting my RadPane's title at runtime and it doesn't get refreshed/rendered. I save/load the layout and see the title reflecting my value being set. So I know the property is being set, just not rendered. Any pointers? Note if I set the header it changes but unfortuneatly it also changes it for its tab. So all I want is the title to reflect my dynamic value.

    My pane's name is paneContent and displayName is set by the selection of a treeNode:

    paneContent.Header=

    "Contents";

     

    paneContent.Title =

    "Displaying: " + displayName;

    Thank you in advance.

    Jordan

     

  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 06 May 2009 Link to this post

    Hello Ender,

    Thanks for your report.

    I am afraid it appears that you have discovered a bug in our RadDocking control. The PaneHeader and the header of the ToolWindow do not get updated when the Title property has been changed. I will log it in our To-Do list right away and we will surely be looking into fixing it with the forthcoming Q2 release due by the end of June. By then, I suggest that you use the following workaround:

    RadPaneGroup group = pane.Parent as RadPaneGroup; 
    if (group.SelectedPane == pane) 
        pane.Title = "Title " + (i++).ToString(); //put your code here... 
        group.SelectedIndex = -1; 
        group.SelectedItem = pane; 
    where, pane is the RadPane control that will be updated.

    Your Telerik points have been updated for your report.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. Jamest
    Jamest avatar
    41 posts
    Member since:
    Apr 2007

    Posted 06 May 2009 Link to this post

    Thank you for your reply. your work around works. Unfortuneatly it has  uncovered another issue for me. I will submit ticket.
       Jordan
Back to Top