Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • ´╗┐Hello,


                                    I have a similar case like in this topic http://www.devexpress.com/Support/Center/p/Q338568.aspx,

                                    but I want to do this with the popupcontrol so a user would be able to edit or add rows with the popup that would open although delete functionality would be outside of this.

                                    So to better explain my example I have and Edit form which has some text boxes some text areas and a grid, so this grid is another viewmodel that is actually a list property in the main model and what I want to do is that client can add and edit and delete rows.

                                    And when I save this form in the post I want to receive the main view model which has an edited list of the sub model which is was in the grid.

                                    So I have 2 issue right now:

                                    1st one was that when rendering grid partial i had a for loop there that renders hidden inputs with correct names so that model binder can bind it to the posted back main model and i found out that when I render the grid partial firstly the div that has the hidden input collection renders outside of table that is ok, but when the callbacks start to happen the div with the collection starts to render the hidden fields inside of the grids table element. So i have some duplicated hidden fields now,(If you want I can give you an example how to duplicate that)

                                    2nd one is that I haven't found any client side or server side methods that actually adds a new row with predefined values or to edit one. Maybe I haven't looked well enough.


                                    I would very much appreciate some help here.


                                    I thank you in advance,

                                    Peter

                                • Peter Klofutar 07.19.2012

                                  Hi,
                                  I just stumbled upon the SettingsEditing.Mode for PopUp what I need now is just how to handle with the 1st part.

                                You must  log in  or  register  to leave comments

                                1 Solution

                                1

                                Hello Peter,

                                Please use recommendations from the following sources to accomplish this task:

                                Grid View - Editing
                                GridView - How to add an item to a databound ComboBox in a grid EditForm

                                • Peter Klofutar 07.19.2012

                                  Hi Marion,

                                  I have done it according to the recommendations, but my issue was that I didn't want to save it on the spot so I used Session[] object in the controller actions.
                                  Thank you for the reply though.

                                You must  log in  or  register  to leave comments

                                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