Has anyone come up with a good solution? I’ve tried so many different ways and still having the problem. I was able to just hard code it on one of my pages because there was only 5 items. One of my other pages has 55 items and I need a fix to this. I have other web pages that will be impacted as well. Any solutions that worked for other folks would be appreciated. Here is one link I’ve tried:
http://stackoverflow.com/questions/5584500/ordered-list-showing-all-zeros-in-ie9
Other situation I tried:
I just tried the code below and have the following error: Microsoft JScript runtime error:
Unable to set value of the property 'innerHTML': object is null or undefined
<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>IE9 Ordered List Zero Bug</TITLE>
</HEAD>
<BODY>
<DIV id="dv1">
<OL>
<LI>AAA</LI>
<LI>BBB</LI>
</OL>
</DIV>
<DIV id="dv2"></DIV>
<SCRIPT type="text/javascript">
document.getElementById("dv1").innerHTML = "<ol><li>XXX</li><li>YYY</li></ol>";
var container = document.createElement('span');
container.style.display = "none";
document.getElementById("dv2").appendChild(container);
</SCRIPT>
</BODY>
</HTML>
Link:
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/7b278286-4d47-4556-aa57-cbaf68edeef8
Hello,
I have a Problem after the last Telerik ASP.NET update.
I have a Grid with Columns they are the visible properties is false. I need some column values for the Event.
Here is my Grid:
<telerik:RadGrid ID="RadGridStaticContainer" runat="server" CellSpacing="0" Culture="de-DE" DataSourceID="ODSStaticContainers" GridLines="None" onitemcommand="RadGridStaticContainer_ItemCommand" onitemdatabound="RadGridStaticContainer_ItemDataBound"> <MasterTableView AutoGenerateColumns="False" DataKeyNames="StaticID" DataSourceID="ODSStaticContainers"> <CommandItemSettings ExportToPdfText="Export to PDF" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True"> <HeaderStyle Width="20px" /> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"> <HeaderStyle Width="20px" /> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="StaticID" DataType="System.Int64" FilterControlAltText="Filter StaticID column" HeaderText="StaticID" ReadOnly="True" SortExpression="StaticID" UniqueName="StaticID" Visible="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PlayerLayoutID" DataType="System.Int64" FilterControlAltText="Filter PlayerLayoutID column" HeaderText="PlayerLayoutID" SortExpression="PlayerLayoutID" UniqueName="PlayerLayoutID" Visible="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ContainerID" DataType="System.Int64" FilterControlAltText="Filter ContainerID column" HeaderText="ContainerID" SortExpression="ContainerID" UniqueName="ContainerID" Visible="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ContainerName" DataType="System.String" FilterControlAltText="Filter ContainerName column" HeaderText="ContainerName" SortExpression="ContainerName" UniqueName="ContainerName"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn DataField="ContainerObjects" FilterControlAltText="Filter ContainerObjects column" HeaderText="ContainerObjects" SortExpression="ContainerObjects" UniqueName="ContainerObjects"> <ItemTemplate> <asp:Label ID="ContainerObjectsLabel" runat="server" Text='<%# Eval("ContainerObjects") %>' EnableTheming="True"></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="SchedulerID" DataType="System.Int64" FilterControlAltText="Filter SchedulerID column" HeaderText="SchedulerID" SortExpression="SchedulerID" UniqueName="SchedulerID" Visible="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ContainerType" FilterControlAltText="Filter ContainerType column" HeaderText="ContainerType" SortExpression="ContainerType" UniqueName="ContainerType"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ContainerColor" FilterControlAltText="Filter ContainerColor column" UniqueName="ContainerColor" Visible="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ContainerTop" DataType="System.Int32" FilterControlAltText="Filter ContainerTop column" UniqueName="ContainerTop" Visible="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ContainerLeft" DataType="System.Int32" FilterControlAltText="Filter ContainerLeft column" UniqueName="ContainerLeft" Visible="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ContainerWidth" DataType="System.Int32" FilterControlAltText="Filter ContainerWidth column" UniqueName="ContainerWidth" Visible="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ContainerHeight" DataType="System.Int32" FilterControlAltText="Filter ContainerHeight column" UniqueName="ContainerHeight" Visible="False"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="editContainerObjects" FilterControlAltText="Filter editObjects column" HeaderText="<%$ Resources:InsertObjects, Edit %>" ImageUrl="~/cms/images/symbols/Edit.png" UniqueName="editContainerObjects"> </telerik:GridButtonColumn> <telerik:GridTemplateColumn DataField="ContainerObjects" FilterControlAltText="Filter ContainerObjectsHidden column" UniqueName="ContainerObjectsHidden" Visible="False"> <ItemTemplate> <asp:Label ID="ContainerObjectsHiddenLabel" runat="server" Text='<%# Eval("ContainerObjects") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu></telerik:RadGrid>Here is my Event:
protected void RadGridStaticContainer_ItemCommand(object sender, GridCommandEventArgs e){ if (e.CommandName == "editContainerObjects") { GridDataItem item = (GridDataItem)e.Item; staticObjectsID = Convert.ToInt64(item.GetDataKeyValue("StaticID").ToString()); string objectType = item["ContainerType"].Text.Trim(); Label lbl = item.FindControl("ContainerObjectsHiddenLabel") as Label; string containerObjects = lbl.Text.Trim(); containerHeight = Convert.ToInt32(item["ContainerHeight"].Text.Trim()); containerWidth = Convert.ToInt32(item["ContainerWidth"].Text.Trim()); HiddenStaticWidth.Value = containerWidth.ToString(); HiddenStaticHeight.Value = containerHeight.ToString(); LoadObjectEditor(objectType, containerObjects,false); }}I don't get the values for containerheight and the other values.
What can i do that this works fine again?
Reiner
<div id="dashboardContainer"> <div id="dbTitle"> <span>DSX Web Data Center</span> <div id="dbMenu"> <ul id="dbMenuItems"> <li>Open Workspace</li> <li>Create Workspace</li> <li>Most Recent Workspace</li> </ul> </div> </div> <div id="dbPanelContainer" runat="server"> <telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager> </div> <div id="dbDSXLogo"></div> </div>private void LoadDBPanels() { //Get Panel Information string xmlFile = "http://localhost/test/dbPanelsXML.xml"; XmlTextReader reader = new XmlTextReader(xmlFile); // Loop over the XML file while (reader.Read()) { // Here we check the type of the node, in this case we are looking for element if (reader.NodeType == XmlNodeType.Element) { // If the element is "profile" if (reader.Name == "panel") { //Create panel RadWindow panel = new RadWindow(); panel.OffsetElementID="dbPanelContainer"; panel.VisibleOnPageLoad = true; panel.Width = new System.Web.UI.WebControls.Unit(reader.GetAttribute("PanelWidth")); panel.Height = new System.Web.UI.WebControls.Unit(reader.GetAttribute("PanelHeight")); panel.Title = reader.GetAttribute("PanelTitle"); panel.ID = reader.GetAttribute("PanelID"); panel.Top = new System.Web.UI.WebControls.Unit(reader.GetAttribute("PanelTop")); panel.Left = new System.Web.UI.WebControls.Unit(reader.GetAttribute("PanelLeft")); panel.VisibleStatusbar = false; panel.RestrictionZoneID = "dbPanelContainer"; panel.NavigateUrl = "http://www.deslongchamps.me"; RadWindowManager1.Windows.Add(panel); } } }//end while }<?xml version="1.0" encoding="utf-8" ?><panels> <panel> <PanelID>DBPanel1</PanelID> <PanelTitle>Panel 1</PanelTitle> <PanelWidth>0</PanelWidth> <PanelHeight>0</PanelHeight> <PanelTop>0px</PanelTop> <PanelLeft>0px</PanelLeft> <PanelData>1</PanelData> <PanelType>1</PanelType> </panel> <panel> <PanelID>DBPanel2</PanelID> <PanelTitle>Panel 1</PanelTitle> <PanelWidth>400</PanelWidth> <PanelHeight>1700</PanelHeight> <PanelTop>0</PanelTop> <PanelLeft>410</PanelLeft> <PanelData>1</PanelData> <PanelType>1</PanelType> </panel></panels>