Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • webmonger 130 posts 265 karma points
    Sep 23, 2009 @ 12:34
    webmonger
    0

    Dashboard Multiple Controls onClick Issue

    Hi

    I've added 3 controls to the Umbraco dashboard using this code:

    <?xml version="1.0" encoding="utf-8" ?> 
    <dashBoard>
    <section>
    <areas>
    <area>default</area>
    <area>content</area>
    </areas>
    <tab caption="ctrl1">
    <control>/usercontrols/control1.ascx</control>
    </tab>
    <tab caption="ctrl3">
    <control>/usercontrols/control2.ascx</control>
    </tab>
    <tab caption="ctrl3">
    <control>/usercontrols/control3.ascx</control>
    </tab>
    </section>
    </dashBoard>

    Control 1 is just a list and does not require any user input

    Control 2 is a form and has an asp:Button on it with a onclick event

    Control 3 is the same as Control 2 a form with an asp:Button on it with a onclick event

    The problem

    When all 3 Controls are added to the Dashboard only the click event for Control 3 works. When I click the button on Control 2 the page just does nothing. I've run locally with debug and nothing is getting passed back to the server at all and non of my break points are hit. I also dont get a javascript error in the browser ff3(FireBug) and ie8.

    When I remove Control 3 from the dashboard Control 2's click action works and all break points are hit.

    Any one have any ideas why having two click events in different controls on the same dashboard would do this?

    Ps. the buttons all have different ids and event names.

    Jc

     

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Sep 23, 2009 @ 13:23
    Simon Dingley
    0

    Do you have validation on any of your controls?

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Sep 23, 2009 @ 13:36
    Simon Dingley
    1

    I had a similar problem and a control on one of my tabs was not validating when a control on another tab was trying to post back but as it was another tab I couldn't see that. Simple answer was to use validation groups.

  • webmonger 130 posts 265 karma points
    Sep 23, 2009 @ 13:53
    webmonger
    0

    Spot on Simon. Cheers.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies