931025 - problem with RadCommandBar

2 posts, 0 answers
  1. Hamid
    Hamid avatar
    2 posts
    Member since:
    Apr 2012

    Posted 15 Jan 2015 Link to this post

    hi

    in C# when i drop a RadCommandBar control to a form, two other controls
    are also added with types CommandBarRowElement and
    CommandBarStripElement. but there's a problem. i can't set Text property
    of them. In another words, when i'm in design mode and enter some text
    in Text property, the value is reset to empty. why is that and how can i
    resolve it?

    thx
  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 16 Jan 2015 Link to this post

    Hello Hamid,

    Thank you for writing.

    CommandBarRowEle ment and CommandBarStripElement are not intended to hold text, this is why it is not allowed to set it at design time (although you can achieve it if you set it at with code). You need to add the desired items to the strip element and work with their text. For example you can add CommandBarLabel to the strip and set its text.

    More information about the supported elements is available here; http://www.telerik.com/help/winforms/commandbar-item-types.html.

    I hope that you find this information useful.

    Regards,
    Stefan
    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.

     
Back to Top