Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
184 views
I have two custom controls (A and B) on same page, corresponding to two radgrids.

Both .ascx files of these controls include:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
</telerik:RadWindowManager>

<telerik:RadNotification ID="n1" runat="server" Text="" Position="Center"
  AutoCloseDelay="5000" Width="450" Title="" KeepOnMouseOver="true"
  EnableRoundedCorners="true" Animation="Resize" ContentIcon="warning"
  AnimationDuration="700" TitleIcon="none" Font-Size="12px" Font-Bold="True"
  ShowCloseButton ="true">
</telerik:RadNotification>


...and in both .vb files I am using the following code to flash a message:

n1.Title = "Error Adding"
n1.Text = "Must have valid or non-Zero received qty!"
n1.Show()

What would be the possible reasons for the messages to come out empty (the window opens with no message) in only one of the custom controls?

In other words...
In all cases, where the message is generated in custom control A, it comes out fine.
In all cases, where the message is generated in custom control B, it comes out EMPTY.


Thanks for your time...
Marin Bratanov
Telerik team
 answered on 14 Jan 2015
1 answer
92 views
Hi....
     Is there a way that we can get the resourceID when there is a resource grouping done in OnClientTimeSlotClick event.

Thanks in advance.
Venkat

Got it....

 

 

function OnClientTimeSlotClick(sender, eventArgs) {

 

var

 

 

slot = eventArgs.get_targetSlot();

 

 

 

 

var

 

 

currentRoom = slot.get_resource(); 
}
or

 

function

 

 

OnClientAppointmentInserting(sender, eventArgs) {

 

 

 

var slot = eventArgs.get_targetSlot();

 

 

 

var start = slot.get_startTime();

 

 

 

var end = slot.get_endTime();

 

 

 

var currentRoom = slot.get_resource();

 

eventArgs.set_cancel(

 

true);

 

}

Olivier
Top achievements
Rank 2
 answered on 14 Jan 2015
3 answers
215 views
In our web application we open other web pages inside a radwindow within the application that show reports or graphs. I have a javascript function for the OnClientDragEnd event and in this event I just do an alert like the following

function newPosition(sender,args) {
alert('left='+sender.get_left()+'  top='+sender.get_top());
}

The alert shown states the left and top both equal null. I am using radwindowmanager and the event is set in here to be applied to the radwindows that are created. There is no restriction zone being applied so I dont know why I would not get values from these calls.


Marin Bratanov
Telerik team
 answered on 14 Jan 2015
1 answer
192 views
Hey !

I have a little problem with my CSS and my ToolTipSetting :

http://puu.sh/epSZn/cbbd6a007d.png

How can I put my background on my ToolTip ? Without white.

this is my CSS :
.rightCol {
    font-size: 14px;
    font-family: "Segoe UI",Segoe,"Roboto","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    text-align: left;
    line-height: 19px;
    background-image: linear-gradient(white, black);
}

and my ToolTip :
string template = @"
      <div class=""rightCol"">
      <div class=""NameStation"">{1}</div>
      <div class=""CodeSandre"">{2}</div><br/>
      <div class=""MaitreOuvrage"">{3}</div><br/>
      <div class=""Capacite"">{4}</div>
</div>";


Thx !
Ianko
Telerik team
 answered on 14 Jan 2015
1 answer
53 views
Hello,
         I used Rad Scheduler So in calender show the same colour for Definition,Development,Testing,Retesting in selected date like screen shot of MyCalenderView. This is wrong. It should different-different colour for Definition,Development,Testing,Retesting in selected date like screen shot of Calender_View.
         Attach the screen shot.

<telerik:RadScheduler runat="server" ID="rscCalender"  
            
          GroupBy="ProjectID" GroupingDirection="Vertical"  
            DataSourceID="EventsDataSource" 
            DataKeyField="ProjectID"
            DataSubjectField="Stage" 
             FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
              DataStartField="Phase_Start_Date" DataEndField="Phase_End_Date"
             SelectedView="MonthView" OnTimeSlotCreated="rscCalender_TimeSlotCreated"
            OnAppointmentInsert="rscCalender_AppointmentInsert" OnAppointmentUpdate="rscCalender_AppointmentUpdate" AllowDelete="false" AllowEdit="false" AllowInsert="false" >

            <MonthView FirstDayHeaderDateFormat="''d''" />
          
            <AdvancedForm Modal="false"></AdvancedForm>
           
            <ResourceHeaderTemplate >
                <asp:Panel ID="ResourceImageWrapper" runat="server">               
                    <asp:LinkButton ID="lnkProjectName" runat="server" ></asp:LinkButton>
                </asp:Panel>
            </ResourceHeaderTemplate>
            <ResourceTypes>
                <telerik:ResourceType KeyField="BuildID" Name="ProjectID" TextField="ProjectName" ForeignKeyField="BuildID"
                 DataSourceID="ProjectSource"  ></telerik:ResourceType>
            </ResourceTypes>
          <DayView  UserSelectable="false"/>
   
            <WeekView UserSelectable="false" />
    <TimelineView  UserSelectable="false"/>
        </telerik:RadScheduler>

Boyan Dimitrov
Telerik team
 answered on 14 Jan 2015
5 answers
287 views

Hello, i am sending the html code of a page to display it in a radeditor so i can export it to rtf or to pdf. However, i'm getting this error:


Invalid XHTML. RadEditor content should be correct XHTML in order to export to PDF.
Parse error:
Declaración DTD inesperada. Línea 674, posición 13.
at line:
<body><!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">



this is how my radeditor is defined:
<telerik:RadEditor ID="redCertificate" runat="server" Width="90%" Height="800px"
                Language="es-ES" onexportcontent="redCertificate_ExportContent">
                <exportsettings openinnewwindow="true" filename="Certificate">
                <Rtf PageHeader="RadEditor content" />
            </exportsettings>
                <content></content>
            </telerik:RadEditor>

and this is the code behind

protected void btnPDF_Click(object sender, EventArgs e)
        {
            redCertificate.ExportToPdf();
        }

Any ideas what could be causing this error?

thanks in advance
Ianko
Telerik team
 answered on 14 Jan 2015
1 answer
87 views
Currently have radEditors throughout our site and having difficulties pasting text into them and unsure of what is causing the problem.  The context menu appears and gives us the options of how to paste and clicking on those options nets us no results.  Any suggestions?

We use RadEditor in another project and pasting works fine.  Tried comparing just the controls between the sites and the differences were as follows: ContentAreaMode="Div" RenderMode="Native"

The site where pasting doesn't work is an intranet site where as the one that does work is an internet site.  Not sure if that makes a difference.
<telerik:RadEditor Width="75%" Height="150" ToolsFile="~/Common/ToolSetMinimal.xml" ID="_editCapComments" runat="server"  EditModes="Design" OnClientLoad="OnClientEditorLoad">
</telerik:RadEditor>
Ianko
Telerik team
 answered on 14 Jan 2015
1 answer
143 views
I am using API to set much of the properties of the series because they are dynamically build.
when I create a series / then add it to PlotArea the values of the colors are not set. I suppose they set when chart is bound / or rendered.
is there an early API way to tell the markers to just auto fill with whatever their color is going to be?

or will I need to explicitly set the marker color/style myself and rotate through a range of colors/shapes as I add series?
right now the system auto creates the colors.
Danail Vasilev
Telerik team
 answered on 14 Jan 2015
1 answer
409 views
how can I with API rotate the X-axis labels?
I tried Rad1.PlotArea.XAxis.StartAngle = 0
but that doesn't seem to be what I think it should be.

I want to rotate them as in my image
Doug
Top achievements
Rank 1
 answered on 14 Jan 2015
0 answers
50 views
I need to create a usercontrol in VS2013 with a RadHtmlChart
using a customised skin.
s
Top achievements
Rank 1
 asked on 13 Jan 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?