Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I just based on a sample of MVC Extension of GridView called "Sorting", so I created a new project and migrated all aspects of this sample to my project, including the settings "settings.Width = Unit.Percentage(100);", and I got the error "CS1660: Cannot convert lambda expression to type 'DevExpress.Web.Mvc.GridViewSettings' because it is not a delegate type".

                                    Simplifing the sample I removed some stuffs from it, including the above quoted settings, and it worked.

                                    When I uncomment the line with the above settings on the view GridPartial.cshtml the error occur, when it's commented the error doesn't occur.

                                    What I done wrong to make the full sample to run on my project ?

                                    Regards,

                                    Luciano

                                DevExpressMvcApplication1.zip
                                0

                                Hello Luciano:

                                I assume that this error is related to the fact that the Unit object is undefined.
                                Please change this settings as follows:

                                settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);

                                Thanks
                                Kate.

                                To start a chat you should create a support ticket


                                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, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

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