Hi,
I am using iggrid 2012.2. I want to load the grid with data from a $ajax() call with the same effect when specifying the datasource as url such as load the header first and display the Image and once data is back bind and display. I tried to bind the grid with null as datasource and once the $ajax() call returns data rebind using the below methods $("#grid1").igGrid('option', 'dataSource', mydata); $("#grid1").igGrid('dataBind');. Assume that I need to do some processing on the data to make it in the bindable form that is the reason I am not using the datasource as url. I have the following Issues/Questions. Please help
1) For some reason, the field alignment goes wrong, noticed each field is taking a little bit more than the width specified for the column.2) How do I get the loading Image when the async call made and waiting for response
Thaks,
Benny
Hello Benny,
I am so far unable to observe the described behavior while changing the grid's datasource on the success stage of an AJAX callback. Can you provide me with some additional information regarding the specific 12.2 build used in this scenario in order to allow me to test this in identical conditions ? Any samples or code snippets relevant to the scenario would be greatly appreciated.
Regarding your second question, igGrid currently does not expose methods for showing/hiding its ajax indicator. It should be possible however to display a custom indicator by showing it when initiating the AJAX call, and hiding it at the success handling stage.
Please do not hesitate to contact me with any updates or questions.