This is a migrated thread and some comments may be shown as answers.

Dynamic usercontrol with combox

3 Answers 60 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Marcia Marino
Top achievements
Rank 1
Marcia Marino asked on 19 Oct 2010, 06:09 PM

I have a usercontrol that has 3 RadPanelBar and each RadPanelBar has 7 RadPanelItem that loads dynamic others usecrontols with RadComboBox

 

<telerik:RadComboBox id="rcbSize" runat="server" width="289px" onselectedindexchanged="rcbSize_SelectedIndexChanged" autopostback="true"

 height="200px"    emptymessage="Search for Size">

 </telerik:RadComboBox>

 

I’m able to load the combo fine but when I select a item on the combo box the RadPanelItem closes and the and the onselectedindexchanged is not trigger.

I’m following the http://www.telerik.com/community/forums/aspnet-ajax/panelbar/radpanelbar-with-load-on-demand-items.aspx example, but I remove the

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">  

    <AjaxSettings> 

    <telerik:AjaxSetting AjaxControlID="RadPanelBar1">  

        <UpdatedControls> 

        <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" /> 

        </UpdatedControls> 

    </telerik:AjaxSetting> 

    </AjaxSettings> 

</telerik:RadAjaxManager> 

 

Because when I had that on the control the combo would not load, can anyone help me please.

3 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 22 Oct 2010, 11:44 AM
Hi Marcia Marino,

Could you, please, try the following:
1. Handle the ClientSelectedIndexChanged on the comboBox;
2. In the handler for the above-mentioned event get the dom event (like that "args.get_domEvent()") and stop it's bubbling (e.stopPropagation()).

Hope this is going to work for you!


Regards,
Nikolay Tsenkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Marcia Marino
Top achievements
Rank 1
answered on 22 Oct 2010, 03:17 PM
I dind't work
0
Nikolay Tsenkov
Telerik team
answered on 27 Oct 2010, 11:49 AM
Hello Marcia Marino,

Could you, please, try enabling the PersistStateInCookie property of the PanelBar.
Here is a reference to this property in our documentation: http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.radpanelbar-persiststateincookie.html

Please, let me know the result.
Hope this is going to resolve the problem!


Regards,
Nikolay Tsenkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
PanelBar
Asked by
Marcia Marino
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Marcia Marino
Top achievements
Rank 1
Share this question
or