$(
".selector"
).igGrid({
primaryKey :
"CustomerID"
});
Thanks your answer, very helpful!
After discussing this with the R&D department, I was informed that the combination of column hiding and row templates is not supported.As a matter of fact, Angel Yordanov had stated this in an earlier post in the forums: http://community.infragistics.com/forums/p/58805/324567.aspx#324567
I'll quote his reasons and the workaround (it's quite easy to do) he proposes:
"The rowTemplate option is not compatible with the column hiding feature as the template is static and will not change and if you hide/unhide columns only the headers will actually change. The rows will always be the same as defined by the template.
I see however that you want columns that are always hidden and this scenario will indeed work with the rowTemplate as long as you don't provide cells for the columns you have hidden."We'll document this in the "Known Issues" section of our documentation for the upcoming release.
Hi,I've asked my colleagues from the Developer Support to link this thread to the bug I've just opened: #103009.It's about the problem with the row template and the hidden column.About the other two problems you mentioned:
I've created a new sample which I've attached to my reply - it's based on the code you provided in your replies (thanks for beautifying it :))1. I couldn't reproduce the Selection+Updating issue: I can click on a cell to select that row and then click it again in order to edit it.
2. Sorting+Updating also seems to be working OK.Can you please take a look and if you are able to reproduce any of the two problems?(If so, perhaps it would be better to open a new thread or support ticket as the current thread will shortly be associated with the templating+column hiding issue)
Thanks for your patience and cooperation!
PS: Just a couple of tips I would like to mention:1. I noticed that you might be using the MVC wrapper for the igGrid - please note that the JS script it generates is case-sensitive (for example "Columns" should be "columns" when using the widget directly)2. Although it's not mentioned in the official API help (http://help.infragistics.com/jQuery/2011.2/ui.iggrid#options), the columns' dataTypes are only JS-based: number (instead of int and float), bool, date, string and object. I'll check with the guys so that we can have this info up for the next release.
{ headerText:
"Product Name"
, key:
"Name"
, dataType:
"string"
,hidden:
true
},
]
Hi,Nadia informed me of the issue and after investigating it, we found that your setup should work perfectly with the Service Release build (#2060).I've attached an HTML sample (and screenshot) to my reply - it's a grid that's as close as to your as I could make it.Please take a look and if the problem still persists in your page, can you please attach a sample of it in your next reply so we can inspect it?Thank you in advance!Cheers,Borislav