Looking for server-push to client...

12 posts, 0 answers
  1. Mark
    Mark avatar
    52 posts
    Member since:
    Sep 2007

    Posted 01 Oct 2007 Link to this post

    I'm new to RadControls to please bear with me if this is a simple question. 

    I'm looking for a mechanism in which the server (ASP.Net app) can send notifications to the client controls to refresh themselves.  For instance a browser might be display a datagrid.  Rather than polling the server, the datagrid remains static until some event on the server triggers a notification to be sent to the client control to refresh itself. 

    Do the telerik controls provide a solution for this situation?  I'm no ajax expert, but I'm wondering if an ajaxified control can listen and respond to server notifications, sort of like a long running callback.

    Thanks!
    Mark
  2. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 03 Oct 2007 Link to this post

    Hi Mark,

    I don't believe communication triggered by the server-side can be achieved in the web world -- you can still achieve the desired effect via an ajaxified timer control (either Telerik's, or the ASP.NET AJAX one for example) but of course the communication would be triggered by the client-side and the server would respond to the requests accordingly.

    Greetings,
    Bart.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark
    Mark avatar
    52 posts
    Member since:
    Sep 2007

    Posted 03 Oct 2007 Link to this post

    I was thinking about this some more as I read about the Ajaxmanager and the timer controls.   There are definite holes in my ajax knowledge, but what's the possibility of a process like this could work?

    1. A hidden control on the dashboard page initiates a callback to a webservice with userid parameter.  The webservice adds the callback sessionid to a correlation table along with the passed in userid, then leaves the callback session open.   This hidden ajaxified control would block, but shouldn't affect the rest of the page.
    2. Meanwhile some server-side process (db trigger, etc)  recognizes when data has changed requiring the client to be refreshed.  In that case it checks the correlation table to identify the currently open callback sessionid associated with the userid, then returns a refresh notification to the hidden control, still blocking waiting for a response.
    3. The hidden control receives the server's response, then causes the appropriate page controls to refresh.  
    4. Finally the hidden control starts the process again by calling back into the webservice.

    I'm making these assumptions:

    1. A callback session can be identified with an id (or some other way)
    2. A webservice in the same domain can come along and randomly communicate with an open callback session if it knows the it's id
    3. A callback session wont timeout after blocking for an indefinite period
    4. The webservice being called into wont itself block.  I could see lots of blocking webservice instances choking the server.
    5. The complexity and any performance hits wont be a greater load than simply polling the the timer.  My goal is to prevent unnecessary polling when nothing has changed server side.

    Thanks for your thoughts
    Mark

  5. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 17 Jan 2008 Link to this post

    Mark,

    If you just need to keep the session alive, any standard Ajax call should do this since it does a complete postback on the server.  As such, if you have an Ajax call triggered by a timer, the session will stay alive.
  6. seriallabs
    seriallabs avatar
    3 posts
    Member since:
    Apr 2008

    Posted 10 Apr 2008 Link to this post

    I believe you might be interested in the "comet" paradigm. "Comet" is another word for "ajax push". I'm new to this too and I'll find it great if Telerik could work in this field.

    If you need a push server, you might consider a solution like lightstreamer

    Their website explains the technology and provide some white papers ...
  7. Patrice Boissonneault
    Patrice Boissonneault avatar
    18 posts
    Member since:
    Mar 2010

    Posted 30 May 2011 Link to this post

    Hi,

    I'm looking for a similar solution.  It's been almost 2 years from the last post in this thread, I'm wondering if Telerik has added such feature or solution to this problem?

    Thanks.

    P
  8. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 31 May 2011 Link to this post

    Hi Patrice,

    Have you considered using an asp Timer in combination with our ajax manager or panel for the purpose discussed in this forum thread? We have a couple of live demos which illustrate how this can be done:

    http://demos.telerik.com/aspnet-ajax/ajax/examples/common/ajaxifytimer/defaultcs.aspx

    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/aspajaxgridapplication/defaultcs.aspx?product=grid

    Greetings,
    Sebastian
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  9. Patrice Boissonneault
    Patrice Boissonneault avatar
    18 posts
    Member since:
    Mar 2010

    Posted 01 Jun 2011 Link to this post

    Hi Sebastien,

    The samples you mentionned are still "pull" model since the refresh is being trigerred by the client and not the server.

    For anyone else following this thread, I've actually found a .Net comet server which seems to be answering this need, it is called WebSync (http://www.frozenmountain.com/websync/)

    I'm actually suprised that Telerik is not aware of them as they specifically say on their web page that they integrate with Telerik!

    Seems promissing, will give it a try.

    P
  10. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 02 Jun 2011 Link to this post

    Hi Patrice,

    Thank you for letting us know about this solution which uses reversed Ajax technology and initiates refreshes which are triggered on the server. Feel free to use this method and let us know about the result when integrated with our AJAX components.

    Best regards,
    Sebastian
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  11. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 02 Jun 2011 Link to this post

    Very interesting... worth a check.

    I've got a live chat system that relies on frequent "pings" back to the server, which I wish I wish I didn't have to do so often.  They're as light-weight as possible, but they still have to come in very frequently in order for the chat to remain live.

    Thanks for posting this.
  12. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 20 Nov 2012 Link to this post

    Hi

    Has anyone had any success with this approach?

    Andy
  13. Patrice Boissonneault
    Patrice Boissonneault avatar
    28 posts
    Member since:
    Nov 2009

    Posted 20 Nov 2012 Link to this post

    Andy, we implemented WebSync pubsub to push not only a 'refresh yourself' message (we did that first, but that was killing our servers), but the full data to be displayed.  Check it out, this is a great piece of software.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017