Trying to use a combo box inside a ascx that is rendered with Html.RenderPartial.
Is this possible? Or do all the rad controls have to go in the aspx views?
7 Answers, 1 is accepted
I suggest you check our MvcForums demo. It shows how to use RadControls in partial views (user controls).
You can download the source code from here.
Regards,
Albert
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.
Thanks.
jon
There are no known performance issues with that approach.
All the best,
Albert
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.
One last question, I noticed the Skin rendering fails for controls inside partial views - is there a solution for this?
Jon
You can either manually include the skins CSS files or add a RadStyleSheetManager control in your partial views.
Greetings,
Albert
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.
Sys.Application.add_init(function(){$create(Telerik.Web.UI.RadDatePicker, {"_PopupButtonSettings":.....
<telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1">
<StyleSheets>
<telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Editor.css" />
<telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Forest.Editor.Forest.css" />
</StyleSheets>
</telerik:RadStyleSheetManager>
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableScriptCombine="true">
</telerik:RadScriptManager>
<telerik:RadDatePicker runat="server" Width="161px" ID="birthDayPicker" MinDate="1920-01-01" >
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
</telerik:RadDatePicker>
In the web.config I have:
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
<handlers>
<add name="Telerik.Web.UI.WebResource.axd" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode" />
Thanks a lot for your help