or
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ObjectDataSource1" OnColumnCreated="RadGrid1_ColumnCreated" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound" OnExportCellFormatting="RadGrid1_ExportCellFormatting" Width="100%"> <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" AllowSorting="false" DataKeyNames="EventGroupTypeId, ParentEventGroupTypeId" TableLayout="Fixed"> <SelfHierarchySettings ParentKeyName="ParentEventGroupTypeId" KeyName="EventGroupTypeId" /> </MasterTableView> <ClientSettings AllowExpandCollapse="true"> <Scrolling AllowScroll="true" /> <ClientEvents OnGridCreated="GridCreated" /> </ClientSettings></telerik:RadGrid>
.rgDataDiv { height: auto !important }function GridCreated(sender, args) { ResizeGrid();}function ResizeGrid() { var grid = $find("<%= RadGrid1.ClientID %>"); grid.get_element().style.width = ($(window).width() - 140) + "px"; // <-- with this line included, the problem shows. Without it, the problem doesn't show but the grid also goes off the screen (large number of columns)}
<telerik:RadHtmlChart runat="server" Width="400px" Height="300px" ID="RadHTMLChart1" DataSourceID="SqlDataSource2" > <Legend> <Appearance Position="Top"> </Appearance> </Legend> <PlotArea> <Series > <telerik:PieSeries DataFieldY="SumPeopleServed" Name="People Served" StartAngle="90" > </telerik:PieSeries> </Series> </PlotArea> <ChartTitle Text="% Samples by RDS"> <Appearance> <TextStyle FontSize="16px"></TextStyle> </Appearance> </ChartTitle> </telerik:RadHtmlChart> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:cnPanDMSWEB_dead %>" SelectCommand="Select RDSNUm, Sum(PeopleServed) as 'SumPeopleServed' from mcop_OrderEntry Where TransDate >= @StartDate and TransDate <= @EndDate Group By RDSNum"> <SelectParameters> <asp:ControlParameter ControlID="dtStartDate" DefaultValue="7/1/2013" Name="StartDate" PropertyName="SelectedDate" /> <asp:ControlParameter ControlID="dtEndDate" DefaultValue="7/31/2013" Name="EndDate" PropertyName="SelectedDate" /> </SelectParameters> </asp:SqlDataSource>public partial class Index : Page protected void Page_Init(object sender, EventArgs e) { this.CreateGrid(); } private void CreateGrid() { RadGrid grid = new RadGrid(); grid.ID = "gvBenchmark"; grid.AutoGenerateColumns = false; grid.Skin = "Metro"; grid.AllowSorting = true; grid.AllowPaging = true; grid.PageSize = 15; grid.SortingSettings.SortToolTip = String.Empty; GridBoundColumn idColumn = new GridBoundColumn(); idColumn.HeaderText = "ID"; idColumn.UniqueName = "ID"; idColumn.DataField = "ID"; grid.Columns.Add(idColumn); GridBoundColumn ageColumn = new GridBoundColumn(); ageColumn.HeaderText = "Age"; ageColumn.UniqueName = "Age"; ageColumn.DataField = "Age"; grid.Columns.Add(ageColumn); grid.DataSource = this.GetData(); grid.DataBind(); pnGrid.Controls.Add(grid); } private IList<Person> GetData() { IList<Person> persons = new List<Person>(); for (int i = 0; i < 100; i++) { Person p = new Person(); p.Age = i + 10; p.ID = i; persons.Add(p); } return persons; }}public class Person { public int Age { get; set; } public int ID { get; set; }}Unable to get property 'ie' of undefined or null reference
Telerik.Web.UI.WebResource.axd, line 7041 character 150
And that error is followed by:
Object doesn't support this action
Telerik.Web.UI.WebResource.axd, line 6 character 54851
The charts never load with data.
SCRIPT3: Member not found.
Telerik.Web.UI.WebResource.axd, line 1871 character 23238