Hello
I'm facing some problems using the hierarchical grid.
Here's my scenario :
I have a Hierarchical RadGrid which is using a source of self referencing objects.
Here's the definition of the class :
Depending on my WCF Data, I'm builing an IList of NomenclatureHierarchy and I have a recursive method to populate each one of them.
I'm setting a PropertyRelation on the _Sous_menu property and dynamically bind each column to each member of the donnees_grilleBO class.
Everything works as expected so far, I have a N-deep hierarchical RadGrid.
I'm working now to add the possibility to add records from the grid, using insert and delete key.
It works fine at the first level, but hitting the Insert Key when I'm focusing one of the sublevels only causes the focus to be lost, the addingnewitem event isn't being raised at all.
What would be the correct way to add an item on a sublevel ? (and of course, create a sub level on a row when there isn't one )
I'm facing some problems using the hierarchical grid.
Here's my scenario :
I have a Hierarchical RadGrid which is using a source of self referencing objects.
Here's the definition of the class :
public class NomenclatureHierarchy |
{ |
public NomenclatureHierarchy(donnees_grilleBO menu) |
{ |
_menu = menu; |
_sous_menu = new List<NomenclatureHierarchy>(); |
} |
public donnees_grilleBO _menu; |
public donnees_grilleBO _Menu { get { return _menu; } } |
List<NomenclatureHierarchy> _sous_menu; |
public List<NomenclatureHierarchy> _Sous_menu { get { return _sous_menu; } } |
} |
Depending on my WCF Data, I'm builing an IList of NomenclatureHierarchy and I have a recursive method to populate each one of them.
I'm setting a PropertyRelation on the _Sous_menu property and dynamically bind each column to each member of the donnees_grilleBO class.
Everything works as expected so far, I have a N-deep hierarchical RadGrid.
I'm working now to add the possibility to add records from the grid, using insert and delete key.
It works fine at the first level, but hitting the Insert Key when I'm focusing one of the sublevels only causes the focus to be lost, the addingnewitem event isn't being raised at all.
What would be the correct way to add an item on a sublevel ? (and of course, create a sub level on a row when there isn't one )