1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sending parameter from control view to control designer

Sending parameter from control view to control designer

3 posts, 1 answered
  1. FlR
    FlR avatar
    49 posts
    Registered:
    05 Oct 2010
    25 May 2011
    Link to this post
    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!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    26 May 2011
    Link to this post
    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
    Answered
  3. FlR
    FlR avatar
    49 posts
    Registered:
    05 Oct 2010
    26 May 2011
    Link to this post
    Hi Ivan,

    Thank you!

    It works now.
3 posts, 1 answered