or

Hi developers,
I'm using a List of objects to fill my Grid. The objects type is a class that inherits from another class. My grid shows the fields correctly, but if I try sort, I get some strange errors. When I try to sort by a field from the base class, I get an error (Cannot find the column '...'). If I try sort by a field from the child class (used as DataSource), the Grid is sorted correctly.
My Telerik version is Q3 2008.
Following, I try to exemplify the situation.
My classes:
| public class ClassA |
| { |
| public string ID { get; set; } |
| public string Name { get; set; } |
| } |
| public class ClassB : ClassA |
| { |
| public string ZipCode { get; set; } |
| } |
My Page:
| radGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) |
| { |
| List<ClassB> list = getData(); |
| radGrid.DataSource = list; |
| } |
<telerik:RadWindowManager runat="Server" ID="RadWindowManager2" ShowContentDuringLoad="false" EnableViewState="false"> <Windows> <telerik:RadWindow runat="server" ID="EmailScreen" KeepInScreenBounds="true" Title="TWDM Email" OnClientBeforeClose="OnClientBeforeCloseEmailScreen" InitialBehaviors="Maximize" AutoSize="true" Width="1000px" Height="850px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="True" Behaviors="Close,Move,Resize,Maximize" VisibleStatusbar="true"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> function OnClientBeforeCloseEmailScreen(sender, eventArgs) { radconfirm('Do you want to save as draft?', confirmCallbackFn1, 400, 200, null, 'TWDM Confirm'); } function confirmCallbackFn1(arg) { if (arg) //the user clicked OK { __doPostBack("<%=hdnBtnSaveAsDraft.UniqueID %>", ""); } }' Showing email compose screen in Radwindow Popup here. function onButtonClicked(sender, args) { var commandName = args.get_item().get_commandName(); var qs = getQueryStrings(); var oManager = GetRadWindowManager().getWindowByName("EmailScreen"); if (commandName == "Compose") { window.radopen("ComposeMail.aspx?type=NewEmail&TaskNo=" + qs["TaskNo"] + "&Parent=" + qs["Parent"] + "", "EmailScreen"); }NS_ERROR_OUT_OF_MEMORY: Out of Memoryif(e){b=e[a];

