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.
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...
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.
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.
Could you add the screenshot of this controls ?
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...
Hm,
I think you can't do it.
Thanks
Only with reloading the page.
I don't mind reloading the page, but still can't handle it.
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?
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.
is working on a reply...