Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
413 views

I've got a RadGrid, and when double-clicking on a row, client-side javascript kicks in by openning up a pop-up Window:

 

 

function ShowEditForm2(id, rowIndex)

 

{

 

    ....
                var oWnd = window.radopen("AddConsultant2.aspx?consultantid=" + id, "EditDialog"); 
                oWnd.SetSize(650,400);
    ....
}

I can close this pop-up window, then go ahead and open it up again by double-clicking on another row back on the RadGrid.

This is all working fine, however I notice that the second time (and subsequent times after the second time) the pop-up window is openned, it will display the data from the previously openned instance (just for a second). Then immediately the correct data on the pop-up window gets rendered. This is somewhat annoying; is there a way to 'refresh' this? It seems to cache the display.

Billy
Top achievements
Rank 1
 answered on 07 May 2015
12 answers
304 views

Hello,

How do you get appointment times in the current time zone?  I am exporting appointments using the RadScheduler.ExportToICalendar method.  But the times exported in the .ics file are in the wrong time zone.  Is that UTC?  I'm not displaying or converting to UTC times in the scheduler for my appointments.

 

Thanks.

Bicky
Top achievements
Rank 1
 answered on 07 May 2015
8 answers
382 views

Hello Telerik Support Team.

 I'm using dll 2014.1.403.40 version.

I would like to prevent pasting image into editor from web browser copy on context menu.

I had seen your editor demo here (http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx)

Demo is working good for blocking any pasting image by Control+V or paste on context menu.

I implemented sample project using your demo source unfortunately it does not work!!!!!!!!!!.

My test procedure is here.

1. Right click on the image in IE browser (That will shows browser context menu)

2. Click "Copy"

3. Pasting image into editor by pressing Control + V

4. Editor shows pasted image. (<--- Your demo is not shows image)

 What is the problem? I need to same feature like your demo.

 I'm attaching my sample project thank you.

 

ASPX:

01.<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
02. 
03.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
04. 
06.<head runat="server">
07.    <title></title>
08.    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
09.</head>
10.<body>
11.    <form id="form1" runat="server">
12.        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
13.            <Scripts>
14.                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
15.                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
16.                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
17.            </Scripts>
18.        </telerik:RadScriptManager>
19.        <script type="text/javascript">
20.            //Put your JavaScript code here.
21.            function OnClientSubmit(sender, args) {
22.                sender.fire("FormatStripper", { value: "WORD" });
23.            }
24.        </script>
25.        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
26.        </telerik:RadAjaxManager>
27.        <div>
28.            <telerik:RadEditor runat="server" OnClientSubmit="OnClientSubmit" ID="RadEditor1"
29.                SkinID="BasicSetOfTools" Width="420px" Height="300px" EnableResize="false">
30.                <Content>
31.                    <p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><span class="MsoIntenseEmphasis" style="color: #4f81bd;"><strong><em><span style="font-family: calibri;">     <br />
32.                    Experiment with the various options of the StripFormattingOptions setting for cleaning Word formatting.</span></em></strong></span></p>
33.                    <p class="MsoNoSpacing" style="margin: 0in 0in 0pt;"><span class="MsoIntenseEmphasis"><strong><em><span style="color: #4f81bd; font-family: calibri;">       
34.                        The content here has MS Word formatting which you can strip on submit by clicking on the "Submit and Clean" button above.<o:p></o:p></span></em></strong></span></p>
35.                </Content>
36.            </telerik:RadEditor>
37.        </div>
38.    </form>
39.</body>
40.</html>

CS:

01.using System;
02.using System.Web;
03.using System.Web.UI;
04.using System.Web.UI.WebControls;
05. 
06.using System.Data;
07.using System.Configuration;
08.using System.Web.Security;
09.using System.Web.UI.WebControls.WebParts;
10.using System.Web.UI.HtmlControls;
11.using Telerik.Web.UI;
12. 
13.public partial class Default : System.Web.UI.Page
14.{
15.    protected void Page_Load(object sender, EventArgs e)
16.    {
17.        if (!IsPostBack)
18.        {
19. 
20.            RadEditor1.StripFormattingOptions = EditorStripFormattingOptions.All;
21. 
22.        }
23.    }
24.}

 

Ianko
Telerik team
 answered on 07 May 2015
3 answers
145 views

Hello,

 

i have a project class with a list of employees assigned to each project

 

what i want to achieve here is that i want the stacked column chart to display names of projects on X axis for each series then add each resource of this project to the series as a series item with Y-Value of the total hours consumed by this employee on this project which is also a property coming from ProjectResource Class, i do it this way

 

Private Sub LoadAllProjects()

 dim Projects as new list(of Project)

 

Projects = GetAllProjects()

For Each nProject as Project in Projects

 Dim nSeries as new ColumnSeries

 Dim nAxisItem as new AxisItem

nAxisItem.labelstring = nProject.Name

nSeries.name = nProject.Name

For Each nEmp as Employee in Project.Resources

 dim nItem as new SeriesItem

nItem.Name = nEmp.Name

nitem.yvalue = nEmp.TotalUtilized

nSeries.Items.Add(nItem)

 

Next

RadHtmlChart1.PlotArea.Series.Add(nSeries)

Next

End Sub

 

Using this the either all items get loaded into first series or they duplicate in each series, i have tried everything possible and its not working

 also the legend is display the project.names thats because im assigning Series.Name to Project.Name and i have to remove it but i need the legend to display the names of employees in each project

 

Help is really appreciated, thanks

Danail Vasilev
Telerik team
 answered on 07 May 2015
1 answer
94 views

I noticed when I have an error, the ajax loading panel just goes away and doesn't show the error details on my label. 

On my content page I have a sub

Sub UpdateRecord(ByVal strRetry As String, ByVal strSender As String)
        Dim sb As New StringBuilder()
        Try
           
            
            Throw New Exception("Oh no! deadlock")
            
        Catch ex As Exception
            'Handle true exceptions here
            litError.Text = sb.ToString()
            If litError.Text > "" Then
                pnlError.Visible = True
                RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("window.scrollTo(0,0);")
            End If
        End Try
    End Sub

 

Master page

 <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

 

 

CustomErrors is off

 

How do I get this to show the error info on the screen. This worked fine in 1.1 and 2.0 apps.

Maria Ilieva
Telerik team
 answered on 07 May 2015
3 answers
104 views

I dynamically created raddocks on the server side.

dock.DockPositionChanged += new DockPositionChangedEventHandler(dock_DockPositionChanged);

So I used this line of code to add event handler, however it only gets fired when the control is dropped to another position. It doesn't get fired if I dropped it to the same position.

How do I make it gets fired even if I drop it to the same position. Thanks.

Danail Vasilev
Telerik team
 answered on 07 May 2015
1 answer
80 views

how could I program that the draghandle in a horizontal slider can only be moved one tick to the right?

 

So the moves to the left and multiple ticks to the right are blocked client side?

 

Marc

Slav
Telerik team
 answered on 07 May 2015
3 answers
80 views

hi,

i want to display AxisY in the right in the pic i have Axis Y wich is have green color i bind my chart programmatically this is my code 

 

 SqlConnection con = new SqlConnection(@"Data Source=.;Initial Catalog=DB_WEB_Q_TEL;Integrated Security=True");
            string req = "select time_tag,[ain_sebou|Niveau] as AIN_SEBOU_NIVEAU , [allal_fassi|Niveau]as ALLAL_FASSI_NIVEAU  from QTSW_DATA1 where time_tag between ('01/01/2015') AND ('20/01/2015')";
            DataSet DS = new DataSet();
            con.Open();
            if (DS.Tables.Contains("TRChart"))
            {
                DS.Tables.Remove("TRChart");
            }
            SqlDataAdapter da = new SqlDataAdapter(req, con);
            da.Fill(DS, "TRChart");
            con.Close();

            RadHtmlChart chart = new RadHtmlChart();

            chart.DataSource = DS.Tables["TRChart"];
            chart.DataBind();

 

ScatterLineSeries SL = new ScatterLineSeries();
            SL.DataFieldX = "time_tag";
            SL.DataFieldY = "AIN_SEBOU_NIVEAU";
            SL.MarkersAppearance.Visible = false;

            SL.TooltipsAppearance.DataFormatString = " {1} at {0:dd-MM-yyyy HH:mm}";
            SL.LabelsAppearance.Visible = false;
            chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "{0:dd-MM-yyyy HH:mm}";
            chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 90;

            chart.PlotArea.XAxis.BaseUnit = Telerik.Web.UI.HtmlChart.DateTimeBaseUnit.Days;
            chart.PlotArea.XAxis.DataLabelsField = "time_tag";
            chart.PlotArea.Series.Add(SL);
           

            // serie2
            ScatterLineSeries SL1 = new ScatterLineSeries();
            SL1.AxisName = "Additional";
            SL1.DataFieldX = "time_tag";
            SL1.DataFieldY = "ALLAL_FASSI_NIVEAU";
            SL1.MarkersAppearance.Visible = false;

            SL1.TooltipsAppearance.DataFormatString = " {1} at {0:dd-MM-yyyy HH:mm}";
            SL1.LabelsAppearance.Visible = false;
            chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "{0:dd-MM-yyyy HH:mm}";
            chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 90;

            chart.PlotArea.XAxis.BaseUnit = Telerik.Web.UI.HtmlChart.DateTimeBaseUnit.Days;

            chart.PlotArea.Series.Add(SL1);
            //chart.PlotArea.XAxis.Visible = false;
            AxisY ax = new AxisY();
            ax.Name = "Additional";
            ax.Color = Color.Green;
            ax.Width = 2;

          
            chart.PlotArea.AdditionalYAxes.Add(ax);

pls i need help very quickly

 

Danail Vasilev
Telerik team
 answered on 07 May 2015
10 answers
227 views
Hello sir,
We are not able to set focus on Rad Upload control also on another page on which there is  RadEditor we are unble to set focus on any other control,whereas if we remove Rad Editor from that page then everything works fine,Please help us out,
Thanks,
Peter Filipov
Telerik team
 answered on 07 May 2015
1 answer
58 views

Hi,

i am using RadPivotGrid with RadHtmlchart and saving the configuration panel settings using persistence framework custom storage in form of xml in DB (http://www.telerik.com/help/aspnet-ajax/persistence-framework-custom-storage-provider.html). Please confirm if I can save the selected color for series also in the same xml OR let me know if there is any other feature of telerik I can use for the same.

For ex as per attached image if i can save the color selected by user corresponding to Pending,Completed or In-progress..

Danail Vasilev
Telerik team
 answered on 07 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?