Hello All,
I have a quite complex RadGrid with 3 hierarchy levels.
Data is show like below In RadGrid:
Organization1
- SubOrganization1
- SubSubOrganization1
Organization2
- SubOrganization2
- SubSubOrganization2
- SubOrganization2B
- SubSubOrganization2B
Organization3
- SubOrganization3
Organizations are referenced in RadGrid using Ids. Every Organization has it's own Id, also Sub Organizations.
Now I have noticed a problem e.g. when I read data from Database which belongs to same Organization hive but are stored in different rows in Database. Right situation is like Organization2 in picture above, wrong one is sample below.
Is it possible to prevent inserting a row that allready exits in RadGrid using ItemCreated method and insert row in proper place in hierarchy?
I can get all Ids of Item in ItemCreated method but how to check from RadGrid that row or part of it doesn't allready exists and put childs after it?
Couldn't write such code I disn't get it to work, anyone have a sample?
I try avoid to create same first or second hiearchy level items but instead put their 3th level childs nicely below one hive (like Organization2 above).
Wrong hierarchy that I get now is like following where Organization2 is two diffrent hives:
Organization1
- SubOrganization1
- SubSubOrganization1
Organization2
- SubOrganization2
- SubSubOrganization2
Organization2 <= This is wrong!
- SubOrganization2B
- SubSubOrganization2B
Organization3
- SubOrganization3
Cheers
I have a quite complex RadGrid with 3 hierarchy levels.
Data is show like below In RadGrid:
Organization1
- SubOrganization1
- SubSubOrganization1
Organization2
- SubOrganization2
- SubSubOrganization2
- SubOrganization2B
- SubSubOrganization2B
Organization3
- SubOrganization3
Organizations are referenced in RadGrid using Ids. Every Organization has it's own Id, also Sub Organizations.
Now I have noticed a problem e.g. when I read data from Database which belongs to same Organization hive but are stored in different rows in Database. Right situation is like Organization2 in picture above, wrong one is sample below.
Is it possible to prevent inserting a row that allready exits in RadGrid using ItemCreated method and insert row in proper place in hierarchy?
I can get all Ids of Item in ItemCreated method but how to check from RadGrid that row or part of it doesn't allready exists and put childs after it?
Couldn't write such code I disn't get it to work, anyone have a sample?
I try avoid to create same first or second hiearchy level items but instead put their 3th level childs nicely below one hive (like Organization2 above).
Wrong hierarchy that I get now is like following where Organization2 is two diffrent hives:
Organization1
- SubOrganization1
- SubSubOrganization1
Organization2
- SubOrganization2
- SubSubOrganization2
Organization2 <= This is wrong!
- SubOrganization2B
- SubSubOrganization2B
Organization3
- SubOrganization3
Cheers