or



| public partial class components_NorViewer : System.Web.UI.UserControl |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!Page.IsPostBack) |
| { |
| string rootFolder = Server.MapPath("~/NORs"); |
| RadTreeNode rootNode = new RadTreeNode(Path.GetFileName(rootFolder)); |
| rootNode.ImageUrl = "~/images/folder.gif"; |
| rootNode.Expanded = true; |
| RadTreeView1.Nodes.Add(rootNode); |
| BindTreeToDirectory(rootFolder, rootNode); |
| } |
| } |
| private void BindTreeToDirectory(string dirPath, RadTreeNode parentNode) |
| { |
| string[] directories = Directory.GetDirectories(dirPath); |
| foreach (string directory in directories) |
| { |
| RadTreeNode node = new RadTreeNode(Path.GetFileName(directory)); |
| node.ImageUrl = "~/images/folder.gif"; |
| parentNode.Nodes.Add(node); |
| BindTreeToDirectory(directory, node); |
| } |
| string[] files = Directory.GetFiles(dirPath); |
| foreach (string file in files) |
| { |
| RadTreeNode node = new RadTreeNode(Path.GetFileNameWithoutExtension(file)); |
| node.ImageUrl = "~/images/new.gif"; |
| node.ToolTip = "Click to Load Groups of this NOR"; |
| parentNode.Nodes.Add(node); |
| } |
| } |
| protected void NodeClick(object sender, RadTreeNodeEventArgs e) |
| { |
| switch (e.Node.Level) |
| { |
| case 1: |
| components_NorDetail uc1 = (components_NorDetail) Page.LoadControl("~/components/NorDetail.ascx"); |
| uc1.FileName = "~/NORs/" + e.Node.Text + ".xml"; |
| RadPane2.Controls.Add(uc1); |
| BuildNorSectionNodes(e.Node.Text, e.Node); |
| break; |
| case 2: |
| Control uc = Page.LoadControl("~/components/NorSection.ascx"); |
| RadPane2.Controls.Add(uc); |
| break; |
| } |
| } |
| private void BuildNorSectionNodes(string strfile, RadTreeNode parentNode) |
| { |
| DataSet ds = new DataSet(); |
| ds.ReadXml(Server.MapPath("~/NORs/" + strfile+".xml")); |
| foreach (DataRow dr in ds.Tables["sectiongroup"].Rows) |
| { |
| RadTreeNode node = new RadTreeNode(dr["sectiongroupnumber"].ToString()+" "+dr["sectiongrouptext"].ToString()); |
| node.ImageUrl = "~/images/new.gif"; |
| node.ToolTip = "Click to Load Sections of this Group"; |
| node.Expanded = true; |
| parentNode.Nodes.Add(node); |
| } |
| parentNode.Expanded = true; |
| } |
| } |
| public partial class components_NorDetail : System.Web.UI.UserControl |
| { |
| private string strFileName; |
| public string FileName |
| { |
| set { strFileName = value; } |
| get { return this.strFileName; } |
| } |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| DataSet ds = new DataSet(); |
| ds.ReadXml(Server.MapPath(FileName)); |
| litDate.Text = ds.Tables["NOR"].Rows[0]["date"].ToString(); |
| litDesc.Text = ds.Tables["NOR"].Rows[0]["desc"].ToString(); |
| litTitle.Text = ds.Tables["NOR"].Rows[0]["title"].ToString(); |
| litUpdated.Text = ds.Tables["NOR"].Rows[0]["updated"].ToString(); |
| } |
| protected void lkbEdit_Click(object sender, EventArgs e) |
| { |
| string strtest = string.Empty; |
| } |
| } |
body
{
font-family: News Gothic;
font-size: 9pt;
}
table
{
BORDER-RIGHT: #999999 1px dashed;
BORDER-BOTTOM: #999999 1px dashed;
}
table
td
{
PADDING: 1px;
BORDER-TOP: #999999 1px dashed;
BORDER-LEFT: #999999 1px dashed;}
table
th
{PADDING: 1px;
BORDER-TOP: #000000 1px dashed;
BORDER-LEFT: #000000 1px dashed;}
.RadEWrongWord
{ background: url('wave.gif') repeat-x left bottom; }
.diff_deleted
{color: red; text-decoration: line-through}
.diff_new
{background-color: #99FF00}
----
When I paste with the "Paste From Word" button (NO strip font) the bullets ars ok, but then the font might be wrong (we want News Gothic).
Please help, our users are complaining a lot about this.
Kind regards Barbara

| if (typeof($telerik) != 'undefined' && !$telerik.isSafari) |
| { |
| var links = document.body.getElementsByTagName('link'); |
| if (links && links.length>0) |
| { |
| var documentHead = document.getElementsByTagName('head')[0]; |
| if (documentHead) |
| { |
| for (var i=links.length-1;i>=0;i--) |
| { |
| var linkTag = links[i]; |
| if (linkTag.title == 'Telerik stylesheet') |
| { |
| if ($telerik.isIE) |
| { |
| linkTag = linkTag.cloneNode(true); |
| } |
| documentHead.appendChild(linkTag); |
| } |
| } |
| } |
| } |
| } |