Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
125 views

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"/> 
Stanimir
Telerik team
 answered on 18 Jul 2011
1 answer
257 views
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>
Simon
Telerik team
 answered on 18 Jul 2011
1 answer
183 views
Hi i have a Rad script manager on my master page but im having trouble using the client side api in pages that use the master page e.g. the $find('someid'); doesn't work and returns null.

I think the problem is the script is present in the DOM but it is not finding the Rad controls on the page.

Is there any way to use the script manager from the master page or should the script manager be placed on each page separately?

Thanks Andrew
Simon
Telerik team
 answered on 18 Jul 2011
1 answer
1.1K+ views
Hi I am using the telerik version Q2 2010 SP2 . using Visual Studio 2010. whenever i try to load the page which is using RadControls for ASP.NET AJAX Q2 2010 SP2 . I am getting the Following Error. Do you have any Idea why I am getting this error.

Server Error in '/EDWICD10' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

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.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.ScriptEntrySlot.GetSerializedAssemblyInfo(ScriptEntry scriptEntry) +208
   Telerik.Web.UI.ScriptEntrySlot.SerializeScriptEntry(ScriptEntry scriptEntry) +71
   Telerik.Web.UI.ScriptEntryUrlBuilder.TryAddScriptEntry(ScriptEntry scriptEntry) +56
   Telerik.Web.UI.ScriptEntryUrlBuilder.RegisterScriptEntry(ScriptEntry scriptEntry) +239
   Telerik.Web.UI.RadStyleSheetManager.Page_PreRenderComplete(Object sender, EventArgs e) +373
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8933914
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Simon
Telerik team
 answered on 18 Jul 2011
1 answer
100 views
Hi,
when converted asp.net dropdown with 2500 listitem to radcombobox performance has degraded a lot . Can someone help me how to improve the item selection?
Cat Cheshire
Top achievements
Rank 1
 answered on 18 Jul 2011
3 answers
60 views
Hello Telerik,

We upgraded from the 2011 Q1 to the 2011 Q2 release yesterday and noticed that the following functionality in the RadComboBox has changed.

We create our own server control (SingleSelectRadComboBox) that derives from RadComboBox:

public sealed class SingleSelectRadComboBox : RadComboBox, ISingleSelectRadComboBox

In the constructor, we have the following properties set:
/// <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";
 
}

When we bind data to the RadComboBox using the Q1 release, the first item that was bound is selected in the dropdown and the SelectedIndex property is 0.  When we switched to Q2, the data is bound properly, but the SelectedIndex property is -1.

If we comment out the following three lines of code in our default constructor the control works the same between releases.
EnableTextSelection = true;
MarkFirstMatch = true;
EmptyMessage = "Select...";

I assume that this change is related to the following comment in the release notes:
  Added: Improved EmptyMessage to show regardless of the value of the AllowCustomText and EnableLoadOnDemand properties

Was the change I describe an intended or unintended side effect of the Q2 release?

Thanks!!
Thad
Simon
Telerik team
 answered on 18 Jul 2011
3 answers
69 views
I have a grid which I generate serverside, and bind clientside. I perform paging serverside. The grid has 14 columns, all of type string. I use the following snippet to bind data to the grid.
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();
};

where result.Items is in the format of:
var Items = [{ "Heading1": "Row1-1", "Heading2": "Row1-2", "Heading3": "Row1-3"},
            { "Heading1": "Row2-1", "Heading2": "Row2-2", "Heading3": "Row2-3"}];

With 14 headings, and however many rows (between 10 to 50 for a single page).

The problem I'm having is with the speed of binding. When binding 10 items, it takes a fraction of a second. Binding 20 items takes 2 seconds. Binding 50 items shoots up to 13 seconds, and well out of usability. I don't have any custom events tied to the databinding event, this is all internal processings, and I have absolutly no idea whats causing it.

Are there any tools I can use to profile the internals, to see exactly what is causing the binding to take so long?
Genti
Telerik team
 answered on 18 Jul 2011
3 answers
460 views
Hi,

I'm working on a project that has a lot of JavaScript files that are referenced in the masterpage. I'm rebuilding a new version of a site and reusing the same scripts and RadScriptManager in the MasterPage. The old site had used CompositeScript to combine the scripts. When I ported it to the new site's MasterPage I get a warning:

   RadScriptManager does not have a public property named CompositeScript

Because of this warning my designer file does not get updated in my web application project and therefore I get IntelliSense issues. If I merely comment out the CompositeScript block my designer file updates as expected and IntelliSense works fine.

I'm using the exact same Telerik DLL from the first site. The version is 2009.3.1208.20. We cannot upgrade this version as other things in our solution require this specific version (it specifically has to do with the CMS we're using and its dependence on Telerik.). Is there a way for me to fix this issue? I know the composite script feature works because on the front-end it does combine the scripts into ScriptResource.axd so I'm trying to figure out why I get this issue which breaks my IntelliSense.

Thanks in advance.
Simon
Telerik team
 answered on 18 Jul 2011
4 answers
233 views
Hi,

I have a Grid with parent child relation like below:

<

 

 

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

Ramakrishna
Top achievements
Rank 1
 answered on 18 Jul 2011
3 answers
90 views
I'm struggling with a custom skin in my filter row

So the markup is
<tr class='rgFilterRow'>
<td>
<input>   <-- Textbox
<input>   <-- Filter Control Button

The question is how to get the button to line up with the right side of the filter row with a fixed width, and have the textbox fill the remaining space...

Doable?
Sebastian
Telerik team
 answered on 18 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?