Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
156 views
Hello,

 I'm facing some issue with the RadEditor Font Size.

When we select the font size as 72pt and type something and  it carriage return (enter key) then the font size is set to 12pt  and if you type something it is not persisting the original font which we selected initially.

Could you please provide any fix or  workaround for the same.

I did observe the same behaviour in my version of (2013.2.717.35) and also same thing the latest version as well(by running the demo)

Note: In latest version it is replicating in the Chrome browser.

Please find the attached screenshots of current using version(2013.2.717.35) in my development env and latest version.

Thanks
Kesava Pindi 
Ianko
Telerik team
 answered on 12 Dec 2014
16 answers
565 views
Hi,
Is it possible to handle the default close button on the dock controls toolbar on the server-side?
Regards
Gareth
Slav
Telerik team
 answered on 12 Dec 2014
1 answer
254 views
I have a scaffolding page with RadEditor user control. It does work 4 month age with a old version but after updating i get "Telerik is not defined" when this UC is open.

<configuration>
  <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    <sectionGroup name="system.web">
      <section name="sanitizer" requirePermission="false" type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
    </sectionGroup>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  </configSections>
  <appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
  </appSettings>
  <system.web>
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" name=".ASPXFORMSAUTH" protection="All" path="/" timeout="2880" />
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>
    <compilation targetFramework="4.5" debug="true">
      <assemblies>
        <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
      <buildProviders>
        <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
      </buildProviders>
    </compilation>
    <membership defaultProvider="CustomizedProvider">
    </membership>
    <httpRuntime executionTimeout="420" targetFramework="4.5" maxRequestLength="10000" />
    <pages styleSheetTheme="" theme="" controlRenderingCompatibilityVersion="4.0" maintainScrollPositionOnPostBack="true">
      <controls>
        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
    <webParts>
      <personalization>
        <providers>
          <remove name="AspNetSqlPersonalizationProvider" />
          <add connectionStringName="" name="AspNetSqlPersonalizationProvider" type="System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider" applicationName="/" />
        </providers>
        <authorization>
          <deny users="*" verbs="enterSharedScope" />
          <allow users="*" verbs="modifyState" />
        </authorization>
      </personalization>
    </webParts>
    <machineKey />
    <customErrors mode="Off" />
    <anonymousIdentification enabled="true" />
    <profile>
      <properties>
        <add name="LastClientUsed" type="System.String" allowAnonymous="true" />
      </properties>
    </profile>
    <sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
      <providers>
        <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider" />
      </providers>
    </sanitizer>
    <httpHandlers>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
    </httpModules>
    <sessionState mode="StateServer" timeout="90" stateConnectionString="" stateNetworkTimeout="50" />
    <webServices>
      <protocols>
        <add name="HttpSoap" />
        <add name="HttpPost" />
        <add name="HttpGet" />
      </protocols>
    </webServices>
    <healthMonitoring enabled="true">
      <rules>
        <add provider="EmailProvider" name="All App Events" eventName="All Errors" />
      </rules>
    </healthMonitoring>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
    </modules>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2014.3.1024.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="" />
      </requestFiltering>
    </security>
  </system.webServer>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="v11.0" />
      </parameters>
    </defaultConnectionFactory>
  </entityFramework>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.4.6.0" newVersion="1.4.6.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.1.0.3" newVersion="2.1.0.3" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>


I have tried so meny way to fix it but it doesn't work now.
Ianko
Telerik team
 answered on 12 Dec 2014
1 answer
224 views
Setting the ImageURL, then I get an error  "0x800a139e - JavaScript runtime error: SecurityError"

On this line,
this._initialStateData=e.getImageData(0,0,this.get_width(),this.get_height());

Coming out of ScriptResource.axd.


If I select to continue when the error is thrown it will display the image.  But it throws the error again when I try to do anything like alter the brightness for instance.
Vessy
Telerik team
 answered on 12 Dec 2014
5 answers
242 views
Howdy all!

I'm doing a major update on my project, and I hope someone can assist me with a problem I'm experiencing.

My project WAS VS 2010, Framework 3.5, Telerik 2013.2.611.35.  Now I'm moving it over to VS 2013, Framework 4.0, Telerik 2014.2.618.40.  My first pages (with text boxes and buttons, simple controls) work fine.  As soon as I hit a page with a grid though - a grid with several detail tables and an initial data source of String.Empty - I am getting the below error.

Looking at the Stack Trace, I was like 'Huh, get_Caption()'?  Went to my grid and sure enough, I'd never defined Caption.  So I defined it as Caption="" on the main table and all detail tables, and ran it again.  I got ANOTHER error of the same vein, but this time it was 'get_FilterExpression', so I formally disabled filtering.  Then I got ANOTHER error of the same vein on 'get_SortToolTip'.

My entire project is mostly grids of one flavor or another - many many many grids.  Am I going to have to define EVERYTHING on EVERY grid?  Did something go awry when I converted the project over using the wizard?  Is there something I'm missing that's new in say web.config or somewhere else?

Thanks all!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Offending URL: http://localhost:12345/GridPage.aspx Source: mscorlib Message: Could not load file or assembly 'Telerik.Web.UI.resources, Version=2014.2.618.40, Culture=en-US, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.
Stack trace:
 at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
 at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark& stackMark)
 at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark)
 at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
 at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
 at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
 at Telerik.Web.LocalizationProvider.EmbeddedResourceLocator.GetString(String resourceKey, CultureInfo culture)
 at Telerik.Web.LocalizationProvider.EmbeddedResourceLocator.GetString(String resourceKey)
 at Telerik.Web.LocalizationProvider.GetString(String resourceKey)
 at Telerik.Web.UI.GridStrings.GetString(String key)
 at Telerik.Web.UI.GridStrings.get_Caption()
 at Telerik.Web.UI.GridTableView.get_Caption()
 at Telerik.Web.UI.GridGroupPanel.CreateMainTable()
 at Telerik.Web.UI.GridGroupPanel.InitializeIn(RadGrid grid, Boolean FromViewState)
 at Telerik.Web.UI.RadGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
 at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
 at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
 at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
 at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
 at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
 at Telerik.Web.UI.RadGrid.DataBind()
 at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)
 at Telerik.Web.UI.RadGrid.OnLoad(EventArgs e)
 at System.Web.UI.Control.LoadRecursive()
 at System.Web.UI.Control.LoadRecursive()
 at System.Web.UI.Control.LoadRecursive()
 at System.Web.UI.Control.LoadRecursive()
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Viktor Tachev
Telerik team
 answered on 12 Dec 2014
1 answer
129 views
Hi,

I am developing an add-in Outlook. I created a button on the ribbon. When I click on the button I show a From. In my From I added a WebBrowser. I load a url with the method WebBrowser.Navigate("myUrl"). In this website I have a <input type=file> which use AsyncUpload for upload a file. 
My question :  Can I upload automatically a file with WebBrowser without browsing ? Giving it the source file in argument ? Is there a function for this? 

Thank you in advance.
Plamen
Telerik team
 answered on 12 Dec 2014
1 answer
465 views
My Code was working fine ....all of a sudden I am getting the following error when I tried to Build the project today .

my project has telerik.web.ui added already and everything was fine

type or namespace name 'GridBatchEditingEventArgs' could not be found (are you missing a using directive or an assembly reference?) 


The type or namespace name 'DropDownListEventArgs' could not be found (are you missing a using directive or an assembly reference


Please advise on this
Konstantin Dikov
Telerik team
 answered on 12 Dec 2014
1 answer
484 views
I keep getting this error: "Cannot read property 'get_masterTableView' of null"  every time .
I bind the Pivot grid in my C# code behind file and it displays the data just fine in the PivotGrid.

Here is my ASP code:

<script type="text/javascript">

   <telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" 
        ResolvedRenderMode="Classic"  OnCellCreated = "RadPivotGrid1_CellCreated" 
        OnCellDataBound = "RadPivotGrid1_CellDataBound" ViewStateMode="Enabled"    >
        
        <PagerStyle ChangePageSizeButtonToolTip="Change Page Size" PageSizeControlType="RadComboBox">
        </PagerStyle>
  


                  
        <Fields>
            
            <telerik:PivotGridRowField DataField="ANNEX_ID" UniqueName="column2">
            </telerik:PivotGridRowField>
            
            <telerik:PivotGridRowField DataField="CLIN_ID" UniqueName="column1">
            </telerik:PivotGridRowField>
            
            <telerik:PivotGridColumnField DataField="FY_CODE" UniqueName="column">
            </telerik:PivotGridColumnField>
            
            <telerik:PivotGridColumnField DataField="MOD" UniqueName="column4" 
                SortOrder="Descending">
            </telerik:PivotGridColumnField>
            <telerik:PivotGridAggregateField  
                DataField="FUNDING_AMOUNT" GrandTotalAggregateFormatString="" DataFormatString="{0:c}" 
                UniqueName="column5" CalculationExpression="" ZoneIndex="3">
                

                
<TotalFormat Level="0" Axis="Rows" TotalFunction="NoCalculation" SortOrder="Ascending"></TotalFormat>
                

                
            </telerik:PivotGridAggregateField>
        </Fields>

      

           
        <ClientSettings>
       
        </ClientSettings>

    function GridCellSelected(sender, args) {


        var columnName = args.get_column().get_uniqueName();

        var rowheader = args.get_gridDataItem().getDataKeyValue("[---------CLINS----------]");

        var row = args.get_gridDataItem().get_cell(columnName);

        var row_data = row.innerHTML;


        var cellInfo = rowheader.substring(0, 6) + "," + columnName + "##Data=  " + row_data + "!";


        var new_amount = window.prompt("Change Dollar amount: ", row_data);

        var result = PageMethods.Change_Funding_FROM_RadGrid(cellInfo, new_amount, onSucess, onError);


        function onSucess(result) {
            
            rload();           
            //alert(result + "-Click Blue Refresh Button to view Changes" + prev_value + "to" + new_amount);
            
            return;
           
        }

        function onError(result) {
            window.alert('ERROR [' + result);
        }

        function rload() {
       
            var tbl = $find("<%= RadPivotGrid1.ClientID%>") ;
            var master = tbl.get_masterTableView();
            master.rebind();
            location.reload();
           
        }

    }


    </script>


</asp:Content>







Konstantin Dikov
Telerik team
 answered on 12 Dec 2014
6 answers
254 views
Hi team,

I'm having trouble with the media player feature as it won't work on IE10. Every other browsers are fine (Chrome, Safari, FF) but IE10 shoot me an werror message.
Same one as the one I get when I load Telerik demo page here : http://demos.telerik.com/aspnet-ajax/media-player/examples/functionality/mediatypes/defaultcs.aspx

You'll see attache the screenshots of the error messages I'm getting. How could I / you fix this ?

Cheers,

Chris
Angel Petrov
Telerik team
 answered on 12 Dec 2014
3 answers
150 views
I have two usercontrols.
usercontrol1 uses a treeview, usercontrol2 uses a grid.
usercontrol2 should show the details of the selected item of usercontrol2

I hope to achieve this by setting the ControlParameter of the Datasource of usercontrol2

 <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:Paket %>"
        SelectCommand="SELECT * FROM [tLog] WHERE pPaketID=@pPaketID">
        <SelectParameters>
<asp:ControlParameter ControlID="ctl00$MainContent$PaketListe1$RadTreeList1" Type="Int64" Name="pPaketID" DefaultValue="0" PropertyName="SelectedValue" />
        </SelectParameters>
        </asp:SqlDataSource>

I get an error, stating that

DataBinding: Telerik.Web.UI.RadTreeList does not contain a property with the name 'SelectedValue'.


Have I done the wrong thing, made a stupid mistake or am I wanting the impossible?

thx

Gerhard
Gopi
Top achievements
Rank 2
 answered on 12 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?