Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,
                                    Please tell me how to add a calender picker for a column in mvc Grid.

                                    	
                                    [C#]
                                    settings.Columns.Add("Transaction"); <bold><italic>I want a date picker here</italic></bold> settings.Columns.Add("Date"); settings.Columns.Add("Amount"); settings.Columns.Add("ID"); <bold><italic> Here i added a ComboBox (down) </italic></bold> settings.Columns.Add(column => { column.Caption = "Category"; column.FieldName = "CategoryID"; column.ColumnType = MVCxGridViewColumnType.ComboBox; var comboBoxProperties = column.PropertiesEdit as ComboBoxProperties; comboBoxProperties.DataSource = ViewBag.Categories; comboBoxProperties.TextField = "Name"; comboBoxProperties.ValueField = "ID"; comboBoxProperties.ValueType = typeof(int); column.CellStyle.Wrap = DefaultBoolean.False; });

                                    	
                                    [C#]
                                    how can i add a DatePicker like i added a comboBox. Please see my screenhot also



                                Untitled.png
                                • Grizell 09.09.2013

                                  Sorry for this question.I founded the solution,I cant delete this unwanted qestion

                                • Hello,

                                  Thank you for informing us that the problem has been resolved.
                                  We would appreciate it if you post a new Answer with the valuable information and mark it as a Solution. Your question status will immediately become Closed.

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0
                                	
                                [C#]
                                <newline />

                                This is the code for making a field on a grid a calender

                                	
                                [C#]
                                settings.Columns.Add(column => { column.Caption = "Date"; column.FieldName = "Date"; column.ColumnType = MVCxGridViewColumnType.DateEdit; var DateEditProperties = column.PropertiesEdit as DateEditProperties; column.CellStyle.Wrap = DefaultBoolean.False; }); setting

                                • Mike King 10 09.13.2013

                                  Thank you for posting your solution !

                                You must  log in  or  register  to leave comments

                                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