Hi guys, i am having another problem this time -adding row programatically..
so i am using jquery-1.9.1.min, jQuery UI - v1.10.3 and ignite ui version 13.2.
to solve the problem i did tried to change the jquery files to older ones, or declare the iggrid component inside a table or div element.
when changing the jquery files to older ones, there was always some kind of problem, like a combo box that didnt load..
i also tried to declare the grid inside a div or table element...following this toppic:
http://es.infragistics.com/community/forums/p/76295/385579.aspx#385579
and according to this topic i should declare the iggrid component inside a table tag..
or if i want to use the div, i should change the call, acording to this link below..
http://help.infragistics.com/Help/NetAdvantage/jQuery/2012.2/CLR4.0/html/Known_Issues_and_Limitations_2012_Volume_2.html#_Ref321736823
on my view i initialy had this:
@inherits WebViewPage@using Infragistics.Web.Mvc;@{ Layout = "~/Areas/Idonic/Views/Shared/_Layout.cshtml";}
@(Html.Infragistics().Grid(Model))
and then on a button click i call this
$("hierarchicalGrid").igGridUpdating("addRow", { var1: var1, var2: var2 }); $("hierarchicalGrid").igGrid("commit");
after reading some toppics i change the view to this
@inherits WebViewPage@using Infragistics.Web.Mvc;@{Layout = "~/Areas/Idonic/Views/Shared/_Layout.cshtml";}
i also tried with the code above and remove the td and tr elements..
$("#grid1").igGrid("widget").igGridUpdating("addRow", { NomeEmpresa: sNomeDaEmpresa, Nif: sNif, Tipo: sNivelDeAcesso }); $("#grid1").igGrid("widget").igHierarchicalGrid("commit");
http://igniteui.com/grid/editing-api-events -> this example use the same js and css files dependencies and this works, i think that the problem is related to the fact that i am using ighierarchicalgrid with load on demand??
but still the error appears, what could be the issue.?
how can i add the html code as text, and not as html components?
thanks
Hello Sergio Joyce,
Thank you for posting in our forums!
As you are using our MVC Helpers, you should not be concerned with using a div vs. a table. The Helper will render the grid in a table automatically and you should not need to make an modifications to the DOM.
The following example may be more suited for demonstrating your needs since it uses the MVC Helper with the igHierarchicalGrid with Load On Demand:
http://igniteui.com/hierarchical-grid/aspnet-mvc-helper
Could you also please clarify what you mean by "adding the html code as text and not as html components" in your update?
Looking forward to hearing from you.