This is a migrated thread and some comments may be shown as answers.

Radgrid need to refresh only particular columns at regular interval

4 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 27 Aug 2015, 06:54 AM

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.....

4 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 31 Aug 2015, 01:44 PM
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
0
Raj
Top achievements
Rank 1
answered on 01 Sep 2015, 11:02 AM
Thank u viktor Tachev
0
Kiran
Top achievements
Rank 2
answered on 13 May 2019, 01:02 PM

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

0
Attila Antal
Telerik team
answered on 16 May 2019, 07:13 AM
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.
Tags
General Discussions
Asked by
Raj
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Raj
Top achievements
Rank 1
Kiran
Top achievements
Rank 2
Attila Antal
Telerik team
Share this question
or