Can i apply the scheduler in it?
Then I try to plug in the js file to my website.After that i get some error.
My error:
Uncaught TypeError: Cannot set property 'schedulerVersion' of undefined
Uncaught TypeError: $.widget is not a function
This is My Plug-in Code:
<dnn:DnnJsInclude runat="server" FilePath="/Plug-in/fullcalendar-scheduler-1.3.2/lib/fullcalendar.min.js" />
<dnn:DnnJsInclude runat="server" FilePath="/Plug-in/fullcalendar-scheduler-1.3.2/lib/jquery.min.js" />
<dnn:DnnJsInclude runat="server" FilePath="/Plug-in/fullcalendar-scheduler-1.3.2/lib/jquery-ui.min.js" />
<dnn:DnnJsInclude runat="server" FilePath="/Plug-in/fullcalendar-scheduler-1.3.2/lib/moment.min.js" />
<dnn:DnnJsInclude runat="server" FilePath="/Plug-in/fullcalendar-scheduler-1.3.2/scheduler.min.js" />
<dnn:DnnCssInclude runat="server" FilePath="/Plug-in/fullcalendar-scheduler-1.3.2/lib/fullcalendar.min.css" />
<dnn:DnnCssInclude runat="server" FilePath="/Plug-in/fullcalendar-scheduler-1.3.2/lib/fullcalendar.print.css" />
<dnn:DnnCssInclude runat="server" FilePath="/Plug-in/fullcalendar-scheduler-1.3.2/scheduler.min.css" />
This my error html picture
Related
In the Below code iam trying to get the orginal path of selected folder.I tried the below code it displays C:\fakepath\10_7_DoxTest.tiff but i am selecting from E:\TestProject\10_7_DoxTest.tiff.Pls anyone help me to solve the problem.
<asp:HiddenField ID="hiddenField1" runat="server" />
<asp:Button ID="BtnBatch" onClientClick="document.getElementById('hiddenField1').value = document.getElementById('file').value" runat="server" Text="Create Batch" OnClick="btnCreate_Click" />
<asp:FileUpload ID="file" runat="server" webkitdirectory="true" mozdirectory="true" />
In my ASP.NET project (VB.NET) I have a self-coded user control called DocumentDisplay that I invoke with a TargetWebPage attribute:
<uc1:DocumentDisplay ID="DocumentDisplay" runat="server" TargetWebPage="EntityDocumentUpload"/>
The codebehind for the user control implements the public property TargetWebPage, and in the debugger I can see it is being set correctly. Also, in the user control (ascx) there is a yyySecureButton defined (line 9), which also has this public property defined in it, and this is being set as well. The problem is I need the property to descend all the way to the yyySecureCommandField defined (within the DomainGridView control) on line 25; this property is in the codebehind for that control as well, but it is not being set.
Can I pass the TargetWebPage attribute to the yyySecureCommandField from within the markup? If not, how best to do it?
The code below is identical to what I'm working with except that strings identifying my client have been changed to vvv, xxx, yyy, etc.
Many thanks for any response.
<%# Control Language="vb" AutoEventWireup="false" CodeBehind="DocumentDisplay.ascx.vb" Inherits="zzz.DocumentDisplay" %>
<xxx:ErrorSection ID="ErrorSection" runat="server"/>
<div class="FieldGroup">
<fieldset>
<legend>Documents</legend>
<xxx:InputField runat="server" ID="InputFieldDocumentType" FieldName="DocumentType" CssClass="DocumentField" SuppressRequiredIndicator="True" />
<xxx:InputField runat="server" ID="InputFieldDocumentName" FieldName="DocumentName" CssClass="DocumentField" SuppressRequiredIndicator="True" />
<div class="DocumentField"><label>Upload</label><input type="File" id="DocumentUpload" runat="server" /></div>
<div class="TableSectionCommandBar"><vvv:yyySecureButton id="ButtonUpload" runat="server" SecurityMode="Action" Text="Add" CssClass="StandardButton"/></div>
<div class="Spacer" />
<div class="TableSection">
<xxx:DomainGridView ID="GridViewDocuments" runat="server" AutoGenerateColumns="False" CssClass="StandardTable" DomainObjectName="zzz.Domain.Document,yyyLib" DataKeyNames="DocumentId" AlwaysRequiresDatabind="True" AllowSorting="True">
<Columns>
<xxx:FieldDefinitionField FieldName="DocumentType" ShowToolTip="True" SortExpression="DocumentType" />
<xxx:FieldDefinitionField FieldName="DocumentName" ShowToolTip="True" SortExpression="DocumentName" />
<xxx:FieldDefinitionField FieldName="DocumentDate" IsReadOnly="True" ShowToolTip="True" SortExpression="DocumentDate" />
<asp:TemplateField HeaderText="Doc" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:Hyperlink ID="LinkViewContentDocuments" runat="server" Visible="<%#Not String.IsNullOrEmpty(DirectCast(Container.DataItem, DocumentInformation).DocumentFileName)%>" NavigateUrl="<%#ResolveUrl(String.Format(CultureInfo.InvariantCulture, ApplicationUrls.ViewEntityDocuments, DirectCast(Container.DataItem, DocumentInformation).DocumentId))%>" ImageUrl="<%#ResolveUrl(ApplicationUrls.PaperclipImage)%>" ToolTip="<%#DirectCast(Container.DataItem, DocumentInformation).DocumentFileName%>" Text="<%#DirectCast(Container.DataItem, DocumentInformation).DocumentFileName%>" />
</ItemTemplate>
<EditItemTemplate>
<input type="File" id="UpdateDocumentUpload" runat="server" />
</EditItemTemplate>
</asp:TemplateField>
<vvv:yyySecureCommandField SecurityMode="Action" EditText="Edit" UpdateText="Update" CancelText="Cancel" DeleteText="Delete" ShowCancelButton="True" ShowEditButton="True" ShowDeleteButton="True" />
</Columns>
<EmptyDataTemplate>
<asp:Label ID="LabelNoEntityResults" runat="server" Text="There are currently no documents to display."></asp:Label>
</EmptyDataTemplate>
<RowStyle CssClass="ItemRow" />
<HeaderStyle CssClass="HeaderRow" />
<AlternatingRowStyle CssClass="AlternatingItemRow" />
<PagerStyle CssClass="PagingRow" />
</xxx:DomainGridView>
</div>
</fieldset>
</div>
i have a web form .inside of this ,i am loading usercontroler via
<ext:UserControlLoader .
my user controler contains an sqldatasource.when i run the page ,i got the error something like this "Control with type 'System.Web.UI.WebControls.SqlDataSource' cannot be handled by layout".
my web form is like this;
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Panel runat="server">
<Items>
<ext:UserControlLoader ID="UserControlLoader4" runat="server" Path="~/Controlers/SinifListe.ascx" />
</Items>
</panel>
and my usercontroler
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:AProjeConnectionString %>"
SelectCommand="SELECT * FROM [Sinif]"></asp:SqlDataSource>
<ext:Panel runat="server" ID="mainpanelone" Title="listele" Flex="1" BodyStyle="background-color:#DFE9F6">
<Items>
<ext:Container ID="Container1" runat="server" Layout="HBoxLayout" Flex="1">
<Items>
<ext:GridPanel ID="GridPanel2" runat="server" Title="Sınıf " Frame="true" Width="300">
<Store>
<ext:Store ID="Store2" runat="server" DataSourceID="SqlDataSource2">
<Model>
<ext:Model ID="Model2" runat="server" IDProperty="Id">
<Fields>
<ext:ModelField Name="Id" />
<ext:ModelField Name="Ad" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel2" runat="server">
<Columns>
<ext:Column ID="Column1" runat="server" DataIndex="Id" Text="Id" />
<ext:Column ID="Column2" runat="server" DataIndex="Ad" Text="Ad" />
</Columns>
</ColumnModel>
</ext:GridPanel>
</Items>
</ext:Container>
</Items>
</ext:Panel>
how can i solve this problem.
*i put sqldatasources inside of the web form and problem solved,however, i wanna use sqldatasources inside of my usercontroler
**i make simple web form and usercontroler to be understandable.
You can place the SqlDataSource into the inner <HtmlBin> property of the <ext:GridPanel>.
Example
<ext:GridPanel ID="GridPanel2...
<HtmlBin>
<asp:SqlDataSource ID="SqlDataSource2"...
</HtmlBin>
</ext:GridPanel>
Hope this helps.
Edit: Changed <Bin> to <HtmlBin>
I've upgraded my kentico 6 site to the latest hotfix from version 6.0.4297.
We have a custom web part that has the following layout code:
<%# Control Language="C#" AutoEventWireup="true" CodeFile="~/CMSWebParts/Terradon/eventcalendar.ascx.cs"
Inherits="CMSWebParts_Terradon_eventcalendar" %>
<%# Register TagPrefix="TRD" Namespace="Terradon" %>
<div class="Calendar">
<TRD:CustomCalendar font-size="11px" ID="calItems" Runat="server" titleformat="MonthYear" font-family="Arial" Width="249" CellPadding="5" BorderWidth="1" BorderColor="#ffffff" EnableViewState="true" OnVisibleMonthChanged="calItems_VisibleMonthChanged" OnDayRender="calItems_DayRender" OnPreRender="calitems_PreRender" OnSelectionChanged="calItems_SelectionChanged" SelectionMode="Day">
<TitleStyle font-bold="true" font-size="14px" BorderColor="#ffffff" BackColor="#ffffff" ForeColor="#222222"></TitleStyle>
<NextPrevStyle ForeColor="#222222"></NextPrevStyle>
<DayStyle BorderWidth="1" BorderColor="#ffffff" BackColor="#e6e3de"></DayStyle>
<TodayDayStyle BackColor="#820912" ForeColor="#ffffff"></TodayDayStyle>
<SelectedDayStyle BackColor="#444444" ForeColor="#ffffff" Font-Bold="true" ></SelectedDayStyle>
</TRD:CustomCalendar>
</div>
<div class="CalendarList">
<asp:Panel cssclass="CalendarTitle" id="calendarWrap" runat="server">
<asp:Label ID="calendarTitle" runat="server"/>
<asp:Hyperlink ID="calendarViewMoreLink" runat="server" CssClass="CalendarViewMoreLink" Text="View Events"/>
</asp:Panel>
<cms:CMSRepeater ID="repEventList" runat="server" Visible="true" OrderBy="EventDate ASC" ZeroRowsText="There are currently no events." StopProcessing="false" EnableViewState="false" OnItemCreated="repEventList_ItemCreated" OnItemDataBound="repEventList_ItemDataBound">
<HeaderTemplate><ul></HeaderTemplate>
<FooterTemplate></ul></FooterTemplate>
</cms:CMSRepeater>
<div class="EventDetail">
<cms:CMSRepeater ID="repEvent" runat="server" Visible="false" StopProcessing="true" EnableViewState="false" />
</div>
</div>
<div class="clear"></div>
The code worked fine in the old version of the site and even works fine on a local instance of Kentico with the latest hotfix. Since the upgrade I get the following error:
[Error loading the WebPart 'TerradonCalendar' of type 'TerradonCalendar']
Unknown server tag 'TRD:CustomCalendar'
Well, without more information I would say there is no custom control named CustomCalendar in the Terradon namespace.
It's possible that the custom control was refactored, moved, or renamed; or the assembly was not deployed correctly.
ASP.net(C#), VS2010, Win 7.
New to WebDev, so this might be a simple syntax thing but here it goes...
Long story short I have to force a postback on a GridView that shows attachments I upload using an ASPxUploadControl. I put the GridView inside an ASPxCallbackPanel and am trying to get my GridView to update on the page after an attachment is uploaded using ASPxCallbackPanel.PerformCallback();
Here's the Upload control, in its' ClientSideEvent is where I'm trying to call the clientSideEvent from the Button shown below. Just trying to force a button click really, but I tried doing it from the code-behind but that didn't work. Any help would be appreciated!
<dxuc:ASPxUploadControl ID="FileUpload1" runat="server"
ClientInstanceName="uploader"
ShowAddRemoveButtons="False"
ShowUploadButton="True"
AddUploadButtonsHorizontalPosition="Center"
AddUploadButtonsVerticalPosition="Top" FileInputCount="1"
UploadMode="Advanced"
OnFileUploadComplete="UploadControl_FileUploadComplete"
Size="30">
<ClientSideEvents FileUploadComplete="function(s, e) { Button1.Click; }" />
<%-- <AdvancedModeSettings EnableMultiSelect="True" /> "does not have public property named "advancedModeSettings" version is too old--%>
<ValidationSettings
AllowedFileExtensions=".doc,.pdf,.xls,.txt,.jpeg,.jpg,.gif,.png,.oft,.htm,.html,.mht,.rtf,.zip"
MaxFileSize="5242880"
FileDoesNotExistErrorText="This file can't be found."
GeneralErrorText="Custom file uploading fails due to an external error that doesn't relate to the ASPxUploadControl's functionality"
MaxFileSizeErrorText="Size of the uploaded file exceeds maximum file size">
<ErrorStyle ForeColor="Red"/>
</ValidationSettings>
</dxuc:ASPxUploadControl>
Here is the GridView as well as a button I made that successfully refreshes the grid.
<div>
<dxe:ASPxButton ID="ASPxButton1" runat="server" ClientInstanceName="Button1" Text="Reload Panel" AutoPostBack="False">
<ClientSideEvents Click="function(s, e) {ASPxCallbackPanel1.PerformCallback(); e.processOnServer = true;}" />
</dxe:ASPxButton>
<dx:ASPxCallbackPanel ID="ASPxCallbackPanel1" runat="server"
ClientInstanceName="ASPxCallbackPanel1" Width="492px"
Height="100%">
<PanelCollection>
<dx:PanelContent runat="server">
<asp:GridView ID="gvAttachment" SkinID="grid" runat="server" Width="98%"
OnRowDataBound="AttachmentControl_OnRowDataBound"
meta:resourcekey="gvAttachResource1"
PagerSettings-FirstPageText="<%$ Resources:CommonControlText,FirstPageText %>"
PagerSettings-LastPageText="<%$ Resources:CommonControlText,LastPageText %>"
PagerSettings-PreviousPageText="<%$ Resources:CommonControlText,PreviousPageText %>"
PagerSettings-NextPageText="<%$ Resources:CommonControlText,NextPageText %>"
AutoGenerateColumns="False">
<EmptyDataRowStyle CssClass="emptyData" />
<EmptyDataTemplate>
<table class="usercontroldetail container_table">
<tr>
<td class="tdlayout">
<asp:Label ID="Localize1" runat="server">
<%= Placeholder %>
</asp:Label>
</td>
</tr>
</table>
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="AtchmtId" HeaderText="Attachment ID"
visible = "false" meta:resourcekey="BoundFieldResource1">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField ="FileNm" HeaderText="File Name" />
<asp:BoundField DataField="UsrNm" HeaderText="Uploaded By"
/>
<asp:BoundField DataField="AtchmtDt" HeaderText="Date"
/>
<asp:BoundField DataField="FileSizeCnt" HeaderText="File Size"
/>
<asp:TemplateField AccessibleHeaderText="Actions" HeaderText="Actions">
<ItemTemplate>
<div style="text-align:center;">
<asp:LinkButton ID="btnDelete" Visible="False" runat="server"
ToolTip="Delete Selected Attachment"
OnClick="btnDelete_Click"
Text="Delete" CausesValidation="True" DisableOnSubmit="True" Group=""
meta:resourcekey="btnDeleteResource1" />
<asp:Label ID="lblPipe" runat="server" Text="|" />
<asp:LinkButton ID="btnView" Visible="False" runat="server"
ToolTip="View Selected Attachment"
OnClick="btnView_Click"
Text="View" CausesValidation="True" DisableOnSubmit="True" Group=""
meta:resourcekey="btnViewResource1" />
</div>
</ItemTemplate>
<ItemStyle Wrap="false" />
</asp:TemplateField>
</Columns>
<%--<PagerSettings FirstPageText="First" LastPageText="Last" NextPageText="Next >" PreviousPageText="< Previous"></PagerSettings>--%>
<RowStyle CssClass="row_odd" />
<AlternatingRowStyle CssClass="row_even" />
</asp:GridView>
</dx:PanelContent>
</PanelCollection>
</dx:ASPxCallbackPanel>
FYI: The GridView is getting the new attachment put in it. I'm just not seeing it on the page because the UploadControl only updates itself.
Edit:Figured it out just used the OnClick() method as below. Derp. Forgot that the ASPx button inherited all the ASP buttons methods. But now my original plan of making the button invisible seems to be foiled. When Button1.OnClick() is called with the Visible property for the Button set to "false". it says Button1 is not defined. Anyway around this?
<ClientSideEvents FileUploadComplete="function(s, e) { Button1.OnClick(); }" />
If I got you right, you can manipulate the behavior of all update panels on page via property called a updateMode (Conditional, Always). Changing one updatepanel will cause refreshing of all, if all have mode set to Always.