Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
173 views

The following event fires fine when selecting a day "ClientEvents-OnDateSelected", my problem is when they select "Today" from the month view this event does not fire, is there another event that fires for this button?

Dimo
Telerik team
 answered on 06 Nov 2009
1 answer
101 views
In the upload control is there a way to take for an example a jpeg, and in the control specify that it uploads as binary?  I am using the Entity Framework and Object Data Source Controls so it would be nice if I didn't have to handle this process sepereately.
Veselin Vasilev
Telerik team
 answered on 06 Nov 2009
1 answer
106 views
Hi,
    In my RadGrid, Header Context Menu is not displayed properly in Internet Explorer(see screenshot internetexplorer.jpg). Header Context Menu works fine in Firefox(see screenshot firefox.jpg). Please let me know if this is a known issue and if there is a workaround/fix for this.

Thanks
Satyaprakash J
Dimo
Telerik team
 answered on 06 Nov 2009
6 answers
206 views
Hi,

I got a strange problem. I have designed an upload page few months ago. The upload, progress, everything works fine. But I just found recently the progress bar no longer work, but the upload still works. I am using 2008 Q3 for this project.

I create a test page on the same site, in which the progress bar doesn't work:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="TJC.elibrary.cmWizardRemoteUpload.Test" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
    <div>
        <telerik:RadUpload ID="RadUpload1" runat="server"
            AllowedFileExtensions=".mp3,.jpg" MaxFileInputsCount="1">
        </telerik:RadUpload>
        <br /><br />
        <asp:Button ID="btnSubmit" runat="server" Text="Upload" />
        
        <telerik:RadProgressArea ID="RadProgressArea1" runat="server">
        </telerik:RadProgressArea>
    </div>
    </form>
</body>
</html>


web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <configSections>
      <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
            <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
            <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
            <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          </sectionGroup>
        </sectionGroup>
      </sectionGroup>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="TJC.elibrary.cmWizardRemoteUpload.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
    </configSections>  


    <appSettings>
    </appSettings>

        <connectionStrings />
 
    <system.web>
        <!-- Required for RAD Upload 2008 Q3 Beta-->
        <trust level="Full"/>
        <!-- RAD.Upload: allow total 200MB in one upload with maxium 2 hrs uploading time -->
        <httpRuntime maxRequestLength="307200" executionTimeout="7200" />

        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions
            where data loss can occur.
            Set explicit="true" to force declaration of all variables.
        -->
        <compilation debug="true" strict="false" explicit="true">

          <assemblies>
            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          </assemblies>

        </compilation>
        <pages>
          <namespaces>
            <clear />
            <add namespace="System" />
            <add namespace="System.Collections" />
            <add namespace="System.Collections.Generic" />
            <add namespace="System.Collections.Specialized" />
            <add namespace="System.Configuration" />
            <add namespace="System.Text" />
            <add namespace="System.Text.RegularExpressions" />
            <add namespace="System.Linq" />
            <add namespace="System.Xml.Linq" />
            <add namespace="System.Web" />
            <add namespace="System.Web.Caching" />
            <add namespace="System.Web.SessionState" />
            <add namespace="System.Web.Security" />
            <add namespace="System.Web.Profile" />
            <add namespace="System.Web.UI" />
            <add namespace="System.Web.UI.WebControls" />
            <add namespace="System.Web.UI.WebControls.WebParts" />
            <add namespace="System.Web.UI.HtmlControls" />
          </namespaces>

          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          </controls>

        </pages>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Windows" />
        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
        <customErrors mode="Off" />
        <httpHandlers>
          <remove verb="*" path="*.asmx" />
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
    
          <!-- for RAD Upload-->
          <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1016.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
          <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
        </httpHandlers>
        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

          <!-- for RAD Upload-->
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
        </httpModules>


    </system.web>

    <system.codedom>
      <compilers>
        <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
          <providerOption name="CompilerVersion" value="v3.5" />
          <providerOption name="OptionInfer" value="true" />
          <providerOption name="WarnAsError" value="false" />
        </compiler>
      </compilers>
    </system.codedom>

    <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
    <system.webServer>
      <validation validateIntegratedModeConfiguration="false" />
      <!-- for RAD.Upload: the following code is to enable large file upload in IIS7 (200 MB) -->
      <security >
        <requestFiltering>
          <requestLimits maxAllowedContentLength="3072000000" />
        </requestFiltering>
      </security>
      <modules>
        <remove name="ScriptModule" />
        <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <!-- for RAD Upload-->
        <add name="ProgressModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
      </modules>
      <handlers>
        <remove name="WebServiceHandlerFactory-Integrated" />
        <remove name="ScriptHandlerFactory" />
        <remove name="ScriptHandlerFactoryAppServices" />
        <remove name="ScriptResource" />
        <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.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=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <!-- for RAD Upload-->
        <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1016.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
        <add name="TelerikRadProgress" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
      </handlers>
      <directoryBrowse enabled="true" />
    </system.webServer>

    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
          <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
        </dependentAssembly>
        <dependentAssembly>
          <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
          <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
        </dependentAssembly>
      </assemblyBinding>
    </runtime>

    <applicationSettings>
    </applicationSettings>
</configuration>



Not sure what's going on. This page is very critical to the project, please let me know how to fix it ASAP.

Thanks,
Darren

Darren
Top achievements
Rank 1
 answered on 06 Nov 2009
5 answers
273 views
Hi

I seem to be having some problems with all of the built-in skins for both the Calendar and Datepicker controls for Ajax. Irrelevant of which skin i choose I do not see any images and the width of the calendar / popup fills 100% of the width of the remaining page.

is there a fix for this sort of behaviour or am I doing something stupid? I'm using numerous other Telerik controls and they all display correctly so i'm fairly sure my setup is OK.

Thanks
Keith
Annie Vincent
Top achievements
Rank 1
 answered on 06 Nov 2009
3 answers
165 views
I have a nested RadGrid set up for In place editing.  For simplicity there is an order header and order detail.  The detail has editing capability and I can make it work but I need to update the order header after the detail is updated.  So in the detail itemCommand I do the updates manually and then do a databind() on the header which properly updates the header but leaves the detail record in edit mode.  If I remove the databind() then the detail record exits edit mode as desired but the header is not updated.   Regardless of the databind the data is being updated in the database.

I have seen many threads regarding
- making sure e.canceled is not being set to true
- allowAutomaticUpdates is set to false

Is there a way after I do a databind() on the header to close the edit mode on the nested detail record? 

Any and all help is appreciated
Joel R
Top achievements
Rank 1
 answered on 06 Nov 2009
1 answer
121 views
Hi,

I am dynamically creating columns(GridBoundColumn and GridNumericColumn). There are nearly 15-16 columns. So have added scroll bars to the Grid to avoid Page scroll bar. I got the Scroll bar for the grid but at the same time I am getting extra space after the Grid which results horizontal scroll bar to the page. Because of this entire layout has been changed.

My ASPX Code:

<telerik:RadGrid ID="RadGrid1" runat="server" Width="650px" BorderColor="#698AC0" 
                                                        BorderWidth="2px" BorderStyle="Solid" Skin="Vista" GridLines="Both" HeaderStyle-Font-Names="Verdana" 
                                                        HeaderStyle-Font-Size="9px" HeaderStyle-HorizontalAlign="Center" ItemStyle-Font-Size="9px" 
                                                        AutoGenerateColumns="false" AlternatingItemStyle-Font-Names="Verdana" AllowFilteringByColumn="True" 
                                                        CommandItemStyle-Width="50px" 
                                                        OnPreRender="RadGrid1_PreRender" OnNeedDataSource="RadGrid1_NeedDataSource" 
                                                        AllowSorting= "true" AlternatingItemStyle-Font-Size="9px" ShowFooter="true"> 
                                                        <ItemStyle Font-Names="Verdana" Font-Size="9px"></ItemStyle> 
                                                        <FilterItemStyle Font-Names="Verdana" Font-Size="9px" /> 
                                                        <MasterTableView  TableLayout="Auto" Width="650px"/> 
                                                        <ClientSettings> 
                                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"/> 
                                                        </ClientSettings>  
                                                    </telerik:RadGrid> 




My Code Behind :

protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        {    
            DataSet RebateData = GetMSRebateDS(); 
            if (RadGrid1.Columns.Count == 0) 
            { 
                if (RebateData.Tables.Count > 0) 
                { 
                    foreach (DataColumn Column in RebateData.Tables[0].Columns) 
                    { 
                        ColList.Add(Column.ColumnName); 
                    } 
                } 
                PrepareGridColumns(ColList); 
            } 
             
            RadGrid1.DataSource = RebateData; 
        } 
 
 
 
 
private void PrepareGridColumns(List<string> ColList) 
        { 
            foreach (string Column in ColList) 
            { 
                if (Column == "PartnerName") 
                { 
                    GridBoundColumn BoundCol = new GridBoundColumn(); 
                    RadGrid1.MasterTableView.Columns.Add(BoundCol); 
                    BoundCol.UniqueName = Column; 
                    BoundCol.HeaderText = Column; 
                    BoundCol.DataField = Column; 
                    BoundCol.HeaderStyle.Width = Unit.Pixel(70); 
                    BoundCol.FilterControlWidth = Unit.Pixel(40); 
                    BoundCol.SortExpression = Column;   
                    BoundCol.AllowFiltering = true; 
                } 
                else 
                { 
                    GridNumericColumn BoundNumCol = new GridNumericColumn(); 
                    RadGrid1.MasterTableView.Columns.Add(BoundNumCol); 
                    BoundNumCol.UniqueName = Column; 
                    BoundNumCol.HeaderText = Column; 
                    BoundNumCol.DataField = Column; 
                    BoundNumCol.HeaderStyle.Width = Unit.Pixel(70); 
                    BoundNumCol.FilterControlWidth = Unit.Pixel(40); 
                    BoundNumCol.SortExpression = Column;   
                    BoundNumCol.AllowFiltering = true; 
                } 
            } 
 
        } 


Help me to resolve this issue.

Thanks,
Malli


Pavlina
Telerik team
 answered on 06 Nov 2009
1 answer
63 views
Hello,

In new Q3.09
When exporting not only data to Excel I get strange empty grey buttons for the export buttons.
Refresh appear as a link ???
Seems a bug.

CS
Daniel
Telerik team
 answered on 06 Nov 2009
2 answers
114 views
Hello,

I'm trying to understand how JQuery licensing works for commercial products, specially for Telerik applications and applications using RadControls for ASP.NET AJAX set of controls.

From JQuery License statement I understand one can choose either MIT or GPL Licenses when using the library.

  1. Does it mean Telerik uses JQuery library under MIT license to make free commercial use of the library without inheriting GPL license considerations?
  2. Should JQuery licensing be a concern to RadControls users?

Thanks ahead for helping me to figure this out,

Best regards,

Maria
Maria
Top achievements
Rank 1
 answered on 06 Nov 2009
1 answer
153 views
How can I rewrite the below?

 //protected void UploadButton_Click(object sender, EventArgs e)
        //{

        //    //get the image file that was posted (binary format)
        //    if (FileUpload1.PostedFile == null || FileUpload1.PostedFile.FileName == "")
        //    {
        //        lblResult.Text = "Please Select the file";
        //    }
        //    else
        //    {
        //        try
        //        {
        //            if (FileUpload1.HasFile)
        //            {
        //                Int32 length = FileUpload1.PostedFile.ContentLength;

        //                Byte[] theImage = new Byte[length];
        //                Bitmap image = ResizeImage(FileUpload1.PostedFile.InputStream, 300, 300);
        //                // Initialize the stream to read the uploaded file.
        //                System.IO.Stream myStream = FileUpload1.FileContent;

        //                theImage = BmpToBytes_MemStream(image);


        //                // Read the file into the byte array.
        //                myStream.Read(theImage, 0, length);


        //                string fileName = FileUpload1.FileName.ToString(); //get the file name of the posted image
        //                string type = FileUpload1.PostedFile.ContentType; //get the type of the posted image

        //                //Call the method to execute Insertion of data to the Database
        //                ExecuteInsert(theImage, type, length, fileName); //Big change here using the FileUpload.FileBytes property!
        //                lblResult.Text = "";
        //                lblResult.Text = "<br>";
        //                lblResult.Text += "File Content Type: " +
        //                 FileUpload1.PostedFile.ContentType + "<br>";
        //                lblResult.Text += "File Size: " +
        //                 FileUpload1.PostedFile.ContentLength + "kb<br>";
        //                lblResult.Text += "File Name: " +
        //                 FileUpload1.PostedFile.FileName + "<br>";

        //                lblResult.Text += "Saved Successfully!";
        //                //GridView1.DataBind();

        //            }
        //        }
        //        catch (Exception Ex)
        //        {
        //            lblResult.Text += "Error: <br>" + Ex.Message;
        //        }

        //    }
        //}
Veselin Vasilev
Telerik team
 answered on 06 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?