I am having an issue where a "File Explorer" control is altering a Rad Menu's layout when it is on the same page. I have stripped it all right back to a nothing else on the page,no CSS, etc and it is still doing it. Code is below:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="ToolkitScriptManager1" runat="server" AsyncPostBackTimeout="600" EnableTheming="True">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
</Scripts>
</telerik:RadScriptManager>
<telerik:RadMenu ID="RadMenu1" runat="server" Width="1200px" RenderMode="Lightweight" EnableShadows="True" Skin="Glow">
<Items>
<telerik:RadMenuItem runat="server" NavigateUrl="Default.aspx" Text="test">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Test Test">
<Items>
<telerik:RadMenuItem runat="server" Text="Testing 1">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Testing 2">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Testing 3">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Testing 4">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Testing 5">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Test Test 2" NavigateUrl="TestTestTest">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Test 5">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>
<div style="clear:both;">
<telerik:RadFileExplorer RenderMode="Lightweight" ID="myDocsFileExplorer" runat="server" Width="1200px" Skin="Glow">
<Configuration ViewPaths="~/mydocs/Documents" UploadPaths="~/mydocs/Documents" DeletePaths="~/mydocs/Documents" MaxUploadFileSize="10000000" AllowFileExtensionRename="false" />
</telerik:RadFileExplorer>
</div>
</form>
</body>
</html>
I have a grid with 3 different button columns
This is the code
<telerik:RadGrid runat="server" ID="RadGridClassOverview" ShowFooter="false" Width="100%" Enableajax="true" ShowStatusBar="True"
allowaddingrecords="false" AutoGenerateColumns="false" AllowSorting="false" allowpagesizeselection="False" AllowMultiRowSelection="false"
OnItemDataBound="OnItemDataBoundHandler" OnDetailTableDataBind="RadGridOverview_DetailTableDataBind"
AllowPaging="True" Skin="Bootstrap" PageSize="30" OnNeedDataSource="RadGridClassOverview_NeedDataSource"
OnItemCommand="RadGridClassOverview_ItemCommand" OnPreRender="RadGridClassOverview_PreRender" CssClass="table table-striped">
<PagerStyle Mode="NextPrev" Position="Bottom" PageSizeControlType="RadComboBox"></PagerStyle>
<MasterTableView AutoGenerateColumns="false" DataKeyNames="Student_reference, Expr1, Group" TableLayout="Auto" RetainExpandStateOnRebind="false" HierarchyLoadMode="ServerBind" EnableHierarchyExpandAll="true" HierarchyDefaultExpanded="false" EditMode="EditForms">
<DetailTables>
<telerik:GridTableView AutoGenerateColumns="false" DataKeyNames="note_ref" Width="100%" EnableHierarchyExpandAll="true" CommandItemDisplay="Top" EditMode="EditForms" Name="GridNotes">
<CommandItemSettings AddNewRecordText="Create New Note" />
<NoRecordsTemplate>
<div>
There are no notes to display
</div>
</NoRecordsTemplate>
<Columns>
<telerik:GridButtonColumn CommandName="View" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" Text="View" UniqueName="ViewCommandColumn">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandName="Edit" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" Text="Edit" UniqueName="EditCommandColumn">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandName="Delete" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" Text="Delete" UniqueName="DeleteCommandColumn">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="student_id" HeaderText="student_id" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="Student_ref" Display="false" runat="server" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="note_ref" DataType="System.Int32" HeaderText="note_ref" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="note_ref" Display="False" runat="server" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="course" HeaderText="code" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="course" Display="false" runat="server" ItemStyle-Width="10px" HeaderStyle-Width="10px">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="course_name" HeaderText="Subject" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="qualname" HeaderStyle-Width="200px" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="noteType" HeaderText="Type" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="noteType" Display="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="typeDesc" HeaderText="Note Type" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="typeDesc" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
</telerik:GridBoundColumn>
<telerik:GridDateTimeColumn DataField="created" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="created" DataFormatString="{0:dd/MM/yyyy}">
</telerik:GridDateTimeColumn>
<telerik:GridBoundColumn DataField="created_by" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="created_by" Display="false" ItemStyle-HorizontalAlign="Left">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="note_content" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="note_content" Display="false" ItemStyle-HorizontalAlign="Center">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<EditColumn UniqueName="Edit">
</EditColumn>
<FormTemplate>
<table style="width: 85%" border="1">
<asp:Panel ID="pnlAdd" runat="server" Visible="false">
<tr style="border: solid">
<td colspan="2"><b>Create New Note</b><br />
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lblqualcode" runat="server" Text=''></asp:Label>
<br />
Select Note Type<br />
<telerik:RadComboBox ID="RadComboBoxNoteType" runat="server" EmptyMessage="Select NoteType" CausesValidation="False"
HighlightTemplatedItems="true" Height="100px" Width="450px" DropDownWidth="450px" EnableAutomaticLoadOnDemand="False" AutoPostBack="true"
AppendDataBoundItems="true" Visible="true" CssClass="ComboBox" OnSelectedIndexChanged="RadComboBoxNoteType_SelectedIndexChanged">
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td colspan="2">
<telerik:RadComboBox ID="RadComboBoxQual" runat="server" EmptyMessage="Select Subject and class" CausesValidation="False"
HighlightTemplatedItems="true" Height="100px" Width="450px" DropDownWidth="450px" EnableAutomaticLoadOnDemand="False" AutoPostBack="true"
AppendDataBoundItems="true" Visible="true" CssClass="ComboBox">
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td colspan="2">Mindset habits<br />
Please select the mindset habits to link to this note</td>
</tr>
<tr>
<td colspan="2">
<telerik:RadListBox ID="ListBoxhabits" runat="server" RenderMode="Lightweight" CheckBoxes="true">
<Items>
<telerik:RadListBoxItem Text=" Time" />
<telerik:RadListBoxItem Text=" Engagement" />
<telerik:RadListBoxItem Text=" Response" />
<telerik:RadListBoxItem Text=" Resources" />
<telerik:RadListBoxItem Text=" Organisation" />
</Items>
</telerik:RadListBox>
</td>
</tr>
<tr>
<td colspan="2">Enter Note content
<br />
<asp:TextBox ID="txtNoteContent" runat="server" Text="" class="form-control input-normal" Rows="5" Columns="100" TextMode="MultiLine">
</asp:TextBox><br />
<br />
<br />
<br />
<asp:Label ID="lblMessage" runat="server" Text=''></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnSave" CausesValidation="False" Text="Save"
runat="server" AutoPostBack="True" CommandName="PerformInsert"></asp:Button>
</td>
</tr>
</asp:Panel>
<asp:Panel ID="Paneledit" runat="server" Visible="false">
<tr>
<td colspan="2">
<b>Note Details</b><br />
</td>
</tr>
<tr>
<td colspan="2">Edit Note content
<br />
<asp:TextBox ID="txteditnotedets" runat="server" class="form-control input-normal" Rows="5" Columns="100" TextMode='MultiLine' Text='<%# Bind("note_content") %>'>
</asp:TextBox><br />
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnUpdate" CausesValidation="False" Text="Save"
runat="server" AutoPostBack="True" CommandName="PerformUpdate"></asp:Button>
</td>
</tr>
</asp:Panel>
<asp:Panel ID="Paneldetail" runat="server" Visible="false">
<tr>
<td colspan="2">
<b>Note Details</b><br />
</td>
</tr>
<tr> <td colspan="2">
<asp:Label ID="LabelEditDetails" runat="server" Text='<%# Bind("note_content") %>'></asp:Label>
</td>
</tr>
</asp:Panel>
</table>
</FormTemplate>
</EditFormSettings>
</telerik:GridTableView>
</DetailTables>
<Columns>
I want to display panelDetail when I click the View Column and Paneledit when I click the edit column. PanelEdit is displaying correctly but PanelDelete does not work. What do I need to do to get it to work?
Hello,
I have a custom skin for the menu control. All works well only in the slideout menu level 2 appears the rmSprite in the background. How can I overwrite this in CSS. Which class do I need to overwrite.
kind regards,
Jacques
I have a readgrid with a list of USA addresses.
I want to be able to enter in a city, state or zip code and have it show me the list with what is closest first to what was entered.
What API would I want to connect with?
Also, has anybody had any experience with taking this one step further and not just look at what is closest but factor in other items like price example.
Facility A is 10 miles away and our cost is $50
Facility B is 11 miles away and our cost is $40
Even thought A is closed I want B to show first since its only 1 mile away but we will save $10 by telling the person searching this is the first pick.
Hello Telerikers.
I was tryng to do something today and i couldnt.
All i want to do is fire the command `ForeColor` , with args { value: 'red'; }, but w/o adding to the stack.
I could not manage to do this, as the editor.fireCommand will add to stack.
editor.executeCommand wont have args as an option, and i cant create a GenericCommand for that.
What would be the best approach ?
Best regards, Gabriel
I try to run one of Telerik demos (AjaxifyTimer) on mono but Ajax callbacks are not performed and I've got the error in the Firefox console (or in IE console) :
Error: [Exception... "'Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. |
Details: Error parsing near '<!DOCTYPE html PUBLI'.' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no] |
<%@ Page AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TestManager._Default" %> |
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" |
Namespace="System.Web.UI" TagPrefix="asp" %> |
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/DTD/xhtml11.dtd"> |
<html> |
<head id="Head1" runat="server"> |
</head> |
<body class="BODY"> |
<form runat="server" id="mainForm" method="post" style="WIDTH:100%"> |
<!-- content start --> |
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
</asp:ScriptManager> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="Timer1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="LoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="btnUp"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="Panel1" /> |
<telerik:AjaxUpdatedControl ControlID="lblInterval" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="btnDown"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="Panel1" /> |
<telerik:AjaxUpdatedControl ControlID="lblInterval" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<div style="float:left;"> |
<telerik:RadGrid id="RadGrid1" runat="server" Skin="Sunset" Width="400px" OnItemDataBound="RadGrid1_ItemDataBound" OnNeedDataSource="RadGrid1_NeedDataSource"> |
<MasterTableView AutoGenerateColumns="False" DataKeyNames="Change" TableLayout="Fixed"> |
<Columns> |
<telerik:GridBoundColumn DataField="Index" HeaderText="Index" UniqueName="Index"></telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Value" HeaderText="Value" DataFormatString="{0:C2}" UniqueName="Value"></telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="Change" HeaderText="Change" DataFormatString="{0:P2}" UniqueName="Change"></telerik:GridBoundColumn> |
<telerik:GridTemplateColumn UniqueName="TemplateColumn"> |
<HeaderStyle Width="40px" /> |
<ItemTemplate> |
<asp:Image id="Image1" AlternateText="progress" BorderWidth="0px" runat="server"></asp:Image> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
</Columns> |
</MasterTableView> |
</telerik:RadGrid> |
</div> |
<div style="float:right;width:300px;height:117px;padding:10px;font-size:1.1em" class="RadGrid_Sunset"> |
<asp:Label ID="Label1" runat="server" Text="Increase/decrease the timer interval (in millis) through the image buttons below:" ForeColor="Maroon"></asp:Label> |
<br /> |
<br /> |
<asp:ImageButton ID="btnUp" runat="server" ToolTip="increase interval" ImageUrl="Img/image1.gif" /> |
|
<asp:ImageButton ID="btnDown" runat="server" ToolTip="decrease interval" ImageUrl="Img/image2.gif" /> |
<br /> |
<br /> |
Timer interval: <asp:Label ID="lblInterval" runat="server" Text="3000" style="font-weight:bold;"></asp:Label> |
</div> |
<asp:Panel ID="Panel1" runat="server"> |
<asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer1_Tick" /> |
</asp:Panel> |
<!-- content end --> |
</form> |
</body> |
</html> |
Imports Telerik.Web.UI |
Partial Public Class _Default |
Inherits System.Web.UI.Page |
Public Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick |
RadGrid1.Rebind() |
End Sub |
Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource |
Dim table As New DataTable() |
table.Columns.Add("Index", GetType(String)) |
table.Columns.Add("Value", GetType(Double)) |
table.Columns.Add("Change", GetType(Double)) |
Dim r As New Random() |
table.Rows.Add(New Object() {"Composite", r.[Next](7000, 8000), r.[Next](-50, 500) / 100}) |
table.Rows.Add(New Object() {"Energy", r.[Next](8000, 9000), r.[Next](-50, 50) / 100}) |
table.Rows.Add(New Object() {"Financial", r.[Next](7000, 8000), r.[Next](-50, 50) / 100}) |
table.Rows.Add(New Object() {"Health care", r.[Next](5000, 6000), r.[Next](-50, 50) / 100}) |
RadGrid1.DataSource = table |
System.Threading.Thread.Sleep(500) |
End Sub |
Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemDataBound |
If TypeOf e.Item Is GridDataItem Then |
Dim item As GridDataItem = TryCast(e.Item, GridDataItem) |
Dim img As System.Web.UI.WebControls.Image = DirectCast(item.FindControl("Image1"), System.Web.UI.WebControls.Image) |
Dim val As Double = DirectCast(item.GetDataKeyValue("Change"), Double) |
If val > 0 Then |
img.ImageUrl = "Img/image1.gif" |
img.AlternateText = "increase" |
Else |
img.ImageUrl = "Img/image2.gif" |
img.AlternateText = "decrease" |
End If |
End If |
End Sub |
Protected Sub btnUp_Click(ByVal sender As Object, ByVal e As ImageClickEventArgs) Handles btnUp.Click |
Dim newValue As Integer = Timer1.Interval + 1000 |
Timer1.Interval = newValue |
lblInterval.Text = newValue.ToString() |
End Sub |
Protected Sub btnDown_Click(ByVal sender As Object, ByVal e As ImageClickEventArgs) Handles btnDown.Click |
Dim newValue As Integer = Timer1.Interval - 1000 |
Timer1.Interval = newValue |
lblInterval.Text = newValue.ToString() |
End Sub |
End Class |
<?xml version="1.0" encoding="utf-8"?> |
<configuration> |
<connectionStrings/> |
<system.net> |
<connectionManagement> |
<add address="*" maxconnection="40"/> |
</connectionManagement> |
<defaultProxy> |
<proxy usesystemdefault="True" autoDetect="True" bypassonlocal="True"/> |
</defaultProxy> |
</system.net> |
<system.web> |
<!-- |
Definissez compilation debug="true" pour inserer des symboles |
de debogage dans la page compilee. Comme ceci |
affecte les performances, definissez cette valeur en utilisant true uniquement |
lors du developpement. |
Options Visual Basic : |
Definissez strict="true" pour interdire les conversions de types de donnees |
susceptibles d'entraîner des pertes de donnees. |
Definissez explicit="true" pour forcer la declaration de toutes les variables. |
--> |
<compilation debug="true" strict="true" explicit="true"> |
<assemblies> |
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> |
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> |
<add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> |
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
</assemblies> |
</compilation> |
<pages> |
<namespaces> |
<clear/> |
<add namespace="System"/> |
<add namespace="System.Collections"/> |
<add namespace="System.Collections.Specialized"/> |
<add namespace="System.Configuration"/> |
<add namespace="System.Text"/> |
<add namespace="System.Text.RegularExpressions"/> |
<add namespace="System.Web"/> |
<add namespace="System.Web.Caching"/> |
<add namespace="System.Web.SessionState"/> |
<add namespace="System.Web.Security"/> |
<add namespace="System.Web.Profile"/> |
<add namespace="System.Web.UI"/> |
<add namespace="System.Web.UI.WebControls"/> |
<add namespace="System.Web.UI.WebControls.WebParts"/> |
<add namespace="System.Web.UI.HtmlControls"/> |
<add namespace="Telerik.Web.UI"/> |
</namespaces> |
</pages> |
<httpHandlers> |
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> |
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> |
</httpHandlers> |
<httpModules> |
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> |
</httpModules> |
<!-- |
La section <authentication> permet la configuration |
du mode d'authentification de securite utilise par |
ASP.NET pour identifier un utilisateur entrant. |
--> |
<authentication mode="Windows"/> |
<!-- |
La section <customErrors> permet de configurer |
les actions a executer si/quand une erreur non geree se produit |
lors de l'execution d'une demande. Plus precisement, |
elle permet aux developpeurs de configurer les pages d'erreur html |
pour qu'elles s'affichent a la place d'une trace de la pile d'erreur. |
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> |
<error statusCode="403" redirect="NoAccess.htm" /> |
<error statusCode="404" redirect="FileNotFound.htm" /> |
</customErrors> |
--> |
<globalization culture="fr-FR" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="ISO-8859-1"/> |
</system.web> |
</configuration> |
I'm having a hard time resizing a RadWindow after I have uploaded an image via RadAsyncUpload. Can someone provide some guidance? I'm not sure where to start and everything I've seen on here hasn't worked. Thanks.
<
telerik:RadWindow
runat
=
"server"
ID
=
"rwPhoto"
Skin
=
"Bootstrap"
KeepInScreenBounds
=
"true"
VisibleOnPageLoad
=
"false"
Modal
=
"true"
Behaviors
=
"CLose,Move"
AutoSize
=
"true"
OnClientAutoSizeEnd
=
"centerWindow"
>
<
ContentTemplate
>
<
asp:Panel
ID
=
"panPhoto"
runat
=
"server"
CssClass
=
"main-report"
Width
=
"700px"
>
<
div
class
=
"container-fluid"
>
<
br
class
=
"clearfix"
/>
<
div
class
=
"row"
>
<
div
class
=
"col-xs-4 col-sm-4 col-md-4 col-lg-4 label-text"
>Image Location:</
div
>
<
div
class
=
"col-xs-8 col-sm-8 col-md-8 col-lg-8"
>
<
telerik:RadAsyncUpload
id
=
"btnSelect"
runat
=
"server"
AllowedFileExtensions
=
".png,.jpg,.jpeg"
Skin
=
"Bootstrap"
ControlObjectsVisibility
=
"None"
MaxFileInputsCount
=
"1"
TemporaryFolder
=
"~/Temp"
OnClientFileSelected
=
"OnClientFileSelected"
/>
</
div
>
</
div
>
<
div
id
=
"images"
class
=
"row"
>
<
div
id
=
"thumb"
class
=
"col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center"
></
div
>
<
div
id
=
"pic"
class
=
"col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center"
>
<
asp:Image
ID
=
"picPhoto"
runat
=
"server"
CssClass
=
"img-responsive"
/>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"pull-left"
>
<
asp:Button
ID
=
"btnCancel"
runat
=
"server"
Text
=
"Close"
CssClass
=
"btn btn-primary"
/>
</
div
>
<
div
class
=
"pull-right"
>
<
asp:Button
ID
=
"btnSave"
runat
=
"server"
Text
=
"Save"
CssClass
=
"btn btn-main"
/>
</
div
>
</
div
>
</
div
>
</
div
>
</
asp:Panel
>
</
ContentTemplate
>
</
telerik:RadWindow
>
function
centerWindow(sender, args) {
sender.center();
}
function
OnClientFileSelected(sender, args) {
var
file = args.get_fileInputField().files.item(args.get_rowIndex()),
index = 0;
while
(!file) {
file = args.get_fileInputField().files.item(index);
index++;
}
var
pic = document.getElementById(
"pic"
);
pic.style.display =
"none"
;
showImage(file);
}
function
showImage(file) {
var
image = document.createElement(
"img"
),
thumb = document.getElementById(
"thumb"
);
image.className =
"img-responsive"
;
image.file = file;
thumb.appendChild(image);
var
reader =
new
FileReader()
reader.onload = (
function
(aImg) {
return
function
(e) {
aImg.src = e.target.result;
};
}(image))
var
ret = reader.readAsDataURL(file),
canvas = document.createElement(
"canvas"
);
}
I'm attempting to implement resource availability as at https://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx but I've run into a problem. In scripts.js the window.onAppointmentMoving reads as follows:
var start = args.get_targetSlot().get_startTime();
var end = new Date(start.getTime() + args.get_appointment().get_duration());
highlightIfOccupied(start, end, sender, args);
Unfortunately, this is only accurate if the user is dragging the appointment by clicking the first slot the appointment occupies. If the appointment occupies 2 or more slots and the user clicks any but the first slot the start and end times are no longer accurate. Is there a more accurate way to get the new start and end times of the dragged appointment than trying to infer based on the slot that was clicked?