or
<param name="URL" value="" />in the Windows Media Player control and not have the file explorer default to
popping up a window and using the user's default media player.
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> </telerik:RadScriptManager> <br /> <table cellspacing="4"> <tr> <td rowspan="2" style="vertical-align: top;"> Browse to an image and click to preview. <telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" Configuration-MaxUploadFileSize="104857600" Width="500px"> <Configuration SearchPatterns="*.*"></Configuration> </telerik:RadFileExplorer> </td> <td style="vertical-align: top"> <br /> <fieldset style="width: 270px; height: 85px"> <legend> Play Call </legend> <script type="text/javascript"> function OnClientFileOpen(oExplorer, args) { var item = args.get_item(); //check if the opened item is a file //if the item does not have extension it is a directory //you can add additional check if the file has specific extension if (item.get_extension()) { args.set_cancel(true); //cancel the default execution var name = item.get_name(); //you can use get_path() method to get full path to the item alert(name); //execute the custom function changing the video in the MediaPlayer control } }</script> <object id="MediaPlayer1" height="65" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <param name="URL" value="" /> <param name="FileName" value="" /> <param name="enabled" value="true" /> <param name="ShowStatusBar" value="-1"/> <param name="AutoStart" value="-1"/> <param name="BufferingTime" value="5"/> <param name="ShowCaptioning" value="0"/> <param name="WindowlessVideo" value="0"/> <param name="Balance" value="-1"/> <param name="PreviewMode" value="1"/> <param name="Volume" value="100"/> <param name="AudioStream" value="-1"/> <param name="AutoSize" value="-1"/> <param name="AnimationAtStart" value="0"/> <param name="AllowScan" value="0"/> <param name="AllowChangeDisplaySize" value="0"/> <param name="AutoRewind" value="0"/> <param name="ClickToPlay" value="-1"/> <param name="CursorType" value="0"/> <param name="CurrentPosition" value="-1"/> <param name="CurrentMarker" value="0"/> <param name="DisplayBackColor" value="0"/> <param name="DisplayForeColor" value="16777215"/> <param name="DisplayMode" value="0"/> <param name="DisplaySize" value="0"/> <param name="EnableContextMenu" value="-1"/> <param name="EnablePositionControls" value="-1"/> <param name="EnableFullScreenControls" value="-1"/> <param name="EnableTracker" value="-1"/> <param name="InvokeURLs" value="-1"/> <param name="Language" value="-1"/> <param name="Mute" value="0"/> <param name="PlayCount" value="1"/> <param name="Rate" value="1"/> <param name="SelectionStart" value="0"/> <param name="SelectionEnd" value="-1"/> <param name="SendOpenStateChangeEvents" value="0"/> <param name="SendWarningEvents" value="0"/> <param name="SendErrorEvents" value="0"/> <param name="SendKeyboardEvents" value="0"/> <param name="SendMouseClickEvents" value="0"/> <param name="SendMouseMoveEvents" value="0"/> <param name="SendPlayStateChangeEvents" value="0"/> <param name="ShowControls" value="-1"/> <param name="ShowAudioControls" value="-1"/> <param name="ShowDisplay" value="0"/> <param name="ShowGotoBar" value="0"/> <param name="ShowPositionControls" value="-1"/> <param name="ShowTracker" value="-1"/> <param name="TransparentAtStart" value="-1"/> <param name="VideoBorderWidth" value="2"/> <param name="VideoBorderColor" value="0"/> <param name="VideoBorder3D" value="-1"/> </object> <br /> </div> </fieldset> </td> </tr> </table> </asp:Content>| <telerik:RadGrid runat="server" ID="radTableColumns" AutoGenerateColumns="false" AllowMultiRowSelection="true" > |
| <ClientSettings> |
| <Selecting AllowRowSelect="true" /> |
| </ClientSettings> |
| <MasterTableView> |
| <Columns> |
| <telerik:GridClientSelectColumn HeaderStyle-Width="40px" /> |
| <telerik:GridBoundColumn DataField="column_name" HeaderText="Column Name" /> |
| <telerik:GridBoundColumn DataField="column_type" HeaderText="Column Type" /> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
the below code resizes radchart when you resize dock. but when page first loads, radchart is bigger than dock itself and some of chart is not visible. can anybody help me with a code sample ? I searched forums and tried every single chart resize example but could no succeed..
the below code resizes radchart when you resize dock. but when page first loads, radchart is bigger than dock itself and some of chart is not visible. can anybody help me with a code sample ? I searched forums and tried every single chart resize example but could no succeed..
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.rdContent
{
overflow: hidden !important;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function ResizeChart(sender, args) {
var chart = $get("<%= RadChart1.ClientID %>");
var chartimg = chart.getElementsByTagName("img")[0];
chartimg.style.setAttribute("width", sender.get_width() - 50 + "px");
chartimg.style.setAttribute("height", sender.get_height() - 50 + "px");
}
</script>
</telerik:RadScriptBlock>
<br />
<div>
<telerik:RadDockLayout runat="server" ID="RadDockLayout1" StoreLayoutInViewState="false">
<telerik:RadDockZone runat="server" ID="RadDockZone4" Width="372px" Style="float: left;
margin-right: 5px" BorderColor="#E1E1E1" BorderStyle="Solid">
<telerik:RadDock ID="RadDock4" runat="server" Resizable="true" Width="350px" EnableRoundedCorners="true"
OnClientResizeEnd="ResizeChart">
<ContentTemplate>
<div>
<telerik:RadChart ID="RadChart1" runat="server">
<Series>
<telerik:ChartSeries>
<Items>
<telerik:ChartSeriesItem YValue="3">
</telerik:ChartSeriesItem>
<telerik:ChartSeriesItem YValue="6">
</telerik:ChartSeriesItem>
<telerik:ChartSeriesItem YValue="2">
</telerik:ChartSeriesItem>
<telerik:ChartSeriesItem YValue="1">
</telerik:ChartSeriesItem>
<telerik:ChartSeriesItem YValue="5">
</telerik:ChartSeriesItem>
<telerik:ChartSeriesItem YValue="4">
</telerik:ChartSeriesItem>
</Items>
</telerik:ChartSeries>
</Series>
</telerik:RadChart>
</div>
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
<telerik:RadDockZone runat="server" ID="RadDockZone5" Width="372px" Style="float: left;
margin-right: 5px;" BorderColor="#E1E1E1" BorderStyle="Solid">
<telerik:RadDock ID="RadDock5" runat="server" Resizable="true" Width="327px" EnableRoundedCorners="true">
<ContentTemplate>
asdfads
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
<telerik:RadDockZone runat="server" ID="RadDockZone6" Width="372px" Style="float: left;"
BorderColor="#E1E1E1" BorderStyle="Solid">
<telerik:RadDock ID="RadDock6" runat="server" Resizable="true" Width="327px" EnableRoundedCorners="true">
<ContentTemplate>
asdf
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
</telerik:RadDockLayout>
</div>
</form>
</body>
</html>
<telerik:GridTemplateColumn UniqueName="awardCol" DataField="Amount" HeaderText="Amount">
<ItemTemplate>
<telerik:RadNumericTextBox ID="amountEntryField" DataType="System.Double" MinValue="1.0" Value='<%# Eval("Amount") %>' runat="server">
<ClientEvents OnBlur="amtBlur" OnFocus="amtFocus" OnKeyPress="updateAmount" />
</telerik:RadNumericTextBox>
</ItemTemplate>

/// <summary> /// Restituisce o imposta la modalità di accesso alla form /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public SchedulerFormMode Modalita { get; set; } // qui non è necessario usare il viewstate perchè non viene agganciata da un datareader /// <summary> /// Restituisce o imposta il titolo della form /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public string FormTitle { get; set; } // qui non è necessario usare il viewstate perchè non viene agganciata da un datareader /// <summary> /// Restituisce o imposta l'id dell'attività /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public int AppointmentId { get { return Convert.ToInt32(this.ViewState["AppointmentId"]); } set { this.ViewState["AppointmentId"] = value; } } /// <summary> /// Restituisce o imposta l'oggetto dell'attività /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public string Subject { get { return this.ViewState["Subject"].ToString(); } set { this.ViewState["Subject"] = value; } } /// <summary> /// Restituisce o imposta l'autore dell'attività /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public string Author { get { return this.ViewState["Author"].ToString(); } set { this.ViewState["Author"] = value; } } /// <summary> /// Restituisce o imposta a descrizione dell'attività /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public string Description { get { return this.ViewState["Description"].ToString(); } set { this.ViewState["Description"] = value; } } /// <summary> /// Restituisce o imposta la data e l'ora di inizio dell'attività /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public DateTime Start { get { return Convert.ToDateTime(this.ViewState["Start"]); } set { this.ViewState["Start"] = value; } } /// <summary> /// Restituisce o imposta la data e l'ora di fine dell'attività /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public DateTime End { get { return Convert.ToDateTime(this.ViewState["End"]); } set { this.ViewState["End"] = value; } } /// <summary> /// Restituisce o imposta la regola di ripetizione dell'attività /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public string RecurrenceRule { get { return this.ViewState["RecurrenceRule"].ToString(); } set { this.ViewState["RecurrenceRule"] = value; } } /// <summary> /// Restituisce o imposta la regole di promemoria dell'attività /// </summary> [Bindable(BindableSupport.Yes, BindingDirection.TwoWay)] public string Reminders { get { return this.ViewState["Reminders"].ToString(); } set { this.ViewState["Reminders"] = value; } }protected void Scheduler_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e) { SchedulerTask taskToEdit = Scheduler[Convert.ToInt32(e.Appointment.ID)]; taskToEdit.Comments = e.ModifiedAppointment.Description; taskToEdit.StartTime = e.ModifiedAppointment.Start; taskToEdit.EndTime = e.ModifiedAppointment.End; taskToEdit.Subject = e.ModifiedAppointment.Subject; taskToEdit.Tipologia = e.ModifiedAppointment.Resources.GetResourceByType("Tipologia") != null ? (TipologiaTask)Convert.ToInt32(e.ModifiedAppointment.Resources.GetResourceByType("Tipologia").Key) : TipologiaTask.Varie_Note; taskToEdit.Reminder = e.ModifiedAppointment.Reminders.ToString(); taskToEdit.Recurrence = e.ModifiedAppointment.RecurrenceRule; taskToEdit.RecurrenceParentID = e.ModifiedAppointment.RecurrenceParentID; taskToEdit.Stato = StatoTask.MODIFICA; taskToEdit.Salva(); this.schGestioneLocazioni.DataSource = Scheduler.CopyToDataTable(); } protected void Scheduler_AppointmentInsert(object sender, AppointmentInsertEventArgs e) { try { // recupero la tipologia selezionata dall'utente tramite la finestra modale di editing // se non ha impostato nulla imposto io una tipologia di default TipologiaTask tipologia = e.Appointment.Resources.GetResourceByType("Tipologia") == null ? TipologiaTask.Property_Management_Note : (TipologiaTask)Convert.ToInt32(e.Appointment.Resources.GetResourceByType("Tipologia").Key); string autore = e.Appointment.Attributes["Autore"] == null ? SchedulerConstants.Autori.SCH_AUTORE_SYS : e.Appointment.Attributes["Autore"].ToString(); SchedulerTask taskToAdd = Scheduler.NewSchedulerTask( e.Appointment.Subject, // oggetto e.Appointment.Description, // descrizione e.Appointment.Start, // inizio e.Appointment.End, // fine tipologia, // tipologia e.Appointment.Reminders.ToString(), // promemoria (basta fare il ToString della Collection e ottengo il reminder formattato e.Appointment.RecurrenceRule, // regola di ricorrenza e.Appointment.RecurrenceParentID, // parent ID StatoTask.INSERIMENTO, SchedulerTaskAvvisato.NO, autore, DateTime.Now); Scheduler.Add(taskToAdd); this.schGestioneLocazioni.DataSource = Scheduler.CopyToDataTable(); RadAjaxManager.GetCurrent(this).Alert("Appointment was inserted successfully."); } catch (SqlForeignKeyConstraintException ex) { RadAjaxManager.GetCurrent(this).Alert(ex.Message); } catch (SqlException ex) { RadAjaxManager.GetCurrent(this).Alert(ex.Message); } catch (Exception) { RadAjaxManager.GetCurrent(this).Alert(MessaggiException.Exception); } } protected void Scheduler_AppointmentCommand(object sender, AppointmentCommandEventArgs e) { Control SchedulerAdvancedForm; switch (e.CommandName.ToLower()) { case "insert": SchedulerAdvancedForm = e.Container.FindControl("advTemplateInsert"); break; case "update": Scheduler.ReadTasks(); // rileggo per avere eventuali nuove task inserite sul db SchedulerAdvancedForm = e.Container.FindControl("advTemplateEdit"); break; default: SchedulerAdvancedForm = e.Container.FindControl("advTemplateInsert"); break; } if (SchedulerAdvancedForm != null) { e.Container.Appointment.Subject = ((RadTextBox)SchedulerAdvancedForm.FindControl("txtAdvInsertSubject")).Text; e.Container.Appointment.Description = ((RadTextBox)SchedulerAdvancedForm.FindControl("txtAdvInsertDescription")).Text; e.Container.Appointment.Attributes["Autore"] = ((RadTextBox)SchedulerAdvancedForm.FindControl("txtAdvInsertAuthor")).Text; e.Container.Appointment.Start = ((RadDateTimePicker)SchedulerAdvancedForm.FindControl("rtpAdvInsertStartTime")).SelectedDate.Value; e.Container.Appointment.End = ((RadDateTimePicker)SchedulerAdvancedForm.FindControl("rtpAdvInsertEndTime")).SelectedDate.Value; } }