I'm trying to put an all feature iggrid control using the example in the ctp download. It runs fine when I run the CTP solution. When I add the same code to an empty MVC 2 solution, I get a null reference exception when it gets to this line of code in the aspx page. What am I doing wrong?
<%
= Html.IGGrid("grid1", Model.AllFeaturesModel ) %>
= Html.IGRenderScripts() %>
I am working on Infra control for MVC and I am facing an issue in binding of grid using JSON/Jquery, On Webdropdown chnage want to bind grid with clientEvent/Server event , please suggest how can achieve this
But i am doing like this
Like in Controller
public JsonResult GetList()
{
List<ContactAddress> Users = new List<ContactAddress>
new ContactAddress
Id = 1,
Address = "john_doe",
City = "Doe",
Country = "John"
},
Id = 2,
Address = "user2",
City = "SomeLastName",
Country = "SomeFirstNAme"
};
return this.Json(Users);
}
and In view I want to bind WebDatagrid from GetList Method using JSON
$(function () {
$('#btnClick').click(function () {
$.getJSON("/Home/ GetList ", null, function (data) {
alert("1");
$("#itemsList").addItems(data);
});
$.fn.addItems = function (data) {
return this.each(function () {
var list = this;
//Here code to bind grid
Plz suggest what to have to do this n how I can achieve this(Can I can bind Webdatagrid in script using Controller JSONResult)
Hello farmstrong ,
I used the CTP samples
http://es.infragistics.com/dotnet/netadvantage/web-developers.aspx#Overview
in order to reproduce the issue.
I have added all necessary Models, Controllers and Views , I used the dll file regarding MVC 2.
Can you please upload the whole exception stacktrace?