Prevent grid flickering using Ajax?

0 Answers 40 Views
Ajax Grid
Top achievements
Rank 1
Mircea asked on 30 Aug 2021, 04:44 PM | edited on 30 Aug 2021, 04:46 PM


I have a RadGrid and when adding anew record, there are some of cascade dropdown. Once a selection is made in "Record Type", then the dropdown below, "Sub-Type" rebinds to the data source and displays only relevant records.

Code below (it works correctly, I am just adding it as a reference to understand the issue I am experiencing):

Protected Sub RecordType_SelectedIndexChanged(ByVal sender As Object, ByVal e As DropDownListEventArgs)
    Dim combo As RadDropDownList = TryCast(sender, RadDropDownList)
    Dim container As GridEditableItem = TryCast(combo.NamingContainer, GridEditableItem)

    Dim workProductCombo As RadDropDownList = TryCast(container.FindControl("SubTypeDropDown"), RadDropDownList)
    If Not workProductCombo Is Nothing Then
      SqlDataSource7.SelectCommand = "SELECT [Sub_Type] FROM [Record_Sub_Type] WHERE [id]=(SELECT [ID] from [Record_Type1] where [Record_Type]='" & combo.SelectedValue & "') OR [ID]=0 ORDER BY [Sub_Type] ASC"

    End If

  End Sub

Action on grid when adding new record:


Everything works correctly but.... grid is flickering when dropdown selection triggers a data source rebind. How to avoid this? I tied to "ajaxify" the grid as follows, but no result.

  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
      <telerik:AjaxSetting AjaxControlID="RadGrid1">
          <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>



Attila Antal
Telerik team
commented on 01 Sep 2021, 12:32 PM

Since you have a formal support ticket submitted for the same issue, I suggest that we investigate the problem there, and once we found the solution we share it in the forum as well.

No answers yet. Maybe you can help?

Ajax Grid
Asked by
Top achievements
Rank 1
Share this question