We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Groupbar ItemsSource Binding

Thread ID:

Created:

Updated:

Platform:

Replies:

96403 Sep 10,2010 08:03 AM Jun 2,2011 09:16 AM Silverlight 7
loading
Tags: Tools
Jan Golasowski
Asked On September 10, 2010 08:03 AM

Hi, I would like to know if it's possible to bind Groupbar's ItemsSource to an ObservableCollection.

MyType class contains only one property - Info (string).

I have defined a DataTemplate in the UserControl.Resources section:







and assigned this template to Groupbar:

EnableItemsDragging="False" ItemTemplate="{StaticResource template}" ItemsSource="{Binding GroupBarItems}">

GroupBarItems is a collection in my ViewModel. This collection is instantiated correctly...

When I run my Silverlight app I am getting this error:

Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.NullReferenceException: Object reference not set to an instance of an object.
v Syncfusion.Windows.Tools.Controls.GroupBar.LoadTemplateChildren()
v Syncfusion.Windows.Tools.Controls.GroupBar.OnApplyTemplate()
v System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)

Can you please give me an advice?

Thank you.




David C [Syncfusion]
Replied On September 21, 2010 01:52 AM

Hi Jan,

Sorry for the delay to get back to you. We are able to reproduce the issue in GroupBar when we try to do the code snippet you provided. We have logged an issue report for this issue. As we will not be able to update you the Patch through the forum, we have created the new incident 72310 to update you the custom assemblies. We would be updating you the fix within 09/24/2010.

Please let us know if you have any queries.

Regards,
David C


Justin Robertson
Replied On April 1, 2011 10:01 AM

Has there been any resolution to this issue?


Sakthi Kumar A [Syncfusion]
Replied On April 12, 2011 12:25 AM

Hi Jan,

We have fixed the ItemSource binding issue in GroupBar and the fix was provided through the Direc-Trac incident ID #72310. This fix is also available in our current version of Essential Studio.

Please let us know if you have any queries.

Regards,
Sakthi



Justin Robertson
Replied On April 15, 2011 03:52 PM

When I try to bind the groupbar to a collection as coded above, the header text of my items are set to the collection object name. Could someone post an example of databinding with the groupbar? It is not present in the documentation either.


Sakthi Kumar A [Syncfusion]
Replied On April 26, 2011 02:47 AM

Hi Jan,

Sorry for the delay.

We have created the Group Bar sample for ItemsSource collection binding. Please find the sample under the following location.

Please let us know if you have any queries.

Regards,
Sakthi



CS_6ae8b06a.zip

Justin Robertson
Replied On April 27, 2011 09:41 AM

Sakthi,

Thanks for your response, but this is a WPF solution. Could you attach one for Silverlight?


Sakthi Kumar A [Syncfusion]
Replied On June 2, 2011 09:16 AM

Hi Jan,

Sorry for the inconvenience caused.

We encounter the crash issue when bound the GroupBar using ItemsSource and we have logged the defect report internally. We would be working on this, If you interested in getting a patch for this issue, then you may create a Direct-Trac incident under the following link.

http://www.syncfusion.com/Account/Logon ReturnUrl=%2fsupport%2fdirecttrac

Please let us know if you have any queries.

Regards,
Sakthi


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;