RadRibbonView Can't minimize

3 posts, 0 answers
  1. Steele
    Steele avatar
    12 posts
    Member since:
    Nov 2011

    Posted 10 Oct 2012 Link to this post

    I am unable to figure out how to minimize the ribbonview from code behind while handling an event for a radmenu.

    private async void MnuViewsOnItemClick(object sender, RadRoutedEventArgs radRoutedEventArgs)
            {
                var currentItem = radRoutedEventArgs.OriginalSource as RadMenuItem;
     
                if (currentItem != null)
                {
                    var viewMenuItem = currentItem.Header as ViewMenuItem;
     
                    if (viewMenuItem == null || viewMenuItem.Id == 0)
                    {
                        return;
                    }
     
                    // This does not minimize the ribbon.
                    lvRibbonView.IsMinimized = true;
     
                    LiveWireBusyIndicator.IsBusy = true;
     
                    _dataPointsOperation = await _context.Load(
                        _context.GetDataPointsQuery(_user.Id,
                            _user.UserRoleMappings.First().LiveWireRoleId,
                            _user.DefaultDataSet, viewMenuItem.Id, true)
                    ).AsTask();
     
                    await InitializeDataPoints();
     
                    LiveWireBusyIndicator.IsBusy = false;
                }
            }
     
  2. Steele
    Steele avatar
    12 posts
    Member since:
    Nov 2011

    Posted 11 Oct 2012 Link to this post

    I was able to achieve the desired result by using this code. Weird.

    lvRibbonView.IsMinimized = false;
    lvRibbonView.IsMinimized = true;
  3. DevCraft banner
  4. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 15 Oct 2012 Link to this post

    Hello Steele,

     That code is really weird and we are not sure what is causing the problem. Can you send us example project that demonstrates it?
    Thank you for your cooperation. 

    All the best,
    Miro Miroslavov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top