Widget with control designer unique Id

Posted by Community Admin on 04-Aug-2018 06:27

Widget with control designer unique Id

All Replies

Posted by Community Admin on 26-May-2011 00:00
I've created a widget with a control designer which can be used / place multiple times on the same page.

Is there a way to identify this so I can bind with the correct value each widget.

I've checked the object GenericContainer container which is coming through:
InitializeControls(GenericContainer container) and all ids are null and there is nothing different between 2 instances of the same widget on the same page.

Is there a way to identify this?

Thank you!
Posted by Community Admin on 26-May-2011 00:00
Hi FlR,

You can set different control ID to the widgets, you can add some data in page.Items to store objects that will allow you to identify the controls.

Kind regards,
Ivan Dimitrov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Posted by Community Admin on 26-May-2011 00:00
Hi Ivan,

By seeting different control ID to widgets are you referring when I'm registering the widget in Sitefinity or by code behind?

Please tell me if you have a sample code for this approach or for page.Items approach.

My dificulty is in identifying my custom widgets (same time) which are placed multiple times on a page.

In one instance I need to display a specific info, in another instance other info (based on what the admin set in the control designer for each widget instance (same type) )

Thank you!
Posted by Community Admin on 30-May-2011 00:00
Hello FlR,

Check this post which seems to duplicate the current one.

Greetings,
Ivan Dimitrov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Posted by Community Admin on 30-May-2011 00:00
Hi Ivan,

Indeed this is a duplicate. I propose to be continued to the other one. 

Thank you!
This thread is closed