Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hello,
                                    im using DXGrid with instant feedback. The code is like this(dirty one for now, needs some refactoring):

                                     public partial class BrigadeScheduleListView : UserControl
                                        {
                                            Entities mainModel = EntitiesFactory.CreateEntity();

                                            public BrigadeScheduleListView()
                                            {
                                                InitializeComponent();

                                                GridList.View.WaitIndicatorType = WaitIndicatorType.Panel;

                                                this.DataContextChanged += (s, e) =>
                                                {
                                                    ((BrigadeScheduleListViewModel)this.DataContext).AllItemsList = new LinqInstantFeedbackSource()
                                                    {
                                                        KeyExpression = "BRIGADE_SCHEDULE_ID"
                                                    };
                                                    ((BrigadeScheduleListViewModel)this.DataContext).AllItemsList.GetQueryable += OnGetQueryable;

                                                    GridList.ItemsSource = ((BrigadeScheduleListViewModel)this.DataContext).AllItemsList;
                                                };
                                            }

                                            private void OnGetQueryable(object sender, GetQueryableEventArgs e)
                                            {
                                                e.QueryableSource = mainModel.BRIGADE_SCHEDULES;
                                                e.Tag = mainModel;
                                            }
                                        }

                                    My task is to save changed row to the database when its checked in the grid. I have a command on check so that i can execute it in the view model class. To get selected row and assign it to my objects that i use in view model class i used FocusedRowHandleChanged which now is not firing.. Changed it to FocusedRowChanged and NewRow is now of object[] type that cant be converted to entity type BRIGADE_SCHEDULES.. So to save the changes i'll have to query database by ID from that object[] and change the query result with parameters from object[]?!..
                                    What i try to say is: doesnt grid in instant feedback mode have change tracking of its rows? Can i use inplace editors in it to make the changes(didnt find any examples on this topic..Just how to fill grid with server mode/instant feedback mode ON and nothing about data editing)?
                                    Thank you.

                                0

                                Hi Tea,

                                It is difficult to clearly diagnose this problem without being able to reproduce it locally.
                                Instead, use the TableView.RowUpdated event to track updates.
                                If it does not help, please provide us with a sample that illustrates your issue.
                                We will examine it and do our best to help you.

                                Thanks,
                                Andrew

                                0

                                Hello,
                                cant find any sample on instant feedback with saving changes. Can you provide a sample that shows how to fill LinqInstantFeedbackSource, track changes in gridcontrol, send that changes to database?
                                TableView.RowUpdated is not firing too...
                                Thank you.

                                0

                                Hi Tea,

                                Thank you for your clarification. The issue is clear now.
                                The LinqInstantFeedbackSource datasource is read-only.
                                It is necessary to use the XPServerCollectionSource source to provide data-editing facilities.

                                Thanks,
                                Andrew

                                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