Auto-refresh RadGrid

10 posts, 1 answers
  1. Prad
    Prad avatar
    35 posts
    Member since:
    Apr 2008

    Posted 21 May 2008 Link to this post

    Does Telerik RadGrid (Win Form) have any auto-refresh property?

  2. Answer
    Kiril
    Admin
    Kiril avatar
    158 posts
    Member since:
    May 2013

    Posted 21 May 2008 Link to this post

    Hello PRADEEP,

    Thank you for writing.

    Could you please clarify what's the scenario where you need to automatically refresh the RadGridView? Is the auto-refresh triggered by an outside event, such as a change in the dataset you're binding to, sorting, filtering, grouping or a change in the user interface of the component?

    There is a High Refresh example in the RadGridView section of the Examples application. It shows the case where changes in the data source bound to the component triggers a refresh of the data shown by the RadGridView at a very high rate.

    Please give me more information about your scenario to enable me to provide a more accurate response.

    Greetings,
    Kiril
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center

  3. Paul
    Paul avatar
    5 posts
    Member since:
    Mar 2009

    Posted 27 Mar 2009 Link to this post

    I am in need of some help on this one.

    I have a radgrid that is bound to a dataset. At some point i update the dataset with new information but it doesn't update in the radgrid unless i switch the page or manually refresh using the refesh button/F5.

    I have tried using rebind() but to no avail.

  4. Sebastian
    Admin
    Sebastian avatar
    9798 posts
    Member since:
    Sep 2012

    Posted 30 Mar 2009 Link to this post

    Hello Paul,

    Is it possible that there is AJAX involved here? In case you ajaxified the grid via RadAjaxManager, ensure that you set the grid instance as an updated control via the corresponding RadAjaxManager setting(s).

    In case the control resides inside MS UpdatePanel or RadAjaxPanel, test whether moving it outside of the panel makes a difference.

    Best regards,
    Sebastian
    the Telerik team


    Check out Telerik Trainer , the state of the art learning tool for Telerik products.

  5. Paul
    Paul avatar
    5 posts
    Member since:
    Mar 2009

    Posted 30 Mar 2009 Link to this post

    It is sat inside an Ajax Update Panel. I'll try your suggestion.

    Thankyou

  6. Paul
    Paul avatar
    5 posts
    Member since:
    Mar 2009

    Posted 30 Mar 2009 Link to this post

    I did as you suggested and removed the update panel but it still doesn't refresh. I even created a new blank page with nothing in except the minimal items needed to test the refresh and it still didn't refresh.

    I am using radGrid1.Rebind(); after changing the contents of my DataSet.

    ?????

    We've narrowed it down to the fact that we are binding to a dataset instead of using a direct bind to the database.

    having tried both types, it works for an SQL Coonection but not for the dataset.

  7. Sebastian
    Admin
    Sebastian avatar
    9798 posts
    Member since:
    Sep 2012

    Posted 30 Mar 2009 Link to this post

    Hi Paul,

    Can you please verify that you are using advanced binding with NeedDataSource handling for your grid?
    This should ensure that the control will be bound implicitly when some built-in operations take place and will be refreshed explicitly when you invoke its Rebind() method. More information on the lifecycle of our web grid can be gathered from these sources:

    http://www.telerik.com/help/aspnet-ajax/grdeventsequence.html
    http://www.telerik.com/help/aspnet-ajax/grdcommandsthatinvokerebindimplicitly.html

    Best regards,
    Sebastian
    the Telerik team


    Check out Telerik Trainer , the state of the art learning tool for Telerik products.

  8. Paul Taylor
    Paul Taylor avatar
    26 posts
    Member since:
    Mar 2009

    Posted 31 Mar 2009 Link to this post

    Our company has just bought rad controls so I'm answering this from a different account.

    I actually solved this by using the following in the markup

    function refreshNotes() {   
        var masterTable = $find("<%= rGridNotes.ClientID %>").get_masterTableView();   
        masterTable.rebind();  
    }  
     
     

     

     

     

    Thnx Sebastian

     

     

     

     

     

  9. BB Agrawal
    BB Agrawal avatar
    11 posts
    Member since:
    Sep 2009

    Posted 14 Jan 2010 Link to this post

    Hi There,
    I am using RadGrid control of telerik since a long time. I have an issue with sorting. I have created 5-6 usercontrols and put that on the same page. The last user control is having a RadGrid. When I click on any any header of the grid data gets sorted but that takes me to the starting of the page i.e. on the top of the page. So every time the user tries to sort data he has to scroll again to see the sorted data. Do we have any feature in telerik thru which we can avoid this?

    A quick reply is expected.

    Thanks!
    BB Agrawal

  10. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts
    Member since:
    Jul 2012

    Posted 15 Jan 2010 Link to this post

    Hi BB Agrawal,

    The original post is related to RadGrid for WinForms and this is a forum for Winforms so I would like to ask you to ask your ASP.NET Ajax related question in the respective forum.

    Thank you for your understanding.

    Sincerely yours,
    Veskoni
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

Back to Top