Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TabControl > Empty Collection Message

Not answered Empty Collection Message

Feed from this thread
  • Posted on Sep 13, 2011 (permalink)

    Is there a way to display a message to the user when the bound collection is empty?
    I was able to add a custom class to do this for the GridView, but I need to be able to do this with the Tab Control. Right now, it just appears to be blank and I'd like to display a message informing the user on how to create the collection.

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Sep 16, 2011 (permalink)

    Hi Rayne,

    I am not sure I understand your scenario correctly and I might be missing in what environment you need to implement it. However, if you handle the RadTabControl.Loaded event you can display a message containing additional information about the ItemsSource collection of the control and how it can be defined:
    private void RadTabControl_Loaded(object sender, RoutedEventArgs e)
    {
        RadTabControl tabControl = sender as RadTabControl;
        if ((tabControl.ItemsSource as IList).Count == 0)
        {
            RadWindow.Alert("Enter ItemsSource");
        }
    }
    Is this close to what you have in mind?

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TabControl > Empty Collection Message
Related resources for "Empty Collection Message"

WPF TabControl Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]