logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

async request data source business object widgets
porsonw
#1 Posted : Tuesday, February 07, 2012 3:30:55 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi,

All of my widgets are using async request to fetch their data source business object.

But somehow I discovered that my widgets not longer fetched their data source business object asynchronously once I have used the daynamic dashboard.

p.s. I was using the webpart control that comes with .net 4 and my widget do request their datasource object asynchronously.

anyone have any ideal?

Thanks
berkay
#2 Posted : Tuesday, February 07, 2012 3:50:37 PM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Is Update mode property of update panel in widget set conditional?
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
porsonw
#3 Posted : Tuesday, February 07, 2012 4:01:43 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Thank you for the quick reply, Yes they are all set to Conditional.

BTW, We have a licensed version 3.5 of daynamic dashboard.
berkay
#4 Posted : Tuesday, February 07, 2012 4:04:04 PM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Did you sniff the packs with fiddler ?

then we can learn that it sends async request or not .

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
porsonw
#5 Posted : Tuesday, February 07, 2012 5:07:40 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi Berkay,

I am new to Fiddler, I can't see Fiddler able to sniff the packs from my widgets.

I will be much appreciate if you can contact me directly regarding this issue, so that I can direct you to one of our test site and try it out.

thanks.
berkay
#6 Posted : Wednesday, February 08, 2012 9:32:45 AM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Hi,

i can't use teamviewer because of firewall security issue on nowadays.

Could you send me a sample project that i reproduce the issue please ?

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
porsonw
#7 Posted : Wednesday, February 08, 2012 4:23:34 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi Berkay,

I have finally found out what is causing the problem.

Each of my widget is a user control that create by (contains within) another user control that has a control called - iucon:PartialUpdatePanel.
(http://www.codeproject.com/Articles/23768/Load-and-Display-Page-Contents-Asynchronously-with)

The reason for that is we want the user sees a loading icons while the widget fetching the data. If you have time to take a look at this PartialUpdatePanel from the link above you will see how it works...

The problem was when I have put this 'layer' in between Dynamic dashboard and my widget, the Async request does not works. But if I removed this 'layer', the Async request does works.

Could you possibly tell me whether it is possible to achieve this without using that PartialUpdatePanel? i.e. user see each widget with a loading icon while the widget fetching its data.

Thank you very much for your help.....

Regards



berkay
#8 Posted : Wednesday, February 08, 2012 5:19:27 PM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Hi Porson,

First way,

You can show loading icon by using postback mask property of widget type. If you set this property in every widget type from widget types editor , every widget shows loading mask separetly.

Second way,

You can use UpdateProgress control in your widgets. There is a sample in Dashboard Editor Page in sample application .

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
porsonw
#9 Posted : Thursday, February 09, 2012 11:17:57 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi Berkay,

Thanks again for the reply.

Regarding the methods that you mentioned, do these methods apply to when the page first load, not just when the widget is doing a post back.

The ideal is when user FIRST goes to the page, all the widgets on page will show their outer panel (header) with loading icon in the middle (or something) while they fetching the data asynchronously.

The contains of each widget will then appears whoever get their data first.

Meanwhile, I will try your suggestions and see.

BTW, All of the widgets already has the Postback Mask set with 'Processing...' but I couldn't see where this postback mask appears. Everytime I refresh an indivdual widget by clicking the refresh button, I can see 'refreshing ...' but not the postback mask 'Processing...'

And when I first go to the page, the complete page doesn't appears until all the widgets have the data.

????

Regards
berkay
#10 Posted : Thursday, February 09, 2012 3:10:25 PM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Hello Porson,

If updatemode of updatepanel is conditional , widgets could not wait other widgets loading.

You can see this example from here.

There are many asynchrone widgets in this page.

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
porsonw
#11 Posted : Thursday, February 09, 2012 4:55:44 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi Berkay,

I had a look at the sample application related to the Asynchrone Widgets. Could you please let me know which one is the asynchrone widget please?

Is it the GoogleMap, Rss Reader,.... is it any of those widget with a timer control?

If so, is the timer control only used to trigger the post back to the server to check whether data is ready so the widget can do a databind?

Thanks again for the help

Regards.

berkay
#12 Posted : Friday, February 10, 2012 10:11:59 AM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Rss Reader and Silverlight widget load data asynchronously.

The Other widgets don't wait Rss Reader and Silverligt Widget loading process.

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


This page was generated in 0.116 seconds.