Hello All,
I'm using Moss2007 and the Moss radeditor (5.2.3.0).
In a content page i added my radcontrol (see code below) with custom configfile.xml and toolsfile.xml.
I pasted my configfile.xml below and as you can see i added *.mov to the mediafilters property.
But when i try to upload a .mov file using the MediaManager of the radeditor i get an error that the "extension of the uploaded file is not allowed.. " ( see screenshot).
If you look at the screenshot you can see that the under the allowed extensions i dont see the *.mov file and the filesize is also smaller then i allowed in my configfile.xml..
Where am i going wrong here? I appreciate all help..
configfile.xml
| <?xml version="1.0" encoding="utf-8"?> |
| <configuration> |
| <property name="AllowThumbGeneration">True</property> |
| <property name="ConvertToXhtml">True</property> |
| <property name="EnableDocking">False</property> |
| <property name="ShowHtmlMode">True</property> |
| <property name="ShowPreviewMode">False</property> |
| <property name="StripAbsoluteAnchorPaths">False</property> |
| <property name="StripAbsoluteImagesPaths">False</property> |
| <property name="ToolbarMode">ShowOnFocus</property> |
| <property name="ToolsWidth">600px</property> |
| <property name="Skin">Telerik</property> |
| <property name="MediaFilters">*.wma,*.wmv,*.avi,*.wav,*.mpeg,*.mpg,*.mpe,*.mp3,*.m3u,*.mid,*.midi,*.snd,*.mkv,*.mov</property> |
| <property name="MaxMediaSize">4048000</property> |
| <property name="ImagesPaths"> |
| <item>PublishingImages</item> |
| <item>/SiteCollectionImages</item> |
| </property> |
| <property name="CssFiles"> |
| <item>/_wpresources/amphia/CssEditor.css</item> |
| </property> |
| </configuration> |
| <rad:RadHtmlField ConfigFile="/_LAYOUTS/STYLES/Radboud/radeditor/ConfigFile.xml" ToolsFile="/_LAYOUTS/STYLES/Radboud/radeditor/ToolsFile.xml" |
| id="pageContent" FieldName="PublishingPageContent" InputFieldLabel="Content" DisplayWidth="460" DisplayHeight="300" runat="server" EnableExtensions="true" AllowSpecialTags="true"/> |
Hi, I have some confusion on the best practices to place the javascript in the page. Whenever, i add a new webform via the 'Add RadControl Scenarios' from the Solution Explorer, it will generate this for me. The question I have is where is the best place for me to place the javascript? Right now, I place it after the //Put your JavaScript code here. However, after looking various examples in your demo and this, http://www.telerik.com/help/aspnet-ajax/ajax-radscriptblock-radcodeblock.html
I am not sure where is the best location to place my javascript. Please advise. <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <script type="text/javascript"> //Put your JavaScript code here. function ShowRadWindowM() { var wnd = $find("<%=RadWindow4.ClientID %>"); wnd.setUrl("radwindow_MinimizeZone.aspx"); wnd.show(); wnd.maximize(); } </script>
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
public sealed class SingleSelectRadComboBox : RadComboBox, ISingleSelectRadComboBox/// <summary>/// Default constructor that sets up common control properties/// </summary>public SingleSelectRadComboBox(){ AllowCustomText = false; ChangeTextOnKeyBoardNavigation = true; EnableTextSelection = true; MarkFirstMatch = true; EmptyMessage = "Select..."; CloseDropDownOnBlur = true; CollapseAnimation.Type = AnimationType.None; ExpandAnimation.Type = AnimationType.None; MaxHeight = Unit.Pixel(200); if (Width.Value == 0) { Width = Unit.Pixel(160); } OnClientFocus = "singleSelect_RadComboBox_Focus";}EnableTextSelection = true;MarkFirstMatch = true;EmptyMessage = "Select...";this.refreshGrid = function refreshGrid(result) { var gridView = $find(this.get_grid()).get_masterTableView(); gridView.set_dataSource(result.Items); gridView.set_virtualItemCount(result.ItemCount); gridView.dataBind(); gridView.updated();};var Items = [{ "Heading1": "Row1-1", "Heading2": "Row1-2", "Heading3": "Row1-3"}, { "Heading1": "Row2-1", "Heading2": "Row2-2", "Heading3": "Row2-3"}];<
telerik:RadGrid ID="radgrdMeterData" runat="server" AutoGenerateColumns="false">
<
MasterTableView DataKeyNames="ea_meterdataid,ea_MeterDataType.Id" Width="100%" HierarchyLoadMode="Client"
HierarchyDefaultExpanded="false" Name="MeterData">
<DetailTables>
<telerik:GridTableView AutoGenerateColumns="false" Width="100%" DataKeyNames="ea_auxiliarymeterdatavaluesid,ea_MeterData.Id"
Name="AuxiliaryMeterData">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="ea_MeterData.Id" MasterKeyField="ea_meterdataid" />
</ParentTableRelation>
<Columns>
<telerik:GridTemplateColumn UniqueName="ea_auxiliarymeterdataname" HeaderText="Auxiliary Meter Data Name"
HeaderStyle-Width="160px">
<ItemTemplate>
<telerik:RadComboBox ID="radCmbAuxilarymeterdatatype" runat="server" OnClientSelectedIndexChanging="radCmbAuxilarymeterdatatype_SelectedIndexChanging">
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
............
..............
in parent relation i given:
DetailKeyField="ea_MeterData.Id" MasterKeyField="ea_meterdataid"
when i given like this it given error like: Cannot find column [ea_MeterData.Id].
actually i have a objectlist in that ea_MeterData is a calass in that Id is a property.
when i given same like in datakeys it accepted(see above code) but when i given in detailkeyfield it is not accepting and giving error like cannot find column
i need solution for this ASAP,
Thanks in advance
<tr class='rgFilterRow'><td><input> <-- Textbox<input> <-- Filter Control Button