If I load the data of the datachart in a method called by a setInterval or setTimeout it shows only one serie. I have got a simple code, that displays two series together from static data. I had put it into a method you could see here.
If I call the code directly from ig.loader() with a simple call, it shows both of the series.
If I place the call in a setTimeout or setInterval it displays only one.
$.ig.loader(function () { setTimeout(function () { allDone(); }, 1);
});
Somebody please help me with this,
Is there anything I can add to describe my problem more precisely?
I'd like to draw a chart with at least two series, called by a setTimeout or setInterval method. Everything is in the called function as you can see on pastebin.
Someone please pay attention to my problem. Now I think that this is a bug in igDataChart or IgniteUI.
Thenk, Peter
Hi Peter,
Could you please provide your pastebin code for me? I am receiving an "Unknown Paste ID" error when I click on your link.
Sorry, I forgot to close this topic. The problem was that I wrote 'Height' and 'Width' instead of 'height' and 'width' when giving its sizes. So watch for the letter case!
I'm fully satisfied with this control now, only one problem left: https://ko.infragistics.com/my-account/support-case/CAS-111697-M5X6C3I hope some of you can help me with this one.
Thanks for your help,
Peter
I am able to see the issue you are running into and I need some more time to research why this is occurring. I will have another update for you tomorrow.
Thank you, it works now. I was trying to use the series array differently. Initialized the chart with an empty series array and tried to push new series into it. I thought that I have to declare a complete array with all the series and then give it to the chart together. I've just realized that if I simply add them one by one, the olders remain in the set.
However, as I was searching the solution Ive realized that I used server side html helpers for ig.loader and ig.datachart. I've deleted them, so now I use pure javascript at client side, but since then my chart doesn't want to fill its space. Could you please help me with this? I hope this must me something stupid.
Please take a look at my code: http://pastebin.com/jeerxgGB
When I follow the steps you mention, I am able to see both series. I placed the code from Lazar's sample into a function, which I call from a setTimeout. When the grid displays, I can see both series. What versions of jQuery and jQueryUI are you using?
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the JS versions we are using. My test was performed using version 12.2.20122.1021 and 12.2.20122.2113 in IgniteUI 2012 Volume 2 with jQuery 1.7.2 and jQueryUI 1.8.21.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Please let me know if I can provide any further assistance.
Thank you Michael. Unfortunately my pastes had been expired, but you don't need them to help me. There is a post in the other thread where Lazar attached a simple example for showing two series. If you download his rar, you will see it running well. What I would like to see is this simple example fired from a setTimeout call, displaying the same two series.
The last post in the linked thread is mine, too, with a quick sum up of the problem.