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.

Custom Node With Combo Content AND Palette

Thread ID:

Created:

Updated:

Platform:

Replies:

105138 Sep 11,2012 03:07 PM Nov 6,2012 01:02 AM Silverlight 5
loading
Tags: Diagram
Domenico Mozzone
Asked On September 11, 2012 03:07 PM

Dear Support,
I'm using 10.3.0.43. 
I would like to create a custom symbol containing a ComboBox.
The "Node Contents Demo" is very good example, but I would like to give to the end user the capability to add the custom symbol with ComboBox using the palette.
Is there a simpler method to achieve this behavior than customizing dropped generic node in the nodeDropped event (that's only an idea, I've not tried to implement what I wrote)

Thank you

Best Redards

Domenico M.

Parthiban A [Syncfusion]
Replied On September 12, 2012 08:21 AM

Hi Domenico,

We have analysed your query, we have  created a sample, in which we added combo box as symbol palette item to symbol palette. We set IsHitTestVisible property of combo box as false, since it is exist as content of symbol palette item, so you can drag and drop it from symbol palette. We set focus to combo box, after drag and drop symbol palette item from symbol palette and also set the IsHitTestVisible property of combo box is as true.

Now you can focus to combobox, after drag and drop custom symbol palatte item from symbol palette. For more information, please refer the following sample.

Please let us know if you require further assistance on this.

Regards,

Parthiban A.



CustomPallete_d8faa606.zip

Domenico Mozzone
Replied On September 24, 2012 04:11 AM

Hi Parthiban,
thank you very much for you sample, it fully fits my requirements.
Best regards
Domenico

Parthiban A [Syncfusion]
Replied On September 25, 2012 12:09 AM

Hi Domenico,

Thanks for your feedback, please let us know if you have any other concerns. As always, we will be happy to assist you.

Regards,

Parthiban A.

Domenico Mozzone
Replied On October 11, 2012 11:32 AM

Dear Parthiban,
I tried to insert in the custom node an AutoComplete control.
There are some problems:
1. I can not bind to the Autocomplete any source
2. when I save the Diagram what happen to the ItemSource? I nedd to rebind after diagram load?

I've attached your example in where I added the Autocomplete node.

Thank you
Regards

Domenico



CustomPallete.2012.10.11.17.15.19_3f5f85f8.zip

Dinesh Kumar P [Syncfusion]
Replied On November 6, 2012 01:02 AM

Hi Domenico,

Sorry for the delay being caused.

Query: ‘Use AutoComplete as a Custom Tool in Diagram Pallette’

Please download the sample attached with this forum.

In the sample, we have added the AutoComplete control to the SymbolPaletteGroup. To bind the Itemsource in AutoComplete control the following properties have to be set,
1) Source – Custom
2) CustomSource – Name of the Collection
3) IsLoadCustomSourceOnToggle - True
4) IsHistory - False

If these properties are set, the Autocomplete would be loaded with Items as you required.

Please let us know in case of any other queries.

Thanks,

Dinesh Kumar P



CustomPalette_Solution_8dbf2a80.zip

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.

;