Radgrid need to refresh only particular columns at regular interval

5 posts, 0 answers
  1. Raj
    Raj avatar
    34 posts
    Member since:
    Jan 2012

    Posted 27 Aug 2015 Link to this post

    Hi all,

    i am in project, now i am in critical phase..

    my scenario : Radgrid needs to refresh at regular interval, but not whole grid, it should refresh particular columns.

     In Details:

    Consider

    B1 is buyer1

    B2 is buyer2 and so on.

    S is seller.

    S(Seller) wants to sell a product through online and he can Negotiate Rate to different Buyer(B1,B2 and so on) at same time.

    i am using grid control to display Buyers details to seller

    Grid Contain:

    Sellers's Grid
    Buyer Name*, Product Name*, Product's First Rate*, Seller's Rate**, Buyer Rate*$
    Buyer's Grid
    Seller Name*, Product Name*, Product's First Rate*, ​Buyer's Rate**, Seller Rate*$​

    * --> Label

    ** --> Textbox

    $ --> Columns needs to refresh

    Seller will entry his rate in Seller's Rate in Grid, after entering the rate immediately it should be display in Buyers Gird(Seller Rate Column).

    i can able to fetch the rate in grid, using timer control. the problem is, it refresh whole grid.

    while seller trying to enter rate in grid, due to refresh of grid, Seller not able to enter rate at the time of timer control triggers.

     

    it is possible to refresh particular column in grid without affecting other columns. 

    Most importantly, it is possible refresh the Buyer Rate column and enter the value in Seller's Rate column at same time in Seller's Grid.

     

    It you have solution,help me

     Thanks in Advance.

     

    Regars

    ASRK.....

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    2316 posts

    Posted 31 Aug 2015 Link to this post

    Hi,

    Please note that RadGrid is a complex control and needs to be updated as a whole. It is not possible to update only some of the columns. When rebinding the grid, all data will be refreshed.

    In order to prevent the control from updating while the user edits a value you can temporarily disable the Timer control. The following stackoverflow thread describes how you can stop and start a Timer.



    Regards,
    Viktor Tachev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Raj
    Raj avatar
    34 posts
    Member since:
    Jan 2012

    Posted 01 Sep 2015 Link to this post

    Thank u viktor Tachev
  4. Kiran
    Kiran  avatar
    40 posts
    Member since:
    Oct 2018

    Posted 13 May Link to this post

    Hi,

    Can you please let me know if there is a way that we can stop flickering on the page every time the radgrid refreshes?

     

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">             <AjaxSettings>                 <telerik:AjaxSetting AjaxControlID="Timer1">                     <UpdatedControls>                         <telerik:AjaxUpdatedControl ControlID="RG_OPERATORS" ></telerik:AjaxUpdatedControl>                     </UpdatedControls>                 </telerik:AjaxSetting>             </AjaxSettings></telerik:RadAjaxManager>

     

     

    <asp:Panel ID="Panel1" runat="server">             <asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer1_Tick" >             </asp:Timer>             <asp:Timer ID="Timer2" runat="server" Interval="1000" OnTick="Timer2_Tick" >             </asp:Timer>         </asp:Panel>

     Public Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick         RG_OPERATORS.DataSource = Nothing         RG_OPERATORS.Rebind()     End Sub

     

        Protected Sub Timer2_Tick(sender As Object, e As EventArgs)         If hfFlash.Value = "1" Then             hfFlash.Value = "2"         Else             hfFlash.Value = "1"         End If         RG_OPERATORS.DataSource = Nothing         RG_OPERATORS.Rebind()     End Sub

  5. Attila Antal
    Admin
    Attila Antal avatar
    322 posts

    Posted 16 May Link to this post

    Hi Kiran,

    Please examine the following demo that shows how to use a Timer for refreshing the grid while using AJAX to avoid refreshing the entire page (this stops the flickering): AjaxManager - Ajaxify Timer

    Kind regards,
    Attila Antal
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top