Sending parameter from control view to control designer

Posted by Community Admin on 04-Aug-2018 09:49

Sending parameter from control view to control designer

All Replies

Posted by Community Admin on 25-May-2011 00:00

I have created a control view and control deisgner view.

My question is how can I send a parameter from control view to the designer view (I'm interested in sending the page id and the place holder Id - I need the place holder id in the case I'm using the control view multiple times on the same page - I need to see what data to save in database)

Thank you!

Posted by Community Admin on 26-May-2011 00:00

Hi FlR,

You can get the PageID from the query string when you edit a page.You need to expose a public property of your control where you set the PageID value and then you can access this property on the client component by using

var data = this.get_controlData();
var idprp = data.PageID;

Best wishes,
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,

Thank you!

It works now.

This thread is closed