How can I associate a ContextMenu with a RadDataBoundListbox programmatically

2 posts, 0 answers
  1. Pat
    Pat avatar
    31 posts
    Member since:
    Mar 2009

    Posted 13 Mar 2012 Link to this post

    I want to be able ro associate a dynamically created ContextMenu with ListBox in C#. How can I do that?
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 15 Mar 2012 Link to this post

    Hi Pat,

    You can associate a RadContextMenu to an element programmatically just like you do in xaml. RadContextMenu has a ContextMenu attached property that can be read and written with the RadContextMenu.GetContextMenu() and RadContextMenu.SetContextMenu() static methods.

    Please write again if you have other questions.

    Kind regards,
    Victor
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
Back to Top