[assembly: WebResource("RossPc.Web.UI.Skins.Default.RossForm.Default.css", "text/css", PerformSubstitution = true)][assembly: WebResource("RossPc.Web.UI.Skins.Vista.RossForm.Vista.css", "text/css", PerformSubstitution = true)][assembly: WebResource("RossPc.Web.UI.Skins.RossForm.css", "text/css", PerformSubstitution = true)]namespace RossPc.Web.UI{ /// <summary> /// RossPc Form control /// </summary> /// [EmbeddedSkin("RossForm", typeof(RossForm), "RossPc.Web.UI.Skins")] [EmbeddedSkin("RossForm", "Default", typeof(RossForm), "RossPc.Web.UI.Skins")] [EmbeddedSkin("RossForm", "Vista", typeof(RossForm), "RossPc.Web.UI.Skins")][AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]public sealed class EmbeddedSkinAttribute : Attribute{ public EmbeddedSkinAttribute(string shortControlName, Type type) : this(shortControlName, null, type) { } public EmbeddedSkinAttribute(string shortControlName, Type type, string nameSpace) : this(shortControlName, null, type, nameSpace) { } public EmbeddedSkinAttribute(string shortControlName) : this(shortControlName, null, typeof(EmbeddedSkinAttribute)) { } public EmbeddedSkinAttribute(string shortControlName, string skin) : this(shortControlName, skin, typeof(EmbeddedSkinAttribute)) { } public EmbeddedSkinAttribute(string shortControlName, string skin, string nameSpace) : this(shortControlName, skin, typeof(EmbeddedSkinAttribute), nameSpace) { } public EmbeddedSkinAttribute(string shortControlName, string skin, Type type) { _shortControlName = shortControlName; _skin = skin; _type = type; } public EmbeddedSkinAttribute(string shortControlName, string skin, Type type, string nameSpace) { _shortControlName = shortControlName; _skin = skin; _type = type; _namespace = nameSpace; } public Type Type { get { return _type; } } public string Skin { get { return _skin; } } public string NameSpace { get { return _namespace; } } public string ShortControlName { get { return _shortControlName; } } public bool IsCommonCss { get { return _skin == null; } } public string CssResourceName { get { if (IsCommonCss) { return string.Format(NameSpace + ".{0}.css", ShortControlName); } return string.Format(NameSpace + ".{0}.{1}.{0}.css", Skin, ShortControlName); } } private string _skin; private string _shortControlName; private Type _type; private string _namespace = "Telerik.Web.UI.Skins";}StyleSheets.Add(new StyleSheetReference(skin.CssResourceName, control.GetType().Assembly.FullName));
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.
public virtual IList<TEntity> ODSFindAll(int startRow, int pageSize, string sortExpression, string filterExpression) public virtual int ODSCountAll(string sortExpression, string filterExpression)Both these methods are called fine by the ObjectDataSource connected to the RadGrid when 'sorting columns' however when filtering the ODSFindAll method is called with pageSize = 2147483647. It shouldn't be as I can see ODSCountAll being called and returning the correct count for the filter.
Without filtering in RadGrid the pageSize value is 10 and RadGrid lets the ODSFindAll method sort the data return just the 10 rows. It calls the ODSCountAll method to find out how many page rows there actually are.
With sorting & filtering in RadGrid the pageSize value jumps to 2147483647 - which is wasteful and unessesary because I can see it correctly passing both the sortorder and filterexpression correctly. Why is it doing this??
In another posting you suggest setting MaximumRows on the datasource but this causes problems on the 'page summary' where it incorrectly states "500 items in 32 pages" (where 500 is maximumrows and not the count returned by ODSCountAll when filtering.
The other post I refer to is :
http://www.telerik.com/community/forums/aspnet/grid/filtering-and-paging-simultaneously-in-objectdatasource.aspx
switch (e.Item.Value)
{
case "UserControl1":
this.UserControl1.Visible = true;
break;
case "UserControl2":
this.divUserControl1.Visible = true;
this.ucUserControl1.Load();//public method
break;
case "UserControl3":
----//same code
case "UserControl4":
same code
break;
}
Please provide any pointers if i am missing anything
<telerik:RadWindowManager ReloadOnShow="true" ShowContentDuringLoad="false" AutoSize="true"
EnableShadow="true" ID="RadWindowManager1"
Width="900px" Height="200px" runat="server">
</telerik:RadWindowManager>
<a href="#"
onclick="openRadWindow('<%# DataBinder.Eval(Container.DataItem, "PageID") %>'); return false;">Image Manager </a>
<telerik:RadPanelBar ID="rpbContainers" runat="server" DataTextField="Name" DataSourceID="oadsContainers" DataValueField="ID" Width="100%" Skin="Windows7" ExpandMode="MultipleExpandedItems" AppendDataBoundItems="true" > <Items> <telerik:RadPanelItem Text="New Container" Value="-1" Expanded="true"> <ContentTemplate> Create new container </ContentTemplate> </telerik:RadPanelItem> </Items> <ItemTemplate> <telerik:RadPanelItem> <Items> <telerik:RadPanelItem> <ContentTemplate> <%# Eval("Name") %> </ContentTemplate> </telerik:RadPanelItem> </Items> </telerik:RadPanelItem> </ItemTemplate></telerik:RadPanelBar>