Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
147 views

I have a radchart with a default type of spline. The issue is that user can't tell the beginning and end of the line. I have tried all the different end caps but because they are the same color they just are not obvious.

I couldn't figure out how to use the custom endCap or StartCap and I am looking for a solution or alternative such as plotting two points.

Ves
Telerik team
 answered on 22 Sep 2009
2 answers
98 views
I'm doing an RadGrid1_UpdateCommand from an edit form template.  While this event is executing I want to be able to access specific cell text from the row just above the edit form.  How can I do this?  Thanks in advance for any help.
Stephen
Top achievements
Rank 1
 answered on 22 Sep 2009
1 answer
145 views
Hi All,
Sorry for repeating the post here again,but found this forum to be more specific for scheduler.

I'm using a RadEditor inside a AdvanceEditTemplate of RadScheduler. When i update the description inside the RadEditor and click on Save, the AppointmentUpdate events fires but does not fetch the updated data. Can anyone help me in what is missing in the code. Posted the code below for reference. Appreciate any immediate help.Thanks in advance.

Aspx Page:

<telerik:RadScheduler ID="rschEvents" runat="server" Height="100%" Skin="Office2007"
Width="100%" FirstDayOfWeek="Sunday" MonthVisibleAppointmentsPerDay="5" OverflowBehavior="Expand"
RowHeight="25px" SelectedView="MonthView" EnableRecurrenceSupport="False" LastDayOfWeek="Saturday"
OnAppointmentInsert="rschEvents_AppointmentInsert" EnableAdvancedForm="True"
StartInsertingInAdvancedForm="True" CustomAttributeNames="Description" EnableCustomAttributeEditing="False"
OnAppointmentDelete="rschEvents_AppointmentDelete" OnAppointmentUpdate="rschEvents_AppointmentUpdate"
OnAppointmentClick="rschEvents_AppointmentClick" OnAppointmentCommand="rschEvents_AppointmentCommand"
OnAppointmentCreated="rschEvents_AppointmentCreated" OnNavigationCommand="rschEvents_NavigationCommand"
Style="top: 3px; left: 0px">
<MonthView VisibleAppointmentsPerDay="5" ColumnHeaderDateFormat="dddd" HeaderDateFormat="MMMM, yyyy" />
<AdvancedEditTemplate>
<div>
<table align="center" border="0" width="95%" cellpadding="5" cellspacing="0">
<tr>
<td>
<br />
</td>
</tr>
<tr>
<td>
<br />
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblDescription" runat="server" Text="Description" Font-Bold="true">
</asp:Label>
</td>
</tr>
<tr>
<td>
<telerik:RadEditor EditModes="All" Enabled="true" ID="radEditor" runat="server" Html='<%#Eval("Subject")%>'>
</telerik:RadEditor>
</td>
</tr>
<tr>
<td>
<table width="20%" align="left" cellpadding="1" cellspacing="1">
<tr>
<td width="50%">
<asp:Label ID="lblDate" AssociatedControlID="rdtpFrom" runat="server" Text="From Date"
Font-Bold="true"></asp:Label>
</td>
<td align="left">
<telerik:RadDateTimePicker ID="rdtpFrom" runat="server" DateInput-ReadOnly="true"
SelectedDate='<%# Eval("Start") %>' TimeView-Columns="4">
</telerik:RadDateTimePicker>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="20%" align="left" cellpadding="1" cellspacing="1">
<tr>
<td width="50%">
<asp:Label ID="lblDate1" AssociatedControlID="rdtpTo" runat="server" Text="To Date"
Font-Bold="true"></asp:Label>
</td>
<td align="left">
<telerik:RadDateTimePicker ID="rdtpTo" runat="server" DateInput-ReadOnly="true" SelectedDate='<%# Eval("End") %>'
TimeView-Columns="4">
</telerik:RadDateTimePicker>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td>
<br />
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="btnCancel" runat="server" CssClass="button_Default" OnClick="btnCancel_Click">Cancel</asp:LinkButton>&nbsp;&nbsp;&nbsp;<asp:LinkButton
ID="btnSave" runat="server" CssClass="button_Default" CommandName="Update">Save</asp:LinkButton>
</td>
</tr>
</table>
</div>
</AdvancedEditTemplate>
</telerik:RadScheduler>

Aspx.cs page:

protected void rschEvents_AppointmentUpdate(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e)
{

if (e.Appointment.Subject != String.Empty)
{
CalendarEvent ce = CalendarEvent.FindByEventId(e.Appointment.ID.ToString());
ce.Data.EventSubject = e.ModifiedAppointment.Subject.ToString();
ce.Data.StartDate = e.ModifiedAppointment.Start.ToString();
ce.Data.EndDate = e.ModifiedAppointment.End.ToString();
ce.Data.EventTitle = txtEventTitle.Text.ToString();
ce.Update();
LoadCalendarEvents();
}
else
{
e.Cancel = true;
}



Also added a FormCreated  event and checked...i was not able to get the content nor the date field values. Below code for reference.
Can anyone tell me what is the mistake being done?
 protected void rschEvents_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
    {
        RadScheduler scheduler = (RadScheduler)sender;
        if (e.Container.Mode == SchedulerFormMode.Insert ||
        e.Container.Mode == SchedulerFormMode.AdvancedInsert)
        {
            RadEditor editor = (RadEditor)e.Container.FindControl("radEditorInsert");
            //editor.Content = (RadEditor)e.Container.FindControl("radEditorInsert");
        }
        if (e.Container.Mode == SchedulerFormMode.AdvancedInsert)
        {
            //TextBox subjectBox = (TextBox)e.Container.FindControl("SubjectTextBox");
            //subjectBox.Text = e.Appointment.Subject;
            RadDateTimePicker startInput = (RadDateTimePicker)e.Container.FindControl("rdtpFromInsert");
            
            startInput.SelectedDate = this.rschEvents.DisplayToUtc(e.Appointment.Start);
            RadDateTimePicker endInput = (RadDateTimePicker)e.Container.FindControl("rdtpToInsert");
            
            endInput.SelectedDate = this.rschEvents.DisplayToUtc(e.Appointment.End);
        }
    }

Thanks,
Sri 
Helge
Top achievements
Rank 1
 answered on 22 Sep 2009
1 answer
131 views
Hi,
My users upload images in "~/Images/[UserName]" folder, so John uploads in ~/Images/John folder.
For John, editor is set that ViewPaths and UploadPaths are New String() {"~/Images/John"}.
The problem is the fact that John can navigate to parent folder "~/Images" by just clicking on arrow up in ImageManager and see all other user names there. He will not be able to delete files as DeletePaths=New String() {}, but he will know who other users are, which is privacy issue.
How to overcome this?

Regards,
Alex
Stanimir
Telerik team
 answered on 22 Sep 2009
1 answer
50 views
New solution & feature deployment of the latest version of the Radeditor, following deployment and successful feature activation at the site level, all applicable fields are unusable.

Screen capture:
http://cid-4f65d46e0b4cffc6.skydrive.live.com/self.aspx/.Public/gracenote/RadEditorForMOSS%5E_screencapture.gif 


I represent a comapny that has purchased a supported license.

Please advise at your earliest convenience.
Stanimir
Telerik team
 answered on 22 Sep 2009
6 answers
1.0K+ views
Hi all,
how do i hide a grid command item display if a certain condition  is met in the code behind? Is this possible?

Thanks in advance.
Nuno
Top achievements
Rank 1
 answered on 22 Sep 2009
1 answer
136 views
I want to show a column in radgrid which shows a running number.
or if there is any method by which i can show a column which shows the row number?
i don not want to use database for showing this column..
plz help
Shinu
Top achievements
Rank 2
 answered on 22 Sep 2009
1 answer
340 views
want to refresh the radgrid on page postback ? how to reresh the radgrid

its urgnettttttt
Princy
Top achievements
Rank 2
 answered on 22 Sep 2009
1 answer
107 views
Hi,
The image manager doesn't show any images or directories, what have I missed?

        RadEditor newEditor; 
 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            newEditor = new RadEditor(); 
            newEditor.ImageManager.ViewPaths = new string[]{"/media"}; 
        } 
 
        protected void radMultiPageMonitorNews_PageViewCreated(object sender, RadMultiPageEventArgs e) 
        { 
            e.PageView.Controls.Add(newEditor); 
        } 


Mattias
Top achievements
Rank 1
 answered on 22 Sep 2009
3 answers
91 views
Hi!

We are using the editor in Firefox and IE.  It works great in IE7 and 8.  Many of our users use Firefox also.  These editors are in an AjaxExtender Modal Popup. 

In FF, the editor shows vertically very short and mis-shapen.  If I click on one of the bottom buttons (HTML or preview), then the control sizes correctly!

My co-worker found a work-around script to help with this...
        function OnRadEditorClientLoad(editor, args) {  
            if (!document.all) {  
                window.setTimeout(function() {  
                    var editorIframe = $get(editor.get_id() + "Wrapper").getElementsByTagName("iframe")[0];  
                    editorIframe.style.height = "20px";  
                    editor.setSize(415, 55);  
                }, 100);  
            }  
 
            var style = editor.get_contentArea().style;  
            style.backgroundImage = "none";  
            style.backgroundColor = "white";  
        }  
 

However, this doesn't work.  I've played with the height and size values to no avail. 

The weird part is that when I click on one of the Change Edit buttons (tabs) then the control sizes correctly.

Any thoughts?  Is this a bug? 

Thanks In Advance
Rich
Rumen
Telerik team
 answered on 22 Sep 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?