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

Forums / General Discussions / Use Master Page Question

Use Master Page Question

6 posts, 0 answered
  1. minco
    minco avatar
    20 posts
    Registered:
    16 Jun 2014
    27 Jul 2014
    Link to this post

    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
    }

     

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    27 Jul 2014 in reply to minco
    Link to this post

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

  3. minco
    minco avatar
    20 posts
    Registered:
    16 Jun 2014
    28 Jul 2014 in reply to Steve
    Link to this post

    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
    }

     

     

  4. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    30 Jul 2014
    Link to this post
    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
     
  5. Minco
    Minco avatar
    4 posts
    Registered:
    17 Apr 2014
    12 Aug 2014 in reply to Nikola Zagorchev
    Link to this post

    Hi Nikola Zagorchev,

    This is my negligence.  It's  ok  now.

  6. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    12 Aug 2014
    Link to this post
    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
     
6 posts, 0 answered