Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views

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

Yavor
Telerik team
 answered on 10 Jun 2010
2 answers
127 views
Hello.I'm trying to insert an editor inside an i-frame with height 100%.It doesn't work in ie7.It works in Firefox thought.
Using XHTML 1.0 Transitional.
Any ideas?
Rumen
Telerik team
 answered on 10 Jun 2010
2 answers
75 views
hello,

i'm using the latest module version of radeditor for dotnetnuke (5.2.3) and i have a portal where i created all the content with the radeditor and at the german language IE7 doesn't show me the content only the english content.
the difference between german and english are the ä,ü,ö,ß,...

here ist he english link to the startpage which works at IE7
http://www.hellmerich.at/en/Home.aspx
and this is the german startpage which doesn't work with IE7
http://www.hellmerich.at/de/Home.aspx

at the webconfig of the cms i have choosen UTF8 unicode

i have no idea what could i do, when i delete the HTML modul from the german startpage the page load correctly.

thanks

regards

michael

Rumen
Telerik team
 answered on 10 Jun 2010
1 answer
138 views
I really like the look and feel of the RadAsyncUpload, but I can't seem to figure out how to use it.  None of the demos show how to do a full save file.  I can get my code to save the temp file to the App_Code/RadUploadTemp folder, but I can't figure out how to access that file and rename/save it to it's actual location.  I've been trying to use the UploadedFileInfo.TempFileName method, but I get an unreadable string returned.

Any demos or help would be greatly appreciated!
Genady Sergeev
Telerik team
 answered on 10 Jun 2010
1 answer
181 views
I have a very basic question about RadAjaxManager that I was unable to answer yet. How to pass data back to the client-side response handler:

Client-side, I might do something like this:

RadAjaxManager1.ajaxRequest(arg);

Server-side, I then do something like this:

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
  string arg = e.Argument;
  // do something
}

Client-side, I then handle the response as so

function OnReponseEnd(sender, eventArgs)
{
}

My basic question is - how to pass data back to OnResponseEnd? What can I do server-side that will generate data that I can then process in OnResponseEnd? I'm more accustomed to doing ajax more bare-bones, like through jQuery, where I can pass params back and forth. I know I can add ResponseScripts server-side in order to pass data, but that's a bit clunky.

Thanks




Veli
Telerik team
 answered on 10 Jun 2010
1 answer
196 views
Hello, how can i configure the AllowedFileExtensions property to allow files having no file extension to be uploaded?  For example, i want to allow .jpg and .txt, and also any file that has no extension.  I have tried adding just ".", but it doesn't work.
Genady Sergeev
Telerik team
 answered on 10 Jun 2010
3 answers
348 views
hi, I use DialogOpener to open ImageManager directly
        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) 

That work great except if user click on the Image Editor I got this error:

Microsoft JScript runtime error: Sys.ArgumentNullException: Dialog Parameters for the ImageEditor dialog do not exist
Parameter name: dialogName

i see some post fot calling the image Editor directly but whats about calling inside the image manager ?
Thanks
Rumen
Telerik team
 answered on 10 Jun 2010
2 answers
568 views
Hello,

I have the following situation. A fixed height treeview (fixed number of items) and below a dynamic treeview with height set to 100%. Body with no scrolling, but scrolling on the treeview. It works just fine except that the 100% takes up 100% screenheight + height of top treeview. I know is is by design of the browsers, but was wondering if anyone might know a fix for it other than setting height clientside with javascript. To reproduce you can use the below code. Thanks in advance:

aspx page:

<%@ 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> 
 


Codebehind to fill with data:

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);  
        }  
    }  
}  
 
Yeroon
Top achievements
Rank 2
 answered on 10 Jun 2010
1 answer
112 views
when I set the content property of the rad editor with content that has \r\n tags, </br> tags and other html tags,

the \r\n are stripped and the other html tags are displayed as it is in the rad editor.

I set the code like this,

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

Rumen
Telerik team
 answered on 10 Jun 2010
1 answer
102 views
Hello,
  I use the telerik grid. I use  GridDropDownColumn for the boolean value. but when i want to set only once true & false value in dropdown
Princy
Top achievements
Rank 2
 answered on 10 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?