Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
It seems you have to select a row in a grid before it can be dragged (to another grid).

This differs from the tree control where it can be click-dragged without having to actually click and release first.

Is there a way to enable dragging a grid row without having to click and release to select it first?

Thx
Rosen
Telerik team
 answered on 26 Aug 2009
2 answers
245 views
Hi, I have the following scenario/code and I'm looking for a solution to this problem or a different way of doing it entirely!

I need a page with a number of tabs, each tab should display a question (Label) and an answer (RadEditor). The number of questions can vary so I need a way of doing this dynamically. Currently I have solved this problem by using a user control with the Label and RadEditor and loading this dynamically when (a) the page is loaded and !isPostBack (b) the radTab tabClick event fires.

My problem now is that if a user were to edit the text in the radEditor for Question 1 (for example) then clicks the tab for Question 2, the modified answer is lost. I need a way of either saving this answer to the database when the tabstrip is clicked or at least storing it as a session variable. This would be straight forward if only I could find a way to access the radEditor of Question 1 once the tab for Question two has been clicked!

When the tab is clicked the Page_Load method fires first then the tabClick event fires, so I have been using the following code:

When the page is first loaded (!isPostback):
ASP.Question question = new ASP.Question();  
question.LoadControl("./Question.ascx");  
question.ID = "question1";  
question.questionNumber = 1;  
question.questionTable = questionTable;  
 
RadMultiPage1.FindControl("RadPageView1").Controls.Add(question);  
Session["Current Question"] = 1; 

on PostBack:
int currentQuestion = Convert.ToInt32(Session["Current Question"]);  
Type type = sender.GetType();  
ASP.innovation_project_aspx myPage = sender as ASP.innovation_project_aspx;  
RadMultiPage rmp = myPage.FindControl("RadMultiPage1") as RadMultiPage;  
RadPageView rpv = rmp.FindControl("RadPageView" + currentQuestion) as RadPageView;  
ASP.Question aspq = rpv.FindControl("question1") as ASP.Question;  
RadEditor re = aspq.FindControl("RadEditor1") as RadEditor;  
 
I have tried various similar ways of doing this and they always fail as when debugging, the RadMultipage, rmp, is always null even though the Type, type, is an ASP.innovation_project_aspx as expected. I think I could be doing this totally wrong but my mind is now locked on this method!

Any solutions or alternate ideas would be greatly appreciated, I can try and explain further or post more code if required. Thanks in advance.
Greg
Top achievements
Rank 1
 answered on 26 Aug 2009
4 answers
147 views

Following is the two programs schedule and I want to show as described in image bellow

http://cid-d94cba5d3ede6058.skydrive.live.com/self.aspx/EPG/Existing.png
http://cid-d94cba5d3ede6058.skydrive.live.com/self.aspx/EPG/Requirement.png

Program Schedule:

    1.  Program A (Start:4:05AM End:04:25AM)
    2.  Program B (Start:4:26AM End:04:40AM)

Currently the give control is displaying information as bellow:

http://cid-d94cba5d3ede6058.skydrive.live.com/self.aspx/EPG/Existing.png
But I want it should be displayed as follows:

http://cid-d94cba5d3ede6058.skydrive.live.com/self.aspx/EPG/Requirement.png

Alex Gyoshev
Telerik team
 answered on 26 Aug 2009
6 answers
283 views
Hi 
    I have used Rad ASP.NET AJAX Menu, but it's not working on Internet Explorer 8 or  firefox. please give your reply as early as posible.

Thanks

 
Alex Gyoshev
Telerik team
 answered on 26 Aug 2009
1 answer
95 views
Hi,

I have upgraded the telerik Controls in my application with the latest version.

I am facing few issues since then.

The following Client call is not working:

function RefreshGrid(arg)
    {
        window["<%#m_UINews.ClientID %>"].AjaxRequest('<%# m_UINews.UniqueID %>', '<%#REBIND_ARG %>');
    }

m_UINews is a RadGrid Control.

I am getting the following error while running:

function RefreshGrid(arg)
    {
         window[""].AjaxRequest('', '');
    }

Please help me if i need to change some properties or methods in the client side call to correct this.

Thanks and Regards,
Damodar
Georgi Tunev
Telerik team
 answered on 26 Aug 2009
1 answer
49 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
157 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
135 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
113 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
116 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?