I have enabled CellEditing Behavior for WebHierarchical Grid Parent and tried to enable cell editing for child bands by setting EnableInheritance as true but it did not work.
Please suggest me a solution to this issue.
I am using Infragistics 10.3 Version and using C # and following is the code:
DatePickerProvider dpTaxPeriodBeginingDate = new DatePickerProvider();
dpTaxPeriodBeginingDate.ID =
"dpTaxPeriodBeginingDate";
whdgTaxPeriod.EditorProviders.Add(dpTaxPeriodBeginingDate);
DatePickerProvider dpTaxPeriodEndingDate = new DatePickerProvider();
dpTaxPeriodEndingDate.ID =
"dpTaxPeriodEndingDate";
whdgTaxPeriod.EditorProviders.Add(dpTaxPeriodEndingDate);
EditingCore behavior = whdgTaxPeriod.GridView.Behaviors.CreateBehavior<EditingCore>();
behavior.EnableInheritance =
true;
CellEditing cellEditing = behavior.Behaviors.CreateBehavior<CellEditing>();
cellEditing.EnableInheritance =
//Accounting Period Begining Date
EditingColumnSetting AccountingPeriodBeginingDate = new EditingColumnSetting(whdgTaxPeriod.GridView);
AccountingPeriodBeginingDate.ColumnKey =
"AccountingPeriodBeginingDate";
AccountingPeriodBeginingDate.EditorID =
cellEditing.ColumnSettings.Add(AccountingPeriodBeginingDate);
//Accounting Period Ending Date
EditingColumnSetting AccountingPeriodEndingDate = new EditingColumnSetting(whdgTaxPeriod.GridView);
AccountingPeriodEndingDate.ColumnKey =
"AccountingPeriodEndingDate";
AccountingPeriodEndingDate.EditorID =
cellEditing.ColumnSettings.Add(AccountingPeriodEndingDate);
//Accounting Period Days
EditingColumnSetting Days = new EditingColumnSetting(whdgTaxPeriod.GridView);
Days.ColumnKey =
"AccountingPeriodDays";
Days.ReadOnly =
cellEditing.ColumnSettings.Add(Days);
Hi MeghaDawagni1,
It has been some time since your post but in case that you still need assistance I will be happy to help.
I tested your code using NetAdvantage 10.3.20103.2217 and 11.2.20112.1019 but I was not able to reproduce your issue. In order to be able to investigate the matter further I would need to know the precise version of NetAdvantage that you are using in your implementation.
If you have any other questions please feel free to contact me.