Handled on PreviewSelectionChanged > display 2 selectedItem on RadOutlookBar

5 posts, 0 answers
  1. En
    En avatar
    15 posts
    Member since:
    Nov 2011

    Posted 13 Nov 2012 Link to this post

    Hello telerik team,
    I have a RadOutlookBar have many RadOutlookBarItem. When i selected to small item, i have to handles event PreviewSelectionChanged of RadoutlookBar and i set:
    e.Handled = <SPAN style="color: blue;">True</SPAN>
    That event has been canceled but RadOutlookBar display 2 selecteditems like attach file.
    Will have solution for me?
  2. En
    En avatar
    15 posts
    Member since:
    Nov 2011

    Posted 13 Nov 2012 Link to this post

    Any help for me????
  3. DevCraft banner
  4. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 15 Nov 2012 Link to this post

    Hi En,

    I tried to reproduce your issue and it seems that the code work as expected on our side. Can you please take a look at the attached project and change it accordingly? Also it will be great if you send it back to us so that we can further investigate the case.

    Regards,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. En
    En avatar
    15 posts
    Member since:
    Nov 2011

    Posted 15 Nov 2012 Link to this post

    Hi Pavel R. Pavlov,
    Firstly, thank u for your attention. But i was say you must click on MINI ICON. First, you need restore down IE window or set ActiveItemCount for RadOutlookBar have mini icon:
    ActiveItemsCount="4"


    Behind code:
    private void RadOutlookBar_PreviewSelectionChanged(object sender, Telerik.Windows.Controls.RadSelectionChangedEventArgs e)
           {
               if (((Telerik.Windows.Controls.RadTabItem)(((object[])(e.AddedItems))[0])).Header.ToString() == "Item 5")
               {
                   e.Handled = true;
               }
           }

    Before you have some mini icon on RadOutlookBar, you need to click "Item 5" (one in mini icon) to take result as my picture.
    Wait for your reply.
    p/s: i cant up my project cuz it > 2mb ;)
  6. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 20 Nov 2012 Link to this post

    Hi En,

    Thank you for bringing this issue to our attention. It is a bug in the RadOutlookBar control and I logged it in our PITS and you will be able to find it in 24 hours under the following name:

    "OutlookBar: Visual state of selected items in not correct"

    For the moment we are not aware of a workaround. However, I have updated your Telerik account as a thanks for your cooperation.

    All the best,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner