The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
With a Hierarchy in the grid how can I refresh a granchild relation where items have been added/deleted through ajax calls in the background?
For example in the ThreeLevelHierarchies sample if an item was added to the GrandChild DataTable how can I just refresh that part of the grid without a full postback and have the same items expanded?
Server side: Im my case I am using sql to linq and the underlying source is obtained from a ling query and is a BindingList and it is getting set when the initial page post is made and also setting the relations in the TableDescriptors.
ItemRepository is a sql to linq wrapper class that inherits from BindingList. This is important as the SourceList for the Grouping.Table will not update the underlying records if it is not a BindingList<>
helper class: public class Method { public String Method { get; set; } public int ID { get; set; } }
in aspx.cs file:
private void RefreshGrid(Method method) { DataContext dc = new DataContext(); Syncfusion.Grouping.Table itemTable = this.ScenariosGridGrouping.Table.RelatedTables["Parent"].RelatedTables["Child"];
if (method.Method == "add") { ItemRepository.ItemView itemView = new ItemRepository.ItemView(method.ID); itemTable.SourceList.Add(itemView); }
SNSridhar N Syncfusion Team February 13, 2012 12:31 PM UTC
Hi Truman,
Thanks for your interest in Syncfusion products.
We are sorry for the inconvenience caused. Currently we don't have ajax call for editing in Hierarchy grid. Could you please send us your sample so that we can analyze it and find your exact requirement and provide solution. The information provided will be great help in resolving issue.