Replies
Hi,
While saving the data of a new row, I need a value of a parameter which is available in a hidden variable (ApplicationID) which is my master record.
- Is there any option that, I can pass this hidden value as a parameter to my UpdateUrl method so that I can use it while saving the new record in DB? OR
- Is there any option that, the moment I hit add new row at that time I will save my required parameter value a in a hidden column so that I can get it as t.row.ApplicationID
In my scenario I have auto increment Primary key, what is the recommended way to handle auto incremented primary key when adding new row. Right now when I hit add row it looks that it takes first missing id from sequence and put it. In actual scenario it should be some empty string and after saving gird should be rebinded, it automatically select the correct primary key data.
If I need to open a separate thread for it please let me know.
Thanks for your help.
Regards
Shoaib
Thanks Micheal. Now at least I am able to see the grid and its data. Hopefully achieving rest of the grid features would not be that painful.
One small question, is it possible to hit breakpoint in controller for the jQuery call ?
Regards
Shoaib
Hi Micheal,
I already update the suggested code in EF but the result is same. When I check the network traffic it is giving a different error "Uncaught TypeError: $(…).igGrid is not a function"
Is it possible for you to update my sample code and share.
Regards
Shoaib
Hi Michael,
Can you please suggest why the grid is not showing up ?
Thanks
Shoaib
I am able to resolve the circular reference issue so at least website is not giving runtime error but still my iggrid doesn’t show any data. Below commented line is the culprit for circular reference.
//.Grid(Model.ApplicationVersion).Grid<ApplicationVersion>()
Please download the sample project from the following link (1drv.ms/1KQ5ANe). This is a very simple Master(Applications) and Detail(Application Version) page. Please follow the below steps to setup the project and regenerate the issue
- Restore the DB, (OTTestDB.bak)
- Open the solution in VS 2013. Enter the password for the OTTestDBEntities connection string in web.config
- Click on Applications Menu and edit first record
You will see a page with some header info but no detail data in iggird. Right now I am just trying to bind some records to the grid. Ultimatly I want to give the same functionalities to my grid which are available on http://www.igniteui.com/grid/basic-editing
I would really appreciate if you can identify the issue in my project and add some basic functionality to it.
Regards
Shoaib
Can you please provide some direct email address so that I can share files there ?
I am sorry that post doesn't help me.
If you see in my controller code there is no JSON call/code, that method is a ActionResult for Edit. If you can exactly point out the issue in code then I would be very thankful considering that I am very new in JSON.
Just to recap. I would like to bind the data to a Editable Infragistics gird. Data is returning from my business layer using EF. My ViewModel is composed of two objects (Header and Detail). I am binding detail object to the grid.
Thanks
Shoaib