Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
CellEditing Behavior of Band Programmatically
posted

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 =

 

true;

 

 

//Accounting Period Begining Date

 

 

EditingColumnSetting AccountingPeriodBeginingDate = new EditingColumnSetting(whdgTaxPeriod.GridView);

AccountingPeriodBeginingDate.ColumnKey =

 

"AccountingPeriodBeginingDate";

AccountingPeriodBeginingDate.EditorID =

 

"dpTaxPeriodBeginingDate";

cellEditing.ColumnSettings.Add(AccountingPeriodBeginingDate);

 

 

//Accounting Period Ending Date

 

 

EditingColumnSetting AccountingPeriodEndingDate = new EditingColumnSetting(whdgTaxPeriod.GridView);

AccountingPeriodEndingDate.ColumnKey =

 

"AccountingPeriodEndingDate";

AccountingPeriodEndingDate.EditorID =

 

"dpTaxPeriodEndingDate";

cellEditing.ColumnSettings.Add(AccountingPeriodEndingDate);

 

 

//Accounting Period Days

 

 

EditingColumnSetting Days = new EditingColumnSetting(whdgTaxPeriod.GridView);

Days.ColumnKey =

 

"AccountingPeriodDays";

Days.ReadOnly =

 

true;

cellEditing.ColumnSettings.Add(Days);

Parents
No Data
Reply
  • 37874
    posted

    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.

Children
No Data