Mehul Harry's DevExpress Blog

This Blog

News


Mehul Harry is the DevExpress Web Program Manager. Follow him on twitter: @Mehulharry

Subscribe (RSS, Email)

Archives

March 2011 - Posts

  • ASP.NET Popup Control - Lightweight Render, Scroll Bars, CSS3, MVC and more (available now in v2011.1)

    Check out all the great new enhancements, performance improvement and features of the DevExpress ASP.NET Popup Control, the ASPxPopupControl, that are available now in DXperience v2011.1 release:

    New Features and Performance Enhancements

    Here's an overview of what's new for ASPxPopupControl in v2011 volume 1 release:

    • ScrollBars - A new property called ScrollBars allows you to switch on the visibility of scrollbars within a popup window. Choose one of the following option values:
      • None - No scrollbars are displayed within a popup window
      • Horizontal - A popup window displays only the horizontal scrollbar
      • Vertical - A popup window displays only the vertical scrollbar
      • Both - A popup window displays both the horizontal and vertical scrollbars
      • Auto - A popup window automatically displays a horizontal or/and vertical scrollbar if its content does not fit the popup window
    • MaxWidth, MaxHeight, MinWidth and MinHeight - new properties allow you to set the maximum and minimum popup window width and height. If they are set then the popup window can not be resized beyond the sizes set by these properties.
    • CSS3 shadows and semantic rendering improvements! Read on for more info…

    Semantic Render Improvements

    Lightweight render has been enabled for the ASPxPopupControl using semantic HTML. Learn more about semantic rendering on our previous announcement.

    A new property called RenderMode allows you to choose between rendering modes: Classic and Lightweight. The Lightweight mode gives you performance advantages:

    ASPxPopupControl Semantic Render Comparison

    (Performance tests done with Internet Explorer using our Aqua theme)

    Other Controls Benefit Too: GridView, HTML Editor & TreeList!

    Because the ASPxPopupControl is used within our other controls, they get the benefits of the Lightweight rendering mode. We have enabled lightweight render for:

    • ASPxPopupControl and ASPxPager by default in ASPxGridView
    • ASPxTreeList (customization windows, popup edit forms, filter builder)
    • ASPxHtmlEditor (all dialogs)

    So these controls will have lighter rendering when this feature is released in the DXperience v2011 volume 1 release.

    MVC Extensions Benefit Too!

    The Lightweight render feature will also be available in our ASP.NET MVC Popup extensions. In fact, the Lightweight semantic rendering will be the default for our ASP.NET MVC Popup extension.

    CSS3 Shadows

    With the new Lightweight render mode, we have also used CSS3 to implement shadows for our ASP.NET PopupMenu and PopupControl (WebForms and MVC!). Take a look at the shadows of the Popup control and Menu here:

    DevExpress ASP.NET Popup Control - CSS3 Shadow DevExpress ASP.NET Popup Menu - CSS3 Shadow

    One warning about the Lightweight render mode's CSS3 shadows: They work in all browsers except IE8 and earlier but you can use Classic mode instead.

    The good news is that now the lightweight controls have CSS3 shadows which were missing in the last DXperience v2010.2 release.

    Available now in v2011 volume 1

    These ASPxPopupControl features and enhancements are available now in the DXperience v2011 volume 1 release.

    What do you think of all these great PopupControl features and enhancements?

    Drop me a line below with your thoughts, thanks!

    Build Your Best - Without Limits or Compromise

    Try the DevExpress ASP.NET MVC Extensions online now: http://mvc.devexpress.com

    Read the latest news about DevExpress ASP.NET MVC Extensions

    Download a free and fully-functional version of DXperience now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

  • ASP.NET File Manager - Validate File Uploads and Selected File Enhancements (available now in v2011.1)

    ASPxFileManager for ASP.NETThe DevExpress ASP.NET File Manager now has more enhancements in the DXperience v2011 volume 1 release.

    Two more to be specific:

    1. Process and validate the stream of uploaded files
    2. New Server-side FileClick event

    Validate File Uploads

    We've enhanced the server-side FileUploading event so it'll give you the chance to process and validate the name and stream of the uploaded file.

    How? By adding 3 new arguments for the FileUploading event:

    • public Stream InputStream { get; } // stream of the original upload file
    • public Stream OutputStream { get; set; } // is null, but you can set this property and change the original file content on the server side
    • public string FileName { get; set; } // uploaded file name. can be changed

    FileName can be used to assign a new file name of the uploaded file.

    These new arguments will let you inspect the uploaded file's stream and name properties and decide whether the file should be allowed to upload or canceled.

    For example:

    protected void ASPxFileManager1_FileUploading(object source, 
          DevExpress.Web.ASPxFileManager.FileManagerFileUploadEventArgs e) {
       if(e.InputStream.Length > 100000) {
          e.Cancel = true;
          e.ErrorText = "Error. File size exceeds 100kb";
       }
    }

    Selected File Event Enhancements

    Two new items have been to help you deal with selected files in the ASPxFileManager:

    1. A new server-side event called SelectedFileOpened will help you process double-click and the enter key being pressed on a selected file.

    • SelectedFileOpened Event - Argument's members: FileManagerFile file - If the event has a handler function then double click on the file and Enter pressing will be processed on the server

    2. A new 'processOnServer' property has been added to the argument of client-side 'SelectedFileOpened' event. Therefore…

    // pseudo-code :)
    //
    // If server-side event has the handler then {
    //   processOnServer == true  /* by default */
    // else 
    //   processOnServer == false
    // }

    From Your Suggestions

    Since the ASPxFileManager was announced, we're received great feedback from you. And your feedback has helped improve the ASPxFileManager for the upcoming DXperience v2011 volume 1 release.

    • S36849 - ASPxFileManager - Add a new file content parameter to the FileUploading event
    • S135872 - ASPxFileManager - Implement server-side FileClick event
    • Q298718 - ASPxFileManager - Server-side event for selecting file action

    Thanks!

    DXperience? What's That?

    DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

  • ASP.NET File Manager - Download Files (available now in v2011.1)

    Check out the new 'Download File' feature of our slick ASP.NET File Manager that's available now in DXperience v2011.1 release:

    DevExpress ASP.NET File Manager's New Download File Feature in FireFox Browser

    Download Selected File

    With the next major release, your end-users will have the ability to download a selected file from the User Interface of the ASPxFileManager!

    New Toolbar Button

    A new toolbar item has been introduced: the Download button. It's hidden by default and to show it, just set:

    SettingsToolbar.ShowDownloadButton = true

    New Client-Side API

    A new client-side method and event have been added to help you with the download file feature:

    The new client-side method, ASPxClientFileManager.Download, helps you to invoke the selected file download. For example, you can call it from an external button like so:

    ASPxClientFileManager.GetSelectedFile().Download();

    There's also a new client-side event called FileDownloading which helps you to add things like a confirmation dialog:

    FileDownloading="function(s, e) {
        e.cancel = !confirm('Are you sure you want to download ' + e.file.name + ' ?');
    }"

    New Server-Side Event

    A new server-side event called FileDownloading has been added. The new event helps you work with the file stream. For example, you can use this server-side event to add a watermark to the downloaded image files:

    // Arguments members:
    // FileManagerFile File
    // Stream InputStream - stream of file from file system
    // Stream OutputStream - is null, but you can set new stream (replace original input stream) for downloading
    // bool Cancel
               
    // For example:
    
    protected void ASPxFileManager1_FileDownloading(object source, DevExpress.Web.ASPxFileManager.FileManagerFileDownloadingEventArgs e) {
        if (IsImageExtension(e.File.Extension))
            e.OutputStream = AddWatermarkToImage(e.InputStream);
    }

    Part of v2011 vol 1

    The new 'Download File' feature of our ASP.NET File Manager is available now with DXperience v2011 volume 1 release.

     

    What do you think of the new download file feature?

    Drop me a line below with your thoughts. Thanks.

     

    DXperience? What's That?

    DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

  • Available Online - OWASP Top 10 Web Vulnerabilities Webinar Video

    Check out the "A Run Through The OWASP Top 10 Web Vulnerabilities" webinar video presented by ASP.NET security author, Barry Dorrans.

    Webinar Video

    image

    In the webinar video , Barry covers the top 10 list of web vulnerabilities from 2010.

    It's an informative and fun webinar to watch. (And yes, that is the correct video.)

    Slides

    Download Barry's slide deck or you can view it online at SlideShare.net : Don't get stung - an introduction to the OWASP Top 10

    Click and watch Barry's webinar video here: "A Run Through The OWASP Top 10 Web Vulnerabilities"

    Then, be sure to follow his tips to secure your ASP.NET websites.

    Thanks Barry!

     

    Accept No Limitations - Voted Best Grid by readers of DevProConnections Magazine for 4 straight years

    The ASPxGridView Suite is a feature-complete grid and editors library for ASP.NET. With blazing fast data loading, extensive data shaping options, and lightweight memory footprint, the ASPxGridView allows you to deliver a highly compelling and effective end-user experience with ease.

    Go with the winner - the most decorated ASP.NET Grid Control in the market.

    Check out all the great features now: ASP.NET Data Grid and Data Editors

    Follow MehulHarry on Twitter

  • New Firefox 4 Browser Supported By DevExpress ASP.NET Controls

    Firefox version 4 has just been released today and all DevExpress ASP.NET products have been tested and verified to work with it!

    FireFox4-v

    The enhancements in features and performance are impressive:

    Firefox 4 is the fastest Firefox yet. With dramatic speed and performance advancements across the board, Firefox is between two and six times faster than previous releases. Major enhancements to the JavaScript engine make everything from startup time to page load speed to graphics and JavaScript performance screaming fast in Firefox. - Mozilla Blog

    v2010 Volume 2.6

    Firefox 4 has been in beta for a while and the DevExpress ASP.NET team has been quick to respond to your feedback by fixing reported issues.

    So use DXperience v2010 volume 2.6 release or higher when you deploy a website that maybe used in Firefox 4.

    Report Issues

    If you find a bug with our products in Firefox 4 then please let us know by reporting to the support center.

    IE9, Chrome and Safari Supported Too

    All DevExpress ASP.NET controls support XHTML, so they have the advantage of being cross-browser compatible! Therefore, our ASP.NET controls work in all major browsers including the outdated Internet Explorer 6.

    The new Microsoft IE9 browser is also supported!

    image

    Download Firefox 4 and enjoy a faster and safer web experience using DevExpress ASP.NET controls with it!

    Build Your Best - Without Limits or Compromise

    Try the DevExpress ASP.NET MVC Extensions online now: http://mvc.devexpress.com

    Read the latest news about DevExpress ASP.NET MVC Extensions

    Download a free and fully-functional version of DXperience now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

  • Socal Code Camp Interview - Multithreading with Nuri and Steve

    Check out this fun video interview I had with 2 smart and funny experts from a recent Socal Code Camp:

    Socal Code Camp Interview - Multithreading with Nuri and Steve

    Meet Nuri and Steve

    Nuri Halperin and Steve Bearman are 2 smart and entertaining .NET experts. I had the pleasure of meeting them at a recent SocalCodeCamp.

    Video Topics

    Watch the video as they discuss:

    • their sessions
    • why they present together
      • advantages of a co-presenter
    • 5 minutes into the video, we geek out and discuss multi-threading Smile
      • Issues
      • Parallelization
      • TPL - Task Parallel Library
      • Race conditions
      • Synchronization for variables
      • Multi-core CPUs

    Nuri and Steve know a ton about multi-threading and I recommend checking out any of their sessions at a future event. As you'll see in the video, they're smart and fun to watch.

    Thanks Steve and Nuri!

    DXperience? What's That?

    DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

  • CMS2Go - ASP.NET CMS Case Study

    Check out the CMS2Go video case study video about an excellent CMS built with DevExpress ASP.NET and ORM products:

    image

    Watch the video to learn about a powerful and slick ASP.NET CMS system from the original Developer, Don Wibier.

    In the video, Don explains:

    • - how the CMS2Go works
      • - it’s nice features
      • - the DevExpress ASP.NET products used
      • - why they chose DevExpress ASP.NET
    • - why it was developed
    • - when it was developed
    • - future plans

    Meet Don

    A DevExpress customer named Don Wibier had posted in our forums about a Content Management System (CMS) that he had built using nothing but DevExpress ASP.NET products. He also used eXpress Persistent Objects (XPO) for the middle layer to handle the business logic.

    Watch the video to see all the great ways that Don has leveraged DevExpress ASP.NET products to create CMS2Go.

    In Production

    I'm very impressed that CMS2Go is live and deployed for several clients of Don's employer, Concepts2Go.

    In fact, they just released their first site on this latest version of CMS2Go for their client: http://www.fairchild.nl/

    Concepts2Go

    Don works for a company in the Netherlands called Concepts2Go.com. Their website is in Dutch but don't worry, Don speaks great English and his passion for his product really shines through.

    Future Plans?

    Don and I discuss CMS2Go's future plans in the video interview.

    Concepts2Go is investigating different scenarios to make this unique and useful CMS available for ASP.NET developers.

    Contact Don with any questions or comments: twitter or email him

    Thanks Don for creating this unique CMS and showing it!

    Watch the CMS2Go video interview and then drop me a line below with your thoughts.

    DXperience? What's That?

    DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

  • ASP.NET MVC GridView - Master-detail Grid Layout (available now in v2011.1)

    Check out the new "Master-detail" layout feature of our ASP.NET MVC GridView that's available now in the DXperience v2011.1 release!:

    ASP.NET MVC_GridView_Master_Detail

    Unlimited Levels

    Our ASP.NET MVC Grid View will support master-detail data presentation of any complexity. Which means that you can nest GridViews as deep as you need or want.

    How-To Setup

    The demo above shows how to create a simple master-detail relationship between two tables. All you have to do is to:

    1. Use two DevExpress MVC GridView extensions
    2. Bind the first grid (master grid) to the master data source and enable the grid's SettingsDetail.ShowDetailRow option
    3. Place the second grid (detail grid) into the master grid's detail row template created via the SetDetailRowTemplateContent method
    4. Assign a unique (dynamically generated) name to the Name property of the detail grid and set its SettingsDetail.MasterGridName property to the master grid's name
    5. Bind the detail grid to the detail data source whose data is retrieved in a controller action based upon the corresponding master row ID passed via a ViewData parameter

    By default, end-users can expand several master rows simultaneously. You can control this behavior using the SettingsDetail.AllowOnlyOneMasterRowExpanded option.

    Available now in v2011 Volume 1 Release

    The new "Master-Detail" feature is available now in the DXperience v2011 volume 1 release.

    Are you looking forward to using the Master-Detail layout for your DevExpress MVC GridView?

    Drop me a line below with your thoughts, thanks.

     

    Build Your Best - Without Limits or Compromise

    Try the DevExpress ASP.NET MVC Extensions online now: http://mvc.devexpress.com

    Read the latest news about DevExpress ASP.NET MVC Extensions

    Download a free and fully-functional version of DXperience now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

  • DevExpress ASP.NET Products Support Internet Explorer 9 Browser

    IE9-LogoAll DevExpress ASP.NET products have been tested and verified to work on Internet Explorer 9!

    And it is Microsoft's best browser so far.

    User Feedback

    Several of our "early adopter" customers downloaded early preview builds of IE9.

    As we started getting feedback on IE9 issues, we took note and began working to fix them.

    So thanks to you, we've fixed the IE9 issues in the DXperience v2010 volume 2.6 release.

    You'll need the upcoming minor release (v2010 2.6) or greater. This build contains all the reported and discovered IE9 fixes so far.

    Report Issues

    If you find a bug with our products in IE9 then please let us know by reporting to the support center.

    Working with Microsoft

    We've been working with Microsoft and the IE9 team has been great to help us resolve issues we've reported. Thanks IE9 team!

     

    Download IE9 and enjoy a faster and safer web experience using DevExpress ASP.NET controls with it!

    DXperience? What's That?

    DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

  • ASP.NET MVC Grid View - Use Drag-and-Drop To Add/Remove Columns (available now in v2011.1)

    Check out the new "Customization Window" feature of the DevExpress MVC GridView extension in DXperience v2011 volume 1:

    ASP.NET MVC_GridView_Customization_Window

    Drag-and-Drop Columns

    The new feature allows you to drag-and-drop column from the MVC GridView on to a customization window. This customization window displays the hidden column headers.

    And it's an easy way for your end-users to customize the grid's layout:

    • To hide a grid column, drag its header to the customization window
    • To make a column visible, drag its header from the customization window back to the Grid View's header panel

    Set Popup Location

    The popup Customization window can be customized too. Use the SettingsCustomizationWindow property to specify the customization window's availability and position.

    Client-Side API

    Use the following client-side methods to control the customization window's visibility:

    • ShowCustomizationWindow()
    • HideCustomizationWindow()
    • IsCustomizationWindowVisible()

    Enable With One Line

    To enable the customization window feature, just set the SettingsCustomizationWindow property to true:

    <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
    
    <% 
        Html.DevExpress().GridView(
            settings =>
            {
                settings.Name = "grid";
                settings.CallbackRouteValues = new { Controller = "GridView", Action = "CustomizationWindowPartial" };
                settings.ClientSideEvents.CustomizationWindowCloseUp = "grid_CustomizationWindowCloseUp";
                settings.Width = Unit.Percentage(100);
                settings.SettingsCustomizationWindow.Enabled = true;
                settings.Settings.ShowGroupPanel = true;
    
                settings.Columns.Add("ContactName");
                settings.Columns.Add("CompanyName");
                settings.Columns.Add("City");
                settings.Columns.Add("Region").Visible = false;
                settings.Columns.Add("Country");
            })
            .Bind(Model)
            .Render();
    %>

    What do you think of the "Customization Window" feature of the DevExpress MVC GridView extension? Download DXperience v2011.1 or great and drop me a line below with your thoughts.

    Thanks!

    Build Your Best - Without Limits or Compromise

    Try the DevExpress ASP.NET MVC Extensions online now: http://mvc.devexpress.com

    Read the latest news about DevExpress ASP.NET MVC Extensions

    Download a free and fully-functional version of DXperience now: http://www.devexpress.com/Downloads/NET/

    Follow MehulHarry on Twitter

1
2
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners