I must be having stuck in the fog. I know what I am asking is simple however I cannot see the solution.
I am trying to display data in a RADGrid that include associated information between two tables.
I have two tables Products and Vendors
Products Vendors
ProductID (pk) VendorID (pk)
ProductName VendorName
VendorRef (fk)
I want to display information from the products table including the VendorName from the vendors table.
Thank you for any insight and assistance.
Ray


| Dim imageManagerParameters As New ImageManagerDialogParameters() |
| imageManagerParameters.MaxUploadFileSize = 1048576 |
| imageManagerParameters.SearchPatterns = New String() {"*.jpg", "*.png", "*.gif"} |
| imageManagerParameters.FileBrowserContentProviderTypeName = GetType(wwwBaultar.RadEditorDBContentProvider).AssemblyQualifiedName |
| imageManagerParameters.ViewPaths = New String() {"ROOT/Images"} |
| imageManagerParameters.UploadPaths = New String() {"ROOT/Images"} |
| imageManagerParameters.DeletePaths = New String() {"ROOT/Images"} |
| Dim imageManager As New DialogDefinition(GetType(ImageManagerDialog), imageManagerParameters) |
| imageManager.ClientCallbackFunction = "ImageManagerFunction" |
| imageManager.Width = Unit.Pixel(694) |
| imageManager.Height = Unit.Pixel(440) |
| DialogOpener1.DialogDefinitions.Add("ImageManager", imageManager) |

| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| <style type="text/css"> |
| html, body, form |
| { |
| height: 100%; |
| margin: 0px; |
| padding: 0px; |
| overflow: hidden; |
| font-family: "Segoe UI" , Arial, Sans-serif; |
| font-size: 12px; |
| } |
| </style> |
| </head> |
| <body style="overflow: hidden;"> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <table cellpadding="0" cellspacing="0" border="0" style="width: 99%; height: 100%;"> |
| <tr style="vertical-align: top; height: 100%;"> |
| <td style="width: 220px; height: 100%"> |
| <telerik:RadTreeView ID="rtvBasis" runat="server" Skin="Default" Height="200" BorderColor="#FFFFFF" |
| BackColor="#FFFFFF" BorderStyle="Solid" BorderWidth="1px"> |
| <DataBindings> |
| <telerik:RadTreeNodeBinding ExpandedField="Expanded" /> |
| </DataBindings> |
| </telerik:RadTreeView> |
| <div style="height: 100%; overflow-y: scroll;"> |
| <telerik:RadTreeView ID="rtvProjecten" runat="server" Skin="Default" EnableDragAndDrop="true" |
| BorderColor="#FFFFFF" BackColor="#FFFFFF" BorderStyle="Solid" BorderWidth="1px" |
| CausesValidation="false"> |
| <DataBindings> |
| <telerik:RadTreeNodeBinding ExpandedField="Expanded" /> |
| </DataBindings> |
| </telerik:RadTreeView> |
| </div> |
| </td> |
| </tr> |
| </table> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using Telerik.Web.UI; |
| public partial class _Default : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| for(int i = 0; i < 5;i++) |
| { |
| RadTreeNode node = new RadTreeNode("item", i.ToString()); |
| rtvBasis.Nodes.Add(node); |
| } |
| for (int i = 0; i < 100; i++) |
| { |
| RadTreeNode node = new RadTreeNode("item", i.ToString()); |
| rtvProjecten.Nodes.Add(node); |
| } |
| } |
| } |
RadEditor1.Content = encodedString;
in the rad grid I get the result as follows,
<pre> <h1>My First Heading</h1> <p>My first paragraph.</p> Dear Dr. <<Contributor's name>>, <br/> On behalf of the Primary Care Department at UpToDate, I would like to thank you for the work that youve done as an author for us. We are very appreciative of your contributions regarding the topic <<Title of topic>>. <br/> This letter follows several attempts we have made to get in touch with you about a very important disclosure request, which is a necessary piece of our editorial process. As you may know, we are accredited to provide CME to our subscribers. In order to maintain this accreditation, we must collect disclosure information from our authors on an annual basis. We have not received a <<previous year>> disclosure form from you, despite our attempts to contact you in this regard. <br/> In keeping with our editorial policy and CME guidelines, we are removing your name from our program as author on the <<Title of topic>> topic, beginning with version <<next version>> (to be released in <<month and year>>). <br/> Again, thank you very much for participating in the UpToDate program. </br> Sincerely, <<EA's name>> </pre>
the <Br/> tags are put as it is... and the there is no new lines generated even though the encoded string contains \r and \n
Can the Rad editor Understand HTML tags and render accordingly?
Thanks,
Ramesh
