Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views
I have a RadDock that I create dynamically on the backend.  I have assigned the OnDragEnd event to capture when I finish dragging the RadDock.  Here's what I'm trying to do:

I have 12 RadDockZones on the page.  When I drop the RadDock onto one of those zones, I need to capture the ID of the zone I dropped it onto AND be able to pass that zone ID to a server-side event.

Anyone have experience with this?
Petya
Telerik team
 answered on 11 Jan 2008
1 answer
140 views
There is no method by which the current date can be highlighted on the RadDateTimePicker (and probably also the RadDatePicker, but I haven't checked).

In addition, the method described to highlight the current date for the RadCalendar is quite cumbersome. Couldn't there just be a property on each of the RadCalendar, RadDatePicker, and RadDateTimePicker called something like "HighlightCurrentDate" that is a true/false value that would automagically highlight the current date? (even better would be additional properties to set the current date styles and background graphic like the special days (but different from them because the current date will probably be styled differently than the special days in instances where both are present to call attention to the current date)).
Maria Ilieva
Telerik team
 answered on 11 Jan 2008
4 answers
544 views
Using the PrometheusExamples and the DialogReturnValue example, if I use the OnClientClose method and actually try to pull the radWindow.Argument, all it returns in an alert statement is [object Object].  The text on the control is correctly being set, but that is happening through the CallBackFunction (using the returnValue).

So why is it that the text is coming back as [object Object]?  The example states that you can use several different variants, variant 1, as per the example, states that you can pass something in the radWindow.close(), such as radWindow.close('some text');  Again, that 'some text' comes back as an [object Object] -- so how do I get it to be a string?

Thanks,
Georgi Tunev
Telerik team
 answered on 11 Jan 2008
1 answer
158 views
Use FireFox:
1. set animation = flyin. open window animation works fine. but close window animation is always 'fade out'. is it possible to set another animation for close window?

2. in window page, use oWindow.close() to close window, the animation works ok. but when use oWindow.close(args), the animation stops work.
Georgi Tunev
Telerik team
 answered on 11 Jan 2008
1 answer
91 views
Setting ExportOnlyData=true (in ExportSettings) breaks client-side selection checkboxes.

Source for a sample page demonstrating this bug is below.

David

Default.aspx:

<%

@ 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>Test Page</title>

</

head>

<

body>

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

<div>

<asp:ScriptManager ID="scriptManager" runat="server" EnableViewState="false" />

<telerik:RadGrid ID="testGrid" runat="server" AllowMultiRowSelection="true">

<ClientSettings ApplyStylesOnClient="True">

<Selecting AllowRowSelect="true" />

</ClientSettings>

<ExportSettings ExportOnlyData="true" />

<MasterTableView>

<Columns>

<telerik:GridClientSelectColumn UniqueName="selectColumn" />

</Columns>

</MasterTableView>

</telerik:RadGrid>

</div>

</form>

</

body>

</

html>



Default.aspx.cs:

public

partial class _Default : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

testGrid.DataSource =

new TestDataSource[] { new TestDataSource("A", "B"), new TestDataSource("C", "D"),

new TestDataSource("E", "F")};

testGrid.DataBind();

}

private class TestDataSource

{

private string _field1;

public string Field1

{

get { return _field1; }

set { _field1 = value; }

}

private string _field2;

public string Field2

{

get { return _field2; }

set { _field2 = value; }

}

 

public TestDataSource(string field1, string field2)

{

this._field1 = field1;

this._field2 = field2;

}

}

}

Yavor
Telerik team
 answered on 11 Jan 2008
5 answers
121 views
I have 3 editors on a single page using pageTop toolbarmode. When clicking in any of the editors i get a javascript error as shown below:

if(this._popupElement){

this._popupElement.style.width=this._width;

this._updatePopupZindex();

}


The error occurs due to     'this._width' having a value of    '-10px'
If i change this value in debug at runtime to a positive value it works.

Any help would be greatly appreciated

Tervel
Telerik team
 answered on 11 Jan 2008
1 answer
97 views
I'm using the Prometheus Rad Toool Tip with the Prometheus Rad Grid.  My objective is to have a tool tip for each row in the grid that is displayed when mousing over a row in the grid.  I'm setting the server-side TargetControlId property to the ClientId property of the corresponding  GridDataItem for each row in the table using the following code:

RadToolTip.TargetControlID = GridDataItem.ClientID

This method does bind the tool tip to the row however the client-side events, select, click, and double click have stopped working.

The client side events worked using this method when I was usig the ASP.NET Rad Grid but does not work with the Prometheus Rad Grid.
Yavor
Telerik team
 answered on 11 Jan 2008
3 answers
322 views
Hi!

I'm using in my  application: visual studio 2008 ,framework 3.5 and the new version of Prometheus.

I have a page with 2 buttons (Button1 and Button2), a RadChart (RadChart1) and a RadGrid (RadGrid1). All these controls are in a content page.


I just can see the Button1 in the load event. So, when I click on Button1 I get the values for the RadGrid1 and the RadChart1 and the Button2 appears in the page. And I use the next code in the content page:

<

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX ="true">

<AjaxSettings >

<telerik:AjaxSetting AjaxControlID="Button1" >

<UpdatedControls >

<telerik:AjaxUpdatedControl ControlID="RadChart1" LoadingPanelID="RadAjaxLoadingPanel1" />

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

Width="75px">

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'

style="border: 0px;" />

</telerik:RadAjaxLoadingPanel>


 I use the property visible of all the controls in order to get this.



My problem is when I click on Button1 the RadChart1 and the  RadGrid1 work  but Button2 doesn't appear. And I tried to solved it using the next code:

<

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX ="True">

<AjaxSettings >

<telerik:AjaxSetting AjaxControlID="Button1" >

<UpdatedControls >

<telerik:AjaxUpdatedControl ControlID="RadChart1" LoadingPanelID="RadAjaxLoadingPanel1" />

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>


<telerik:AjaxUpdatedControl ControlID="Button2" LoadingPanelID="RadAjaxLoadingPanel1"/>

</

UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

Width="75px">

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'

style="border: 0px;" />

</telerik:RadAjaxLoadingPanel>


Using the last code I can see the Button2 but when I click on this button , it doesn't work.

And I have this code in code behind :

Protected

Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click

Me.RadGrid1.ExportSettings.IgnorePaging = True

Me.RadGrid1.MasterTableView.ExportToExcel()

End Sub


Any suggestion?


Thank you




Steve
Telerik team
 answered on 11 Jan 2008
7 answers
229 views
Hi, I just started playing with the Prometheus Upload.
It appears that the RadUpload1_FileExists fires twice. I have an extremely simple page with just the RAdUpload on it (and Scriptmanager). I am using you sample code (below) to test for existence of the file. If it exists a single Upload filed will place two files into the upload folder. Example: I have a Test.txt already in the folder from previous upload. Then I try to upload it egain and I get Test1.txt and Test2.txt uploaded with single click of the submit button.

Any ideas?

Thanks
Jakub


Protected Sub RadUpload1_FileExists(ByVal sender As Object, ByVal e As Telerik.Web.UI.Upload.UploadedFileEventArgs) Handles RadUpload1.FileExists

Dim counter As Integer = 1

Dim file As UploadedFile = e.UploadedFile

Dim targetFolder As String = Server.MapPath(RadUpload1.TargetFolder)

Dim targetFileName As String = System.IO.Path.Combine(targetFolder, _

file.GetNameWithoutExtension & counter & file.GetExtension)

While System.IO.File.Exists(targetFileName)

counter += 1

targetFileName = System.IO.Path.Combine(targetFolder, _

file.GetNameWithoutExtension & counter & file.GetExtension)

End While

file.SaveAs(targetFileName)

End Sub

Petya
Telerik team
 answered on 11 Jan 2008
3 answers
144 views
Hi,

Can anyone tell me how to change the text color in the fileinput to be black? I have tried ForeColor="black" and style="color:black;" without success! I am using the Web20 embedded skin but I need to override the default (silver?) color used in the input.

Regards,

Mark
George
Telerik team
 answered on 11 Jan 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?