Copied to clipboard

Flag this post as spam?

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


  • barretina 4 posts 24 karma points
    May 24, 2013 @ 10:29
    barretina
    0

    Changing data on independent control

    I need to implement such a scenario:
    For every member I have few tabs in Member profile section. On one of these tabs I have a dropdown with values from db. When umbraco admin selects dropdown value all values in controls of this page should update. There are controls created 'on the fly' by umbraco, hence my question - how can I update these controls values?

    Sorry for not very detailed description, but I am a complete newbie in umbraco.

  • Alex Skrypnyk 6159 posts 24129 karma points MVP 8x admin c-trib
    May 24, 2013 @ 11:23
    Alex Skrypnyk
    0

    Could you add the screenshot of this controls ?

  • barretina 4 posts 24 karma points
    May 24, 2013 @ 11:41
    barretina
    0

    Of course :)
    The dropdown that is changing value is SelectedStream.
    Dietary is my custom ascx, so it's quite easy to change its value by finding control which implements IUsercontrolDataEditor
    but Is Administrator, Is Nominator, Tags etc. are umbraco controls, and I cannot find a way to change it's values...

  • Alex Skrypnyk 6159 posts 24129 karma points MVP 8x admin c-trib
    May 24, 2013 @ 12:05
    Alex Skrypnyk
    0

    Hm,

    I think you can't do it. 

    Thanks

  • Alex Skrypnyk 6159 posts 24129 karma points MVP 8x admin c-trib
    May 24, 2013 @ 12:06
    Alex Skrypnyk
    0

    Only with reloading the page.

  • barretina 4 posts 24 karma points
    May 24, 2013 @ 12:13
    barretina
    0

    I don't mind reloading the page, but still can't handle it.

  • Andreas Iseli 150 posts 427 karma points
    May 24, 2013 @ 12:22
    Andreas Iseli
    0

    Well in any case, using asynchronous requests or reloading the page, you have to populate the values yourself.

    As far as I see the values should depend upon the selected stream, right?

    Either

    - write a service that reads the value and set the value via jscript

    - hide the existing controls and replace them with yours

    Are you adding your tabs in code?

  • barretina 4 posts 24 karma points
    May 24, 2013 @ 12:25
    barretina
    0

    Ok, thanks for help and effort - I was counting on some easy way of getting propertyname binded to umbraco controls, and reaasinging it's value, but if this is not possible, than I will have to do it the hard way - hence write my own controls.

     

Please Sign in or register to post replies

Write your reply to:

Draft