Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
214 views
We have a custom control we've created for lookups using RadComboBox.  The RadComboBox portion of the custom control is created dynamically in code.

In our web page, we have a RadWindow, containing an instance of this custom control.  If you enter text in the RadComboBox, it pops up the RadComboBox's DropDownList.  If, while this DropDownList is displayed, you close or cancel out of the parent RadWindow, the RadComboBox's DropDownList remains displayed until the user clicks elsewhere on the page.

I've read that to get around this, you would attach a BeforeClose or Close Client-side Event Handler to the RadWindow, with the following code.

var control = $find("<%=RadComboBox.ClientID%>");
control.hideDropDown();

However, $find() is always returning null.  I've even tried hard coding the ID of the RadComboBox into the $find method.  I thought I'd read somewhere that if you are creating telerik controls dynamically in this fashion, then $find will not work.  Is this true?  If so, what is the work around?

I've tried variations of jQuery/javascript with show(), hide(), visibile = true/false without much luck.  The end result of those trials usually resulted in the DropDownList failing to return, or when it did, it displayed in a different part of the screen, or retained it's previous values after the RadWindow was closed/reopened.
Peter Filipov
Telerik team
 answered on 12 Dec 2014
2 answers
235 views
 I used the RadScheduler and I create the HeaderDateFormat in WeekView. Its show the format like "This Week (MM/dd) - This Week (MM/dd)"  but I want the format like
"This Week (MM/dd-MM/dd)". I send the screen shot. I want the header date format according to SB-RadSheduler.png screen shot.

Sangeeta
Top achievements
Rank 1
 answered on 12 Dec 2014
2 answers
132 views
Hi.

I´m working on a rad pivot grid but shomething strange it´s hapening. The Grid is updating well if i drag and drop fields, etc, but it´s failing at filtering. If i try to collapse a row or change a filter, then the Grid simply does not update.

It´s no problema with data, i use the same method and data in others grids and they are working perfectly. 

Any suggestion??

<telerik:RadPivotGrid ID="JiraPivotGrid" runat="server" Width="100%" Height="100%"
    AllowPaging="true" AllowSorting="true"
    EnableConfigurationPanel="True" EnableZoneContextMenu="True"
    OnPivotGridCellExporting="JiraPivotGrid_PivotGridCellExporting"
    OnCellDataBound="JiraPivotGrid_CellDataBound"
    OnNeedDataSource="JiraPivotGrid_NeedDataSource"
    OnFieldCreated="JiraPivotGrid_FieldCreated"
    >
 
    <PagerStyle AlwaysVisible="true" Position="Bottom" Mode="NextPrevAndNumeric" />
 
    <ClientSettings EnableFieldsDragDrop="true">
        <Scrolling AllowVerticalScroll="true"></Scrolling>
    </ClientSettings>
 
    <RowHeaderCellStyle BackColor="GradientInactiveCaption"></RowHeaderCellStyle>
 
    <ColumnHeaderCellStyle BackColor="GradientInactiveCaption"></ColumnHeaderCellStyle>
 
    <ExportSettings IgnorePaging="true" OpenInNewWindow="true" FileName="JiraReport" />
 
     <Fields>
         
        <telerik:PivotGridRowField  DataField="Area" UniqueName="Area" Caption="Area" />
        <telerik:PivotGridRowField  DataField="Responsable" UniqueName="Reponsable" Caption="Responsable" />
        <telerik:PivotGridColumnField  DataField="Mes_cierre" UniqueName="Mes_cierre" Caption="Mes cierre" />
 
            <telerik:PivotGridAggregateField DataField="Horas_Totales" UniqueName="Horas_incurridas" Caption="Horas incurridas" />
        <telerik:PivotGridAggregateField DataField="Horas_certificadas" UniqueName="Horas_certificadas" Caption="Horas certificadas" />
 
    <telerik:PivotGridReportFilterField DataField="Anyo_cierre" UniqueName="Anyo_cierre" Caption="Anyo_cierre" />
 
 
    </Fields>
 
</telerik:RadPivotGrid>
Guillermo
Top achievements
Rank 1
 answered on 12 Dec 2014
1 answer
84 views
Hi,

Is there an easy way to add a drop down button to this control?  I'd like to have it look like a standard rad combo box but with the ability to function as normally. In certain situations the user may need to see a list prior to selection and having to type a letter to trigger the drop down can be counter productive.

Regards

Jon
Boyan Dimitrov
Telerik team
 answered on 12 Dec 2014
1 answer
104 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
472 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
190 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
152 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
158 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
90 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?