Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
I have the following RadEditor control on my page. I want to limit file types allowed to upload in the DocumentManager. What I have allows .doc files to be uploaded but I get 'invalid file type' error for .txt and .pdf files. What is the correct syntax for the SearchPatterns property to limit allowed file types?

<telerik:RadEditor ID="RadEditor1" runat="server"">  
    <DocumentManager ViewPaths="~/support/upload/docs" UploadPaths="~/support/upload/docs" DeletePaths="~/support/upload/docs" SearchPatterns="*.doc, *.docx, *.pdf, *.txt" MaxUploadFileSize="2097152" /> 
    <Content></Content>  
</telerik:RadEditor> 
 

Thanks,
Tim
Rumen
Telerik team
 answered on 09 Jul 2008
9 answers
228 views
Hi,

I'm using the scheduler control and currently following the getting started tutorial in the documentation.

There is a strange problem that i'm sure is caused by a setting on my website, or maybe just something i'm doing.

Basically, when adding an appointment, I add the text and click the green tick. The screen post backs but the appointment is not displayed. Can anyone help? My aspx is below, the classes are just copied and pasted from the getting started section.

<%

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

</

head>

<

body>

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

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<div>

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="End"

DataKeyField="ID" DataSourceID="ObjectDataSource1" DataStartField="Start"

DataSubjectField="Subject">

</telerik:RadScheduler>

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"

SelectMethod="AllData" TypeName="AppointmentList"></asp:ObjectDataSource>

</div>

</form>

</

body>

</

html>

Jonathan
Top achievements
Rank 1
 answered on 09 Jul 2008
5 answers
365 views
I have a RadDatePicker in a web user control (.ascx file).  I then have that web control registered on my Default page...  But the Date Picker Errors out.

I'm guessing it has something to do with inheritance? not sure though...

and yes I have the script manager registered also


a
Top achievements
Rank 1
 answered on 09 Jul 2008
2 answers
159 views
hello,

i am interested in binding search results to the RadGrid, then allowing the user to checkbox each row of interest, then let them click a non-grid Button on the page to do something w/ those rows (enumerating thru the checked rows & grabbing a value or two from each).

can anyone point me in the right direction for how to do this?


thanks,
matt
matt
Top achievements
Rank 1
 answered on 09 Jul 2008
4 answers
82 views
I would like to display the week view column headers as "S M T W T F S" (rather than "Sun Mon Tue Wed Thu Fri Sat" ) in the RadScheduler but I can't find a way to do it.

As far as I know there is no custom date format string I can use (a single 'd' returns the full date, whereas 'ddd' returns Mon, Tue, Wed... etc)

I've found the DateTimeInfo.AbbreviatedDayNames property which seems to control this list of strings, but I can't see a way to persuade the RadScheduler to use my own AbbreviatedDayNames.

Can anyone help?
Mark
Top achievements
Rank 1
 answered on 09 Jul 2008
1 answer
140 views

Hi everybody,

I am using the RadGridScheduler Component to manage Activities by moving, editing or deleting them. In order to display a detailed view of the activity, a details window is opened using the RadWindowManager.

On this details view there is a button to delete the current activity. When I do this, the window gets closed and a javascript callback method is called from the scheduler’s aspx site to refresh the current  content.

However, after the activity has been deleted within the RadScheduler’s  AppointmentDelete event and the aspx site gets load again, the following Exception has been thrown:

[NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]

   Telerik.Web.UI.SchedulerPostBackEvent.DeserializeFromJSON(String json) +85

   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +67

   Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7

   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11

   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746 

Has anybody an idea, what went wrong?

Thanks in advance.

Simon
Telerik team
 answered on 09 Jul 2008
1 answer
153 views
Hey, I am wondering how do I disable edit but still allow drag and drop to change the time.  whenever you enable edit the drag and drop is enabled, but when you double click it turns into edit form which I dont really want.
Simon
Telerik team
 answered on 09 Jul 2008
3 answers
177 views
Has anyone else had an issue with IE, specifically 7, performance rendering the page when there are many comboboxes on the page? I have a control, ascx, with many combo boxes (~30), where a couple of them have the values set, about half are populated from a web service, and the remaining populated from load on demand. I used to have most of them populated from a web service, but it seems as if the load on demand is slightly faster for rendering. I am using the "vista" skin for the combo boxes, and I also have radgrids on the page with a different skin, webblue, and all of this is in a tab control, skin of webblue.

I have traced from the database, and watched in fiddler. The stored procedures from the db take almost no time, the db data is filtered, so there is not an overload of data. I am using the radscriptmanager and radstylesheetmanager in the actual aspx page that holds the control. The control does load dynmacally.

In firefox 3, the page renders very quickly, very good performance.
I am open to suggestions regarding what to look at.

Thanks,
Jeff
Jeff
Top achievements
Rank 1
 answered on 09 Jul 2008
0 answers
61 views

I was struggling with this issue of trying to reference controls within the same Edit Template, when using the OnCheckChanged method of the Checkbox in the template.  See the solution below. Hope this saves someone some time and effort.

Obtaining values of controls within a EditTemplate when utilizing the OnCheckedChanged method of a checkbox control in the same Template.

This uses a Server Side event. 

protected

void CheckedChanged(object sender, System.EventArgs e)

{

CheckBox chkBox = (sender as CheckBox);

GridDataItem item = (GridDataItem)chkBox.NamingContainer;

RequiredFieldValidator reqval = (RequiredFieldValidator)item["EndDateTime"].FindControl("reqEndDate");

RegularExpressionValidator regexval = (RegularExpressionValidator)item["EndDateTime"].FindControl("regexEndDate");

if (chkBox.Checked)

{

reqval.Enabled =

false;

regexval.Enabled =

false;

}

}

Here is the ASPX

<EditItemTemplate>

<asp:TextBox ID="EndDateTimeTextBox" runat="server" ></asp:TextBox><asp:RequiredFieldValidator

ID="reqEndDate" runat="server" ControlToValidate="EndDateTimeTextBox" ErrorMessage="A valid US Date & Time is Required."

Style="left: 2px; position: relative">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator

ID="regexEndDate" runat="server" ControlToValidate="EndDateTimeTextBox" ErrorMessage="Please enter a valid US Date & Time."

Style="position: relative" ValidationExpression="^(([1-9])|(0[1-9])|(1[0-2]))\/(([0-9])|([0-2][0-9])|(3[0-1]))\/(([0-9][0-9])|([1-2][0,9][0-9][0-9]))\s(1[0-2]|[1-9])\:[0-5][0-9]\s(a|p|A|P)(m|M)$">*</asp:RegularExpressionValidator>

<br />

<asp:CheckBox ID="chkIsFullDay" runat="server" Style="position: relative" Text="Full Day" AutoPostBack="True" OnCheckedChanged="CheckedChanged" />

</EditItemTemplate>

vzzak
Top achievements
Rank 1
 asked on 09 Jul 2008
1 answer
118 views
I'm using RadAjaxManager in a RadWindow; I need to know how can I update Window title on ajax callback.
10x
Georgi Tunev
Telerik team
 answered on 09 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?