Custom Macro Parameter Type with Multiple Dropdownlist
Hi,
Well firstly i am newbie to Umbraco. I have created some custom macro paramater types in "C#". But as title shows i am trying to develop a Macro Parameter Type with multiple dropdownlists. Actually i need two dropdownlists in a single parameter in order to display values in 2nd dropdown list based on 1st dropdownlist. I successfully created parameter type by inheriting my class with "Panel" and two "Dropdownlists" as child control of that panel.
On 1st dropdownlist "Selected Index Changed" event i do databinding of my 2nd dropdownlist. But when i tried to insert that macro on a template that parameter type appears successfully but two problems occure. 1st problem is that when "Selected Index Changed" event of 1st dropdownlist is fired all controls of that popup window of macro insert disappreas, i know that is because of postback. i tried to handle that with partial postback but not successfull, no problem somehow i can manage that, but the 2nd problem is that when i click on "Insert Button" of macro insert screen, nothing happen and that screen remains as is.
Can someone has any idea how to do that as i need it in my project and i need it very critically. I will really appriciate on urgen help. If you need source i can post that.
Custom Macro Parameter Type with Multiple Dropdownlist
Hi,
Well firstly i am newbie to Umbraco. I have created some custom macro paramater types in "C#". But as title shows i am trying to develop a Macro Parameter Type with multiple dropdownlists. Actually i need two dropdownlists in a single parameter in order to display values in 2nd dropdown list based on 1st dropdownlist. I successfully created parameter type by inheriting my class with "Panel" and two "Dropdownlists" as child control of that panel.
On 1st dropdownlist "Selected Index Changed" event i do databinding of my 2nd dropdownlist. But when i tried to insert that macro on a template that parameter type appears successfully but two problems occure. 1st problem is that when "Selected Index Changed" event of 1st dropdownlist is fired all controls of that popup window of macro insert disappreas, i know that is because of postback. i tried to handle that with partial postback but not successfull, no problem somehow i can manage that, but the 2nd problem is that when i click on "Insert Button" of macro insert screen, nothing happen and that screen remains as is.
Can someone has any idea how to do that as i need it in my project and i need it very critically. I will really appriciate on urgen help. If you need source i can post that.
Thanks in Advance
is working on a reply...