iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have dashboard same picture attach, use chart as a usercontrol.
If I edit form 1 ( column chart to pie chart) --> refresh in form 1, (form 1 is pie chart now). But when I edit form 2 but it not refresh in form 2 , and it still refresh form 1. And I have to press F5 to load page. The result don't change from 1 and change form 2. I want to refresh each chart.
Please help me
Thanks,
vantu
<script type ="text/javascript" >////code javascriptfunction refreshChart(){ var grid = ISGetObject("WebGrid1"); grid.ChartInteractiveUI.RefreshChart(); }</script>
/// code close and refresh form
string script = @"<script language='javascript'> if (self.opener!=null && self.opener.document!=null && self.opener.document.forms[0]!=null) { self.opener.refreshChart('" + Instance.Id + @"'); self.close(); } </script>"; Response.Write(script);
"Instance.Id" this is id of the form need edit
I tried to reproduce the problem in our local test by creating a simple test page that has structure similar to the one that shown in your attached screenshot and then tried to refresh each chart. My efforts were not successful – everything worked smoothly and I can have each chart refreshed respectively.
I modified Chart_FirstExperience.aspx reference sample file and add three chart-grid to the form page. I also add four html input buttons that are used to trigger/invoke ChartInteractiveUI.Refresh() method.
I’m willing to advice you further but in order to do so I would need you to elaborate on your specific scenario and possibly give us a running simple sample that replicates the issue or step-by-step guide that can be used to observe the problematic behavior.
Hello,
I need to confirm something about your scenario. Is your scenario using only 1 WebGrid?If yes, normally, if you use WebGrid1.RefreshAll(), WebGrid would refresh include the charting data.If this also does not help, please try to use below code.
grid.RefreshAll(); window.setTimeout(function(){ grid.ChartContainer.innerHTML = ""; InitializeWGChart(grid.Id);}, 1000);
Regards,Handy
@Yudi, Handy Surya
Can you see my question again?
Regards,
Vantu
Hi Vantu,
I am sorry but please be more detail. Do you read my previous posted? I need to clarify the scenario before can suggest you something.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname