Set the SaveButtonEnabled property on a parent form doesn't work resulting in the enabled option not being turned back on

Setting theSaveButtonEnable property on a parent form in a ValueChanged event doesn't change the enabled property on screen. This form within a data form extension
We are currently evaluating this issue and will update this article when we have more information

Steps to Duplicate

1. Setup a dataform extension.
2. Add similar code to the below

' This event handling does change the state of the Save button to disabled and a caption of "Save me"

Public Class SellStockExtensionAddDataFormCustomUIModel

Private _parentModel As StockSaleByTransactionAddFormUIModel

Private Sub SellStockExtensionAddDataFormCustomUIModel_HostModelChanged(sender As Object, e As HostModelChangedEventArgs) Handles Me.HostModelChanged

If _parentModel Is Nothing Then

_parentModel = DirectCast(Me.HostModel, StockSaleByTransactionAddFormUIModel)

_parentModel.SaveButtonEnabled = False

_parentModel.SaveButtonCaption = "Save me"

End If

 

End Sub

' But the state on the Save button doesn't change to Enabled in the ValueChanged event handler(s)

Private Sub _numberofunits2_ValueChanged(sender As Object, e As ValueChangedEventArgs) Handles _numberofunits2.ValueChanged

_parentModel.SaveButtonEnabled = True

End Sub

3. Attempt to run it. Note the value of enable doesn't change correctly

Environment

 Blackbaud Infinity SDK
 4.0
 4.0.155.0

Was this article helpful?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.