TabcontrolAdv

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

3 Replies

RR Ramya R Syncfusion Team 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.


MA Mack 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.


AJ Ajish Syncfusion Team 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.

Loader.
Up arrow icon