I have a RadComboBox that is in a Panel. The panel is set to visible=false onload. If the user checks a check box the panel is set to visible=true with Ajax. The first time this happens everything is fine, they can show it and hide it and it works. When they try to show it a second time the dropdown arrow is missing and all style appears to be gone. This ComboBox is not added dynamically it is always there on the page.
I have Ajax on the check box to show/hide the panel, if I remove that it works fine.
<asp:Panel ID="Panel3" runat="server">
<telerik:RadComboBox ID="rcbAirline" runat="server" Height="190px" Width="75px"
DataTextField="Code" DropDownWidth="320" OnItemsRequested="AirlineCode_ItemsRequested">
<HeaderTemplate>
......
</HeaderTemplate>
<ItemTemplate>
......
</ItemTemplate>
</telerik:RadComboBox>
</asp:Panel>
<telerik:AjaxSetting AjaxControlID="cbShowClaim">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Panel3" LoadingPanelID="LoadingPanel_FormTable"/>
</UpdatedControls>
</telerik:AjaxSetting>
I have looked at other posts but didn't see anything that solved my problem. Thanks!
8 Answers, 1 is accepted
0
Hi jgig,
I suggest that you leave the Panel always in visible mode as it is ajaxified. Instead you can change the visibility status of the RadComboBox itself. Could you check it out and let me know if it makes any difference?
Regards,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I suggest that you leave the Panel always in visible mode as it is ajaxified. Instead you can change the visibility status of the RadComboBox itself. Could you check it out and let me know if it makes any difference?
Regards,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
jgig
Top achievements
Rank 1
answered on 09 Jul 2009, 03:40 PM
Thats won't work for me, there are other items in the Panel I need to hide also.
Any other ideas to try?
0
Hi jgig,
In this case you can wrap the invisible Panel in another Panel and ajaxify it instead, as it is done in this sample.
Can you check it out.
Kind regards,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
In this case you can wrap the invisible Panel in another Panel and ajaxify it instead, as it is done in this sample.
Can you check it out.
Kind regards,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
jgig
Top achievements
Rank 1
answered on 10 Jul 2009, 05:08 PM
I did this before because I saw it in your forums, it doesnt work(just confirmed again)
The combo the first time I show it it works fin, but if I through ajax set the panel3 to visible= false and then true again, it messes up all of the styles. It is functional(barely) because you can interact with it. but the style sheet isnt applied or something
<asp:Panel ID="Panel4" runat="server">
<asp:Panel ID="Panel4" runat="server">
<asp:Panel ID="Panel3" runat="server" Visible="false">
<table class="formtable" style="width: 100%;">
<tr>
<td>
<telerik:RadComboBox ID="rcbAirline" runat="server" Height="190px" Width="75px"
DataTextField="Code" DropDownWidth="320" OnItemsRequested="AirlineCode_ItemsRequested">
<HeaderTemplate>
<table style="width: 275px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 75px;"><asp:Literal ID="Literal14" runat="server" Text="AirlineCode" /></td>
<td style="width: 200px;"><asp:Literal ID="Literal15" runat="server" Text="Name >" /></td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 275px">
<tr>
<td style="width: 75px;"><div><%# DataBinder.Eval(Container.DataItem, "Code")%></div></td>
<td style="width: 200px;"><div><%# DataBinder.Eval(Container.DataItem, "Description")%></div></td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
</td>
<td>Another Control</td>
<td>Another Control</td>
<td>Another Control</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
because I am doing this through ajax is there a way to tell it through javascript to reapply the style sheet, I have had to do something like this before when using a radslider. For now I am leaving the ajax setting off of this control and that works fine. just breaks when I add ajax.
0
Hi jgig,
Could you please try the attached sample and let me know if it works as desired on your end if I missed something out?
Best wishes,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Could you please try the attached sample and let me know if it works as desired on your end if I missed something out?
Best wishes,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
jgig
Top achievements
Rank 1
answered on 13 Jul 2009, 03:52 PM
No, it doesn't work. Anything else?
0
Hi jgig,
I am afraid I am running out of ideas.
I suggest that you open a formal support ticket and send me a runnable application where I can observe the issues you are facing. I could debug it locally and find a proper solution for you.
Kind regards,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I am afraid I am running out of ideas.
I suggest that you open a formal support ticket and send me a runnable application where I can observe the issues you are facing. I could debug it locally and find a proper solution for you.
Kind regards,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
jgig
Top achievements
Rank 1
answered on 17 Jul 2009, 03:37 AM
I upgraded to 2009.2.701.35 - now it works. Plus it works the way it should...I didn't have to do any panel in panel goofy stuff.
Thanks for the fixes Telerik!