Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
47 views
I want to display my Chart values in the plot area, at the extream end of the plot area but withine the plot area itself. Please let me know how can it be achieved? Do we have any properties for this,?
Ves
Telerik team
 answered on 26 Aug 2009
1 answer
148 views

Problem:
I just upgraded from an older 2008 version to the latest Q2 2009 only to discover that the RadSpltter is no longer sizing to the full screen height. This has broken all my current solutions implemented using the splitter to control page layout. I upgraded because the older 2008 version was broken for IE8 forcing me to uninstall IE8 and reinstall IE7...this is blocking my deployment of a new solution so any help would be appreciated.

System:
Windows XP Professional with SP3
Internet Explorer 7 with all patches and updates.
Visual Studio 2008 with SP1 and the 3.5 SP1 .NET Framework
SQL Server 2008 with latest SP and all patches
Telerik RadControls for ASP.NET AJAX Q2 2009 NET35

Repro Steps:

  • Using 'Add Remove Programs' Uninstall Telerik RadControls for ASP.NET AJAX 2008
  • Reboot system
  • Install Telerik RadControls for ASP.NET AJAX Q2 2009 NET35
  • Reboot system
  • Launch Visual Studio and create new ASP.NET Web Application (note: toolbox now has tabs for .NET20 and .NET35 versions of the RedControls - I repro'ed this with both sets)
  • Add a RadScriptManager to the Default.aspx page and register it in the WebConfig
  • Add a RadSplitter with a single RadPane
  • Set the FullScreenMode property of the RadSplitter to 'true'
  • Set the BackColor of the RadPane to 'red'
  • Build and run

 

 

Expected:

The RadSplitter to automatically resize to the browser such that the full page appears red.

Actual:
The RadSplitter resizes to the browser width but the height remains fixed at about 400 pixels. Manually setting the width and height to '100%' has no effect.

Svetlina Anati
Telerik team
 answered on 26 Aug 2009
2 answers
128 views

I have a problem with a RadTreeView when I use dir="rtl". I 'd like to attach a very simple project to show you what is a problem but I don't see here this option. (Also I don' see how change colors in this editor).  So I'll try to describe a problem.

I have the following page:

 

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

 

<%

@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

 

 

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>

 

</

head>

 

<

body>

 

 

<form id="form1" runat="server" method="post">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

<div>

 

 

 

<telerik:RadTreeView ID="RadTreeView1" runat="server" dir="rtl"

 

 

DataSourceID="XmlDataSource1">

 

 

<DataBindings>

 

 

<telerik:RadTreeNodeBinding DataMember="MenuItem" TextField="Text"

 

 

ValueField="Node_Id" />

 

 

</DataBindings>

 

 

</telerik:RadTreeView>

 

 

 

<asp:XmlDataSource runat="server" ID="XmlDataSource1" DataFile="tree.xml" />

 

 

</div>

 

 

</form>

 

</

body>

 

</

html>
-------------------------------------------End of the page default.aspx------------------------------------

 

where file tree.xml is:

-------------------------------------file tree.xml---------------------------------------

 

<

root>

 

<

MenuItem Node_Id="1" Text="Level 1">

 

<

MenuItem Node_Id="2" Text="Level 2" >

 

 

</

MenuItem>

 

</

MenuItem>

 

</

root>

 

 

-------------------------------------end of file tree.xml--------------------------------------- 

When I run the page I look firstly collapsed tree in the right side of the screen. But when mouse is found over "plus" of the tree this plus disappears so I can' t open the tree. If I cancel option dir="rtl" then I see the tree in the left side of he screen and I can open it and see sublevels.
Is this a bug or I missed something? Thank you
Evgeny

 

eugen100
Top achievements
Rank 1
 answered on 26 Aug 2009
3 answers
105 views

There have been several posts related to this issue for earlier versions of IE but I am using IE8 and still getting this problem.  I have an Editor on an aspx page.  This page is opened in a new window when requested via javascript on the opening page.  After the form has loaded several times successfully the next load will not finish (locks up) and not only is this new window locked up, but the browser that opened the new window is hung and must be closed.  This is a very simple page.  I have debug="false" in the web.config.

Here is my code behind:

Imports
System.Web.HttpResponse

 

Imports

 

System.Web.HttpRequest

 

Imports

 

System.Web.HttpApplicationState

 

Imports

 

System.IO

 

Imports

 

System.Xml

 

Imports

 

System.Data

 

Imports

 

System.Data.OleDb

 

Imports

 

code

 

Imports

 

System.Diagnostics

 

Imports

 

System.Web

 

Partial

 

Class HTMLEditor

 

 

Inherits System.Web.UI.Page

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

Dim OpeningForm As String = "" & Request.QueryString("form")

 

 

Dim Script As String = ""

 

Script =

"function CloseWindow(){ " & vbCrLf

 

Script +=

"window.close(); " & vbCrLf

 

Script +=

"return true; " & vbCrLf

 

Script +=

"} " & vbCrLf

 

Script +=

"function UpdateOpener(){ " & vbCrLf

 

Script +=

"var strValue = $find(""" & "RadEditor1" & """).get_html();" & vbCrLf

 

Script +=

"window.opener.document." & OpeningForm.ToString.Trim & ".Data.value = strValue;" & vbCrLf

 

Script +=

"window.close(); " & vbCrLf

 

Script +=

"return true; " & vbCrLf

 

Script +=

"} " & vbCrLf

 

Script +=

"function GetOpenerContent(){ " & vbCrLf

 

Script +=

" var strValue = window.opener.document." & OpeningForm.ToString.Trim & ".Data.value; " & vbCrLf

 

Script +=

" $find(""" & "RadEditor1" & """).set_html(strValue); " & vbCrLf

 

Script +=

" return true; " & vbCrLf

 

Script +=

"} " & vbCrLf

 

 

If ClientScript.IsClientScriptBlockRegistered(Page.GetType(), "MyScriptTransfer") = False Then

 

ClientScript.RegisterClientScriptBlock(Page.GetType(),

"MyScriptTransfer", Script.ToString, True)

 

 

End If

 

Button4.Attributes.Add(

"onclick", "UpdateOpener();")

 

Button5.Attributes.Add(

"onclick", "CloseWindow();")

 

 

End Sub

 

 

Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload

 

 

'RadEditor1.Content = ""

 

 

End Sub

 

 

 

Protected Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button5.Click

 

 

End Sub

 

 

Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click

 

 

End Sub

 

End

 

Class

 

Here is my html:

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="HTMLEditor.aspx.vb" Inherits="HTMLEditor" Debug="false" %>

 

<%

@ 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>Preference HTML Editor</title>

 

</

 

head>

 

<

 

body runat="server" id="bodytag">

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" ScriptMode="Release">

 

 

</telerik:RadScriptManager>

 

 

<div>

 

 

 

<asp:Table ID="Table1" runat="server" Width="600">

 

 

<asp:TableRow Width="600">

 

 

<asp:TableCell Width="600" HorizontalAlign="Center" >

 

 

<telerik:RadEditor ID="RadEditor1" Runat="server" OnClientLoad="GetOpenerContent" width="600" >

 

 

<Content>

 

 

</Content>

 

 

</telerik:RadEditor>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow Width="600">

 

 

<asp:TableCell Width="600" HorizontalAlign="Center" >

 

 

<asp:Button ID="Button4" onclick="Button4_Click" runat="server" Text="Save" />&nbsp;

 

 

<asp:Button id="Button5" onclick="Button5_Click" runat="server" text="Cancel" ></asp:Button>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

</asp:Table>

 

 

<asp:TextBox ID="TextBox1" runat="server" visible="false"></asp:TextBox>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 


Rumen
Telerik team
 answered on 26 Aug 2009
2 answers
113 views
Good Evening,
                        I have a project where I am using the Tree Navigation and the Calendar functions that are working just fine when compiled on my local machine using a remote SQL box. I go to publish the project to my IIS6 front end and I can access the html files of the web app just fine but any ASP pages I try to access it breaks. I strip out Telerik and it works just fine. Any ideas? I really like the product, I am just having difficulties getting to work. I downloaded the CHM file and it will not show any information in the main viewing window for me.

Thank you for any suggestions or help,

John M.
    <httpHandlers> 
      <remove path="*.asmx" verb="*" /> 
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> 
      <add path="*.xml" verb="*" type="System.Web.HttpForbiddenHandler" /> 
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" /> 
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" /> 
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" /> 
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" /> 
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> 
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
    </httpHandlers> 
    <httpModules> 
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> 
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
    </httpModules> 

 
  <system.webServer> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <modules> 
      <remove name="ScriptModule" /> 
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> 
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
    </modules> 
    <handlers> 
      <remove name="WebServiceHandlerFactory-Integrated" /> 
      <remove name="ScriptHandlerFactory" /> 
      <remove name="ScriptHandlerFactoryAppServices" /> 
      <remove name="ScriptResource" /> 
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" /> 
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
 
    </handlers> 
  </system.webServer> 

Paul
Telerik team
 answered on 26 Aug 2009
1 answer
123 views
I have a "rad slider" and when i click on "radslider item"  it navigate me to next page. all is working fine.

Problem: Now the problem is that when i click on item to navigate to next page ,
               on loading time my item on this page goes little bit down then navigate to next page.

So i want when i click on item ."it become fixed and don't move upon clicking" and smooth navigate to next page.
Tsvetie
Telerik team
 answered on 26 Aug 2009
1 answer
107 views
I don't know why my radDock doesnt show title bar at all.


            RadDock radDock = new RadDock();  
            radDock.DockMode = DockMode.Docked;  
            radDock.OnClientInitialize = "SetHandleDock";  
            radDock.DockHandle = DockHandle.None;  
            radDock.Title = lzContent.Title ;  
            radDock.UniqueName = Guid.NewGuid().ToString();  
            radDock.Width = Unit.Pixel(100);  
 
            radDock.ID = lzContent.LayoutZoneContentId.ToString();  
 
            //if banner  
            if (lzContent.LayoutZoneContentType.LayoutZoneContentTypeId == 1)  
            {  
                System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();  
                img.ID = "radDock" + lzContent.LayoutZoneContentId;  
 
                radDock.ContentContainer.Controls.Add(img);  
            } 

When I look at the source code, it doesn't have titlebar like: 

<div class="rdSideBorders rdHTitlebar"><div class="rdTitlebar rdDraggable" id="RadDock3aa72894-86eb-41c4-8d5b-f9b2feabeddb_T" style="cursor: move;">
   <em class="rdTitle">Dock Title</em><span class="rdCommands" style="width: 38px;"><a title="Close" class="rdClose"/><a title="Collapse" class="rdCollapse"/></span>
  </div>

It just shows

<div class="rdSideBorders"><div class="rdContent" id="ctl00_cphLeftColumn_rptContentType_ctl01_50_C">
    <img style="border-width: 0px;" src="../../library/Company/32/6872.jpg" id="ctl00_cphLeftColumn_rptContentType_ctl01_50_C_radDock50"/>
   </div></div>
Pero
Telerik team
 answered on 26 Aug 2009
1 answer
54 views
Hi -

 I'm doing a trial of the the Telerik grid and want to know how to do the display data on the Grid;
 
I need to databind the grid (on the server side) to a IList<T> where T is a custom class. The grid does not display the data.

My Code is below

RadGrid.DataSource = <list>;

RadGrid.DataBind();


MS GridView displays the data from the same datasource.

Please advise  

Thanks
Kaushik
Shinu
Top achievements
Rank 2
 answered on 26 Aug 2009
1 answer
104 views
Hi,
      I am using Telerik Rad Grid. I have a requirement to make a cell editable to show a calendar from there when user single clicks on the cell. Will it possible using Rad Grid?

Thanks
Hemangajit
Princy
Top achievements
Rank 2
 answered on 26 Aug 2009
2 answers
87 views
Hi,

i have a problem, closing a FormTemplate after inserting data.
The data was inserted correct within the RadGrid1_InsertCommand. And afterwards correct rebinded (RadGrid1_NeedDataSource).

I also see the new insered row in the grid. But the Formtemplate stays open. (cleared)
I use the AutomaticInserts but don't have a datasource, the data was bind manually.

I tryed out 
MastertableView.ClearEditItems();
and
e.item.edit = false in the InsertCommand. Nothing helps. :-(

Some ideas out there?

Thanks in advance
Lars
Princy
Top achievements
Rank 2
 answered on 26 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?