In my MVC Helper, I'm assigning an object with 4 properties to the igCombo.DataSource, and referencing those properties by name in igCombo.ItemTemplate string, as the examples show.
However, it seems that the helper, during rendering, strips the datasource of all properties except the one's assigned to "TextKey" and "ValueKey", or, if neither is assigned, the first property in the datasource. Is this by-design? If so, how do I get around it?
The control renders perfectly if I pass the datasource as json and then initialize it client-side, but once again, it seems the behavior for the MVC Helper is different than the jQuery behaivior, and the only documentation I found uses a URL as the datasource:
http://samples.infragistics.com/jquery/combo-box/templating
I suppose this is related to the value of the LocalSchemaTransform property (it should be false in your case). the issue here is that the combo does not expose this in the mvc wrapper, so you need to set this with client-side code before the control data-binds on the client, you can use the dataBinding client-side event for this:
$("#combo1").live("igcombodatabinding", function (event, args) { args.owner.options.localSchemaTransform = true; } );
hope it helps.
thanks
Angel