Hi,
I have an igGrid, with column moving functionality and no data in the datasource. The datasource is a JSON object. Suppose I move a column when the grid is loaded (with no rows). Later when I add data to the datasource the grid data does not change according to the columns moved.
ex:
| A | B | C | D |
___________________________________
Column B moved to D
| A | D | C | B |
Data added to datasource:
A: 4, B: 3, C: 9, D: 8
shows the following grid
| 4 | 3 | 9 | 8 |
Please advice as to how to show data according to the new column format
Thank you
Hello Bhat,
Thank you for your feedback.
I have created a case regarding your query. You could find this case and more detailed information regarding the corresponding issue in your active cases section of your Infragistics account. The path bellow is added for your reference:
http://es.infragistics.com/ -> Account -> Support Activity -> Active Cases.
All further updates concerning this case would be referred in this section.
Hi Dimka,
I worked with your example and my code and found out that if you add a column template to any of the columns, the column moving fails before databind. Attached is the sample
I am following up check if you have been able to resolve your issue. If you have more questions or concerns don’t hesitate to contact me again.
Thank you for your reply.
I have tested your scenario by using empty data source initially. I bind data after I have done column movements in advance and the records are again displayed in the correct order.
Note that in order to correctly reflect the changes (and record additions) done to the grid's data source, calling dataBind is required in this case. In order to allow me to examine this further it would be helpful to know if you are using a different version of Ignite UI in this case.
I have attached the modified sample.
Please let me know if this helps. If you have more questions don’t hesitate to contact me again.
Considering that I specify en empty datasource to the grid in the beginning. Later I populate the datasource as
products[0] = { "ProductID": 1, "Name": "Adjustable Race", "Distributor": "Danny Ltd.", "Quantity":12, "Price":23 };
Now how to reflect this data on the grid without rebinding or using igGrid('dataBind') ?