Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
222 views
Hi telerik-Support

I add all series manually via code-behind. The values for x-axis are dates and for y-axis are ints.
After render to the client the tool-tip shows the milliseconds of the date. You can see it on the attached file.

On code-behind I configure the series item like this:

...
lineSeries.LabelsAppearance.DataFormatString = "{1}";
lineSeries.TooltipsAppearance.DataFormatString = "{1}<br/>{0:d}";
...

How can I archive that on client side the date would be shown and not the milliseconds.

Thanks,
Christian

 
Danail Vasilev
Telerik team
 answered on 18 Sep 2013
2 answers
219 views
I have several controls which were ajaxified using RadAjaxManager and I'm now trying to download a PDF. I understand 
the issues with not being able to use Response.WriteFile (callbacks don't work...full postbacks do). I found 
the following link on your site about using the ResponseScripts collection to get around this issue, i.e.,
  
  
RadAjaxManager1.ResponseScripts.Add(String.Format(@"window.location.href = ""{0}"";", "http://yoursite.com/Your_File"));
  
This works fine...but the file appears in the existing browser window...I do not get the file download dialog.
  
Is there a way to add something similar to the following "content-disposition" header (with the attachment attribute)...so the download 
file dialog appears?  I need the downloaded file to appear in a separate window.
  
Response.AppendHeader("content-disposition", "attachment; filename = " + Path.GetFileName(fileName));
David
Top achievements
Rank 1
 answered on 18 Sep 2013
4 answers
307 views
I have searched this site a bit trying to find where someone has to have done this before with the Scheduler ????
I need a simple way to convert a recurrence rule from how it's stored in the database to a descriptive sentence such as "Occurs every Monday for the next 5 weeks"

Searching parse recurrence rule, etc. brings back nothing but people trying to re-write the recurrence rule :)

Thanks,
Kevin
Plamen
Telerik team
 answered on 18 Sep 2013
3 answers
261 views

Hi
My project is giving me massive errors on the production side now for quite some time. I have gone through so many tuts/blogs regarding padding is invalid that I can't even count them now. Would one of the telerik guys be so kind to confirm my web.config wrt to the correct references
I only have the telerik.Web.UI.dll in my bin along with the .xml Version 2008.3.1504.20
I have completely run out of solutions at this point to figuring out what the issue with the padding and webresouce errors are due to.

sample error:
Padding is invalid and cannot be removed. at http://site/WebResource.axd?d=oBsiqcMrm5nH5SAVxvosPC0Vc1ptlvEUkX9cSPr5X64Xbdi6YL-7HQHfp_UBG0aYUqgzi6PR0Wm78GIlS_x2YfJZ0VImFe6UIuHLRB723Ow1&t=633716706420000000

System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) at System.Web.UI.Page.DecryptString(String s) at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Generated by:
-----------------------------------
and
---------------------------
This is an invalid script resource request. at http://site/ScriptResource.axd?d=bh6HBmlsxIGC4XFPMrp4DPh7BlJcKL55VvtVhshd3IDfZNRv5UnaQg93PCuiDZW07NH_goVZOyPgn36ooWTrW2Dy9C4KvW5zOMaqHsKjshsa11Wf0&t=634237042885176818

System.Web.HttpException: This is an invalid script resource request. at System.Web.Handlers.ScriptResourceHandler.Throw404() at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context) at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Generated by:
---------------------------------------------------------
SAMPLE WEB.CONFIG

<?xml version="1.0"?>
<configuration>
 <configSections>
  <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />

  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
   <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
     <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
     <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
     <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    </sectionGroup>
   </sectionGroup>
  </sectionGroup>
 </configSections>
 
 <appSettings>
  
  <add key="SiteTitle" value="NAME"/>
  <add key="Telerik.Skin" value="Office2007"/>
  <add key="Telerik.Menu.Skin" value="Outlook"/>
 </appSettings>
 <connectionStrings>

 </connectionStrings>
 <system.web>
  <machineKey validationKey='FFAA4F816016807C65F85DAEE6F2A0A263D73657DAE5AEDA2773BA4E56DCCF7B1C1AF651D3052A25E7E8B67D27F32C35BD34D57782F046C86B9E3E21FE877A24' 
 decryptionKey='535CDECB1832BBC6530978A6EBC4449EC1578E24903FF8F5'
  validation='SHA1'/>
 <profile defaultProvider="Conn" enabled="true">
   <providers>
    <clear/>
    <add name="Conn" connectionStringName="aspnetconn" applicationName="/UA" type="System.Web.Profile.SqlProfileProvider"/>
   </providers>
   <properties>
   <add name="Pet" allowAnonymous="false" type="Pet" serializeAs="Binary"/>
   <add name="UserProfile" allowAnonymous="false" type="UserProfile"/> 
   </properties>
  </profile>
 
  <membership>
   <providers>
    <remove name="AspNetSqlMembershipProvider" />
    <add connectionStringName="aspnetconn" applicationName="/UA"
     name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   </providers>
  </membership>
  <customErrors mode="On" defaultRedirect="~/errors/404.aspx"/>
  <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
   <providers>
    <clear/>
    <add name="XmlSiteMapProvider"  description="Default SiteMap provider."   type="System.Web.XmlSiteMapProvider"   siteMapFile="Web.sitemap"       securityTrimmingEnabled="true"/>
    <add type="System.Web.XmlSiteMapProvider" name="LeadersSiteMap" siteMapFile="~/Leaders.sitemap" />
   </providers>
  </siteMap>
  <authentication mode="Windows" />
  
<roleManager enabled="true">
 <providers>
  <remove name="AspNetSqlRoleProvider" />
  <add connectionStringName="aspnetconn" applicationName="/UA"   name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  <remove name="AspNetWindowsTokenRoleProvider" />
  <add applicationName="/UA" name="AspNetWindowsTokenRoleProvider"   type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
 </providers>
</roleManager>
  <pages theme="HRApps" validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never">
   <controls>
    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   </controls>
  </pages>
   <compilation debug="true">
   <assemblies>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
   </assemblies>
  </compilation>
  <httpHandlers>
   <remove path="*.asmx" verb="*"/>
   <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
   <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false"/>
   <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
   <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
   <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1504.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
   <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.3.1504.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
  </httpHandlers>
  <httpModules>
   <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   <add type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" name="UrlRewriter"/>
  </httpModules>
 </system.web>
 <system.webServer>
  <validation validateIntegratedModeConfiguration="false"/>
  <modules>
   <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  </modules>
  <handlers>
   <remove name="WebServiceHandlerFactory-Integrated"/>
   <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
   <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=31bf3856ad364e35"/>
  </handlers>
 </system.webServer>
 <system.net>
  <mailSettings>
   
   <smtp from="OPS@domain.bc.ca">
    <network defaultCredentials="true" host="" password="" userName=""/>
   </smtp>
  </mailSettings>
 </system.net>
<rewriter>
 
 
</rewriter>
 
<location path="errors.aspx">
  <system.web>
    <authorization>
    <allow roles="BetaTester,Admin"/>
     <deny users="*"/>
   </authorization>
  </system.web>
 </location>
 <location path="HRAssistants.aspx">
  <system.web>
   <authorization>
    <allow roles="Admin"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
</configuration>

ST
Top achievements
Rank 1
 answered on 18 Sep 2013
3 answers
286 views
Hi,

I want to set upload file image of RadAsyncUpload (Please see screenshot)
 from code behind?
How can we achieve this?

Hristo Valyavicharski
Telerik team
 answered on 18 Sep 2013
2 answers
117 views
Hi, the issue - opening rad window with large height, or rather, when the height is greater than the browser window.

What happens is that the rad window is pushed up and the top title bar (the bar withe title and close buttons etc) is now longer visible in the browser. Even when maximising.

The issue can be reproduced here in Firefox

http://demos.telerik.com/aspnet-ajax/window/examples/minmaxsize/defaultcs.aspx

Submit a height/width of say 1500x1500.
Julian
Top achievements
Rank 1
 answered on 18 Sep 2013
4 answers
172 views
Hi,

I'm developing a web part in SharePoint and I need to use the telerik RadGrid. Because of is in SharePoint, I need target .net framework 3.5. I have a full license to buy/update Telerik controls to the latest version, but I just need to download a version compatible with .net framework 3.5 that runs inside Sharepoint.

Could you please point out what's the exact version I have to download?
Could you put also the steps to get that version?

Thanks in advance 
Slav
Telerik team
 answered on 18 Sep 2013
2 answers
529 views
I've tried several things in the CSS file to move a RadWindow's title further to the left.  But can't figure out how to do it.

Here's my layout code:

<telerik:RadWindow ID="rwDeleteMuckMoves" runat="server" Behaviors="Move" EnableShadow="true" VisibleStatusbar="false" VisibleTitlebar="true"
                   Title="Confirm Deletion" BorderColor="Black" AutoSize="true" Modal="true" IconUrl="">
  <ContentTemplate>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
        <div class="dialogMain smallText" style="width:280px; padding:5px 0 0 0">
          <div style="margin-left:auto; margin-right:auto; padding-bottom:5px; text-align:center">
            <div style="text-align:left; padding:0 0 10px 12px">
              <asp:Label ID="labelDeleteMuckMovesIntro" runat="server" />
            </div>
 
            <%--OnClientItemChecked="ControlButtonFromRadListBoxCheckboxes(this, 'buttonDeleteMMTaskOK')"--%>
            <telerik:RadListBox ID="rlbDeleteMMTasks" runat="server" Width="90%" OnItemCreated="rlbDeleteMMTasks_ItemCreated" EnableDragAndDrop="false" CheckBoxes="true">
              <ItemTemplate>
                <div class="smallText" style="text-align:left">
                  <table style="width:100%">
                    <tr>
                      <td class="muckListPrimary" style="width:68%">
                        <asp:Label ID="labelMMtitle" runat="server" />
                      </td>
                      <td style="text-align:right; width:32%">
                        <asp:Label ID="labelMMunits" runat="server" />
                      </td>
                    </tr>
                    <tr>
                      <td style="width:60%">
                        <asp:Label ID="labelMMequip" runat="server" />
                      </td>
                      <td style="text-align:right; width:40%">
                        <asp:Label ID="labelMMdist" runat="server" />
                      </td>
                    </tr>
                  </table>
                </div>
              </ItemTemplate>
            </telerik:RadListBox>
          </div>
 
          <div style="float:right; padding:5px 12px 5px 0">
            <asp:Button ID="buttonDeleteMMTaskOK" runat="server" Text="OK" Width="50" CssClass="smallText" Enabled="false" OnClick="buttonDeleteMMTaskOK_Click" />
               
            <asp:Button ID="buttonDeleteMMTaskCancel" runat="server" Text="Cancel" Width="50" CssClass="smallText" OnClientClick="HideDialog('rwDeleteMuckMoves')" />
          </div>
 
          <div style="height:20px">
              
          </div>
        </div>
      </ContentTemplate>
    </asp:UpdatePanel>
  </ContentTemplate>
</telerik:RadWindow>
Robert
Top achievements
Rank 1
 answered on 18 Sep 2013
2 answers
380 views
I have a bound grid column that has display = false. This column holds a foreign key for the row. How do you hide this column in the editformsettings when you click the "edit" command. My attached jpg has a section hi-lighted that I don't want visible to the user. This is my grid code:

<telerik:RadGrid ID="dgComboCodes" runat="server" GridLines="Both" AllowAutomaticDeletes="true"
     AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowPaging="true"
     AllowSorting="true" AllowMultiRowSelection="false" AutoGenerateColumns="false" Width="80%" AllowFilteringByColumn="true">
     <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
     <MasterTableView DataKeyNames="CORE_Business_Scenario_No,Adjustment_Reason_Code,Health_Care_Remark_Code,Adjustment_Group_Code"
         Width="100%" CommandItemDisplay="Top" HeaderStyle-CssClass="labelsMed">
         <Columns>
             <telerik:GridEditCommandColumn UniqueName="EditCmd" HeaderStyle-Width="10%"></telerik:GridEditCommandColumn>
             <telerik:GridBoundColumn Display="false" UniqueName="BS_Seq" DataField="CORE_Business_Scenario_No" HeaderStyle-Width="15%"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn Display="true" UniqueName="CARC" DataField="Adjustment_Reason_Code" HeaderText="CARC" EditFormColumnIndex="0" HeaderStyle-Width="15%"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn Display="true" UniqueName="RARC" DataField="Health_Care_Remark_Code" HeaderText="RARC" EditFormColumnIndex="1" HeaderStyle-Width="15%"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn Display="true" UniqueName="CAGC" DataField="Adjustment_Group_Code" HeaderText="CAGC" EditFormColumnIndex="2" HeaderStyle-Width="15%"></telerik:GridBoundColumn>
             <telerik:GridButtonColumn uniquename="grdDelete" CommandName="Delete" ButtonType="ImageButton" HeaderStyle-Width="3%">
             </telerik:GridButtonColumn>
         </Columns>
         <EditFormSettings ColumnNumber="3" CaptionFormatString="Edit details for CARC {0}" CaptionDataField="Adjustment_Reason_Code">
             <FormTableItemStyle Wrap="False"></FormTableItemStyle>
             <FormCaptionStyle CssClass="labels"></FormCaptionStyle>
             <FormMainTableStyle GridLines="Both" CellPadding="2" CellSpacing="0" Width="80%" />
             <FormStyle Width="80%" />
             <EditColumn UpdateText="Update" UniqueName="EditCmd" CancelText="Cancel"></EditColumn>
             <FormTableButtonRowStyle HorizontalAlign="Left" />
         </EditFormSettings>
         <ExpandCollapseColumn ButtonType="ImageButton" Display="false" UniqueName="ExpandBtn" HeaderStyle-Width="19px"></ExpandCollapseColumn>
     </MasterTableView>
     <ClientSettings>
         <ClientEvents OnRowDblClick="RowDblClick" />
     </ClientSettings>
 </telerik:RadGrid>
dhuss
Top achievements
Rank 1
 answered on 18 Sep 2013
7 answers
242 views
I've tried this in Chrome, FF, and IE and I only see the issue in IE so far.

I've modified the demo http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx to fit with my project. I am using the rowSelected method to call a PageMethod that checks the database for previously entered data.

Based on the results (true/false), if true I'll call the following (with my own message and title of course)
radalert('Radalert is called from the client!', 330, 100, 'Client RadAlert');

The alert box opens when I want it to but I can't get it to close in IE. I click on OK to close the radalert box and nothing happens. The radalert won't close.

However, if I plug the same code above in the

function pageLoad(sender, args)

portion of the page, I can close the radalert and any subsequent radalert boxes can be closed. Basically, in IE I have to open a radalert on pageLoad in order for any other radalert boxes to close when I click OK which is not what I want to do :)

Thoughts?

Thanks,
Joe

DAvid
Top achievements
Rank 1
 answered on 18 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?