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.
Syncfusion Feedback

TabcontrolAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

66815 Aug 2,2007 09:43 PM UTC Aug 7,2007 12:47 AM UTC Windows Forms 3
loading
Tags: Tools
Mack
Asked On August 2, 2007 09:43 PM UTC

How do I add combobox control as a tab primitive instead of a button.

Ramya R [Syncfusion]
Replied On August 3, 2007 08:26 AM UTC

Hi Mack,

Thank you for your interest in Syncfuion Products.

Currently we do not have support to add combobox control as a TabPrimitive.

Could you please provide us the usecase scenario for this feature, so that it would be a great help to us in analyzing this feature and log a feature request with regard to this?

Please let me know if you have further queries.

Thanks & Regards,
Ramya.

Mack
Replied On August 4, 2007 06:25 AM UTC

Hi Ramya,

Thanks for the prompt reply.

I have a form with a tabcontrol. The user can add and delete tabpages
Each tabpageadv has a gridgroupingcontrol and there is listed of predefined filters which the user can apply to the grid
I need to display the currently selected filter and allow the user to change the filter quickly.
A comboxbox as a tabprimitive would the ideal. I think a label control will do as well.


-Mack

>Hi Mack,

Thank you for your interest in Syncfuion Products.

Currently we do not have support to add combobox control as a TabPrimitive.

Could you please provide us the usecase scenario for this feature, so that it would be a great help to us in analyzing this feature and log a feature request with regard to this?

Please let me know if you have further queries.

Thanks & Regards,
Ramya.

Ajish [Syncfusion]
Replied On August 7, 2007 12:47 AM UTC

Hi Mack,

Are you trying to add some custom tab primitive to display a list of filters available to the user. To add a custom tab primitive to the TabControl Adv use the following code

//Make the TabPrimitivesHost visible
this.tabControlAdv1.TabPrimitivesHost.Visible = true;

this.tabControlAdv1.TabPrimitivesHost.TabPrimitives.Add(new Syncfusion.Windows.Forms.Tools.TabPrimitive(TabPrimitiveType.Custom,null,Color.Black,true,1,"MyPrimitive"));

A custom menu with filters can be done using the following code

private void tabControlAdv1_TabPrimitiveClick(object sender, TabPrimitiveClickEventArgs e)
{

TabControlAdv tabControlAdv = (TabControlAdv)sender;

if (e.TabPrimitive.TabPrimitiveType == TabPrimitiveType.Custom)
{
contextMenu.Show(this.tabControlAdv1, this.tabControlAdv1.PointToClient(Control.MousePosition));
}

}

Here is sample for doing the same,

http://websamples.syncfusion.com/samples/Tools.Windows/F66815/main.htm

To apply filters to GridGrouping refer the samples at the following path,

\My Documents\Syncfusion\EssentialStudio\5.1.1.0\Windows\Grid.Grouping.Windows\Samples\2.0\FiltersAndExpressions\

Kindly take a look and let me know if this helps.

Regards,
Ajish.

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.

Warning Icon 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.Close Icon

;