I am having great difficulty in getting the igGrid working in a VS2012 MVC4 solution using IgniteUI 2013.1.
Please would someone help by posting a link to an example solution so I may evaluate the product.
Many thanks
Hello Mark,
Ignite UI installs two Visual Studio Project Templates by default for MVC3 and MVC4 applications.
They include the Ignite UI JavaScript files as well as a reference to Infragistics.Web.Mvc.dll.
You can use them to jump start in evaluating the product.
Hope this helps,Martin PavlovInfragistics, Inc.
Martin
Thanks for your prompt response, however the basic solution compiles, but crashes on running.
I really want to see how all these controls work, but now have spent more than 24 hours trying to get a simple application to work without success no matter what I try.
Please advise
Hi Martin
I have been successful in getting the igGrid into my sample application.
I am battling in finding sample code to show how to update the database with changes made in the RowEditTemplate - the grid updates with the changes.
I would like the grid AND database to be updated as soon as I press the "Done" button on the pop-up dialog box.
Any suggestions?
You can check the Batching updates sample in order to see how to process the updated data server side.
In order to post the changes to the server when the "Done" button is clicked you can use the igGridUpdating.rowEditDialogClosed event and call igGrid.saveChanges API method.
Attached you can find a working sample demonstrating this. You just need to reference the Infragistics.Web.Mvc.dll.
Good Morning Martin
I have tried to make sense of your suggestion without a certain amount of success.
I am getting a compile error in my Index.cshtml when adding the action buttons.
<button id="saveChanges" value="@this.GetGlobalResourceObject("Grid", "SAVE_CHANGES") "></button> <button id="undo" value="@this.GetGlobalResourceObject("Grid", "UNDO") " /></button> <button id="redo" value="@this.GetGlobalResourceObject("Grid", "REDO") " /></button>
Compiler Error Message: CS1061: 'ASP._Page_Views_Client_Index_cshtml' does not contain a definition for 'GetGlobalResourceObject' and no extension method 'GetGlobalResourceObject' accepting a first argument of type 'ASP._Page_Views_Client_Index_cshtml' could be found (are you missing a using directive or an assembly reference?)
Is there any way that I may send you the associated Controller, Model and View for your perusal?
As this is fundamental in our development decision and whether we should be using the IgniteUI product I would appreciate assistance in this regard.
Thanks in advance.
Mark
Furthermore to my previous question, is there any way of updating the database on pressing the 'DONE' button on the edit template rather than processing all amended rows in a batch update, as this is a fundamental business requirement of ours?
If you check out my sample igGridSample.zip attached to my previous post you'll see that the changes to the grid are posted automatically on the server when the user presses the "Done" button. You don't need to create "Save", "Undo" and "Redo" buttons. In the sample also check the controller code and more specifically the "SaveData" method in order to see how the record is persisted on the server side. The code is updating a List of objects, but with the database will be the same.
What is the overhead on returning all database rows and then filtering them via your criteria - is it not better to reduce the initial number of rows?
As we have in excess of 3000 customers, it struck me that we may come up with a performance issue returning the entire list of customers.
Your thoughts would be appreciated.
Please disregard my previous emails of today as I have resolved the issue and have it working fine.
Sorry to have troubled you.
With reference to my last response I attach the Model, View and Controller for your perusal.
Good Afternoon Martin
I have been through the attached solution relating to the TextEditor and Grid filtering, however the solution compiles, but does not work.
I think it may be due to the following error and would appreciate assistance with this issue.
Thanks