Note that there are some explanatory texts on larger screens.

plurals
  1. POTelerik Radgrid hierarchical detail grid edit not updating binding list
    primarykey
    data
    text
    <p>I need some help here. Here is my situation:</p> <p>I have a binding list which contains another binding list which I use as data source. below is an example:</p> <p>Objects:</p> <pre><code>public class test { public string name { get; set; } public BindingList&lt;childs&gt; childlist { get; set; } } public class childs { public string childname { get; set; } } </code></pre> <p>I populate my radgrid by code. below is a preview:</p> <pre><code>private void form_Load(object sender, EventArgs e) { BindingList&lt;test&gt; testlist = new BindingList&lt;test&gt;(); /** I populate my list with data. I wont show this here. After the list is populated: **// this.raggrid.MasterTemplate.Columns.Clear(); this.raggrid.MasterTemplate.AutoGenerateColumns = true; this.raggrid.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; this.raggrid.MasterTemplate.Columns.Add(new GridViewTextBoxColumn("name", "name")); GridViewTemplate template = new GridViewTemplate(); this.raggrid.Templates.Add(template); template.Columns.Add(new GridViewTextBoxColumn("name", "childname")); template.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; GridViewRelation relation = new GridViewRelation(this.raggrid.MasterTemplate, template); relation.ChildColumnNames.Add("childlist"); this.raggrid.Relations.Add(relation); this.raggrid.DataSource = testlist; } </code></pre> <p>The populating step works fine. But now, when the user edits the detail grid(named template from the code), I must update the binding list accordingly (named testlist from the code). I cannot seem to trigger an event when I edit the child grid. How do I achieve this?</p> <p>Note: This is a winform application</p> <p>PS: When I update the master template the binding list gets updated automatically as expected, but when I update the template I use as detail, it does not update the biding list.</p> <p>Thanks,</p> <p>Yash </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload