Use Master Page Question - General Discussions - General Discussions - Progress Community
 General Discussions

Use Master Page Question

  • Use Master Page Question
  • 996c4f1e-37c1-6deb-a958-ff0000446526_q1.jpg

    Hi guys,

     I have used custom widget in my master page. I have got a problem.

    If i drag custom widget into my master page(My template). The   InitializeControls event will  perform twice.

    But if  I  use basic template it's ok , it just perform once.
    Who can tell me some suggestions  ? 

    protected override void InitializeControls(GenericContainer container)
      //code

     

  • What do you mean, like after dragdrop or on render of the published page?

  • Hi Steve,  

     I  have created a master page  and then created a page template by master page.    

    If I  use custom widget  in my page template .  In the  custom widget's InitializeControls event,  it will perform twice. 
     

    protected override void InitializeControls(GenericContainer container)
      //it will perform twice

     

     

  • Hi Minco,

    Could you please specify the Sitefinity version you use? I could not reproduce this behavior on my end. Is the custom master page with a codebehind or a codefile? Is the custom widget a Thunder generated one? Please, provide us with this additional information, so we can proceed.

    Regards,
    Nikola Zagorchev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  • Hello Minco,

    I am glad the issue has resolved. Write back if we can help you further.

    Regards,
    Nikola Zagorchev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  • Hi Nikola Zagorchev,

    This is my negligence.  It's  ok  now.