Hi,
I want to bind <igOutlookBar:XamOutlookBar> to SQL Data to dynamically generate Groups and its content.Can someone please suggest how I can achieve that.
Thanks.
Hello,
Thank you for your post. I have been reading through it and I can suggest using Entity Framework to create groups for the XamOutlookBar, from SQL Database. After creating the Entity model, you can set the GroupsSource property of the XamOutlookBar to the property of the context object that contains your data and you can modify the appearance of the content of the groups and their titles by using a style for the OutlookBarGroup. I have created a sample application for you, that shows how you can implement this approach. I am attaching the sample application and a backup of the database that I have used.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thanks for the reply. I was able to generate dynamic Groups in XamOutlookBar. Now I want the content to display either buttons or hyperlinks and should take group header as parameter. The group header is binded to a stored procedure and selected group should dynamically generate content picking it from a SQL table. Can you please help on how I can achieve this functionality. Also, I want the groups to collapse and expand on click instead of selected group showing on top.
Can someone please suggest how to achieve this functionality.
Thanks
Thank you for your replies. I have been looking into the question that you are having and you can use the Entity Framework to call your Stored Procedures. You can read more detailed information regarding how to use Stored Procedures with Entity Framework here: http://msdn.microsoft.com/en-us/data/gg699321.aspx. I have also modified the sample application that I have attached to my previous reply, in order to use different Database that I have created for the scenario that you are having. I have added a stored procedure and using the ObjectContext, I am calling the procedure as method in the SelectedGroupChagned event of the XamOutlookBar. I have also create a partial class for the class that represents the group and added a property that will hold the result of the procedure call. I am using this property for the SelectedGoup content. In the template for the selected group, I have added a Button and a Hyperlink and based on the name of the group I am showing different content. Also I have created a command and bind it to the button and the hyperlink commands and pass the name of the group as command parameter. Regarding the question that you are having for the appearance of the XamOutlookBar, it is designed to show the available groups at the bottom and the content of the selected group at the top of the control, as the left side bar at the Microsoft Outlook.
I am attaching the modified sample application and the backup of the database that I have created.
I am just checking if you require any further assistance on the matter.