Hi,
In my cshtml, I have this code:
<
table id="grid1"></table>
I want to use javascript to bind the grid:
script type="text/javascript">
$(
$('#DistID').change(function () {
var selectedId = $(this).val();
autoGenerateColumns:
false,
'#grid1').igGrid({
columns: [
{ headerText:
"Order Number", Key: "OrderId", dataType: "number"
}
],
width:
'500px',
dataSource: dSource
});
</script>
And this is my Json data:
[{\"OrderId\" : \"300210\"},{\"OrderId\" : \"300140\"}
I don't why the grid does not display any data. Am I missing something? Can you please help me? Thanks!
I believe that this is the solution you are looking for:
For more details on this as well as a proposed alternative solution, you can check out my reply to your other thread: http://community.infragistics.com/forums/p/67562/341867.aspx#341867
Tried it but did not work? What else can it be?
maybe you should change "Key" to "key" (lowercase). Hope it helps
Angel