I have a grid set up using json data.
This basically gives my keys matching text values for my columns. What I want to do is force all keys to be sequential numbers. Its ok if it has to be strings as long as they are numbers. How can I achieve this?
Hello Seang,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best regards,
Martin Pavlov
Infragistics, Inc.
support@infragistics.com
Thank you for posting in the community.
You have 2 options to create column definitions with sequential keys:
Option 1: Create the column collection with iteration construct (for example: for iterator) prior to initializing igGrid.
Option 2: Use the autoGenerateColumns option and set it to true.
Attached you can find sample demonstrating both approaches.
Do not hesitate to contact me if you have any additional questions.