Please refer below scenario. I have a vertical gallery with some dynamic data. Based on selected item of gallery i am showing couple of rich text box which i am binding based on selected item. I am updating collection at onchange event of Rich text box. I am facing issue while updating the collection which i need to send to API. It works fine if i go out of control and click anywhere but doesn't work if i click on gallery item.
Attached the screenshot for the same. Please share your valuable inputs.
Could you please share a bit more about your scenario?
How do you update the Collection within the OnChange property of the Rich text box?
Do you mean that the OnChange property of the Rich text box would not be fired when you click on any item within your Gallery?
I have made a test, and the issue is confirmed on my side. I think this issue may be related to the Conflict of OnChange property and Default property of the Rich Text Editor control.
I suppose that the Default property of your Rich Text Editor control (Rich Text box) is set to following formula:
Gallery1.Selected.ColumnName /* Gallery1 represents your Gallery control, the ColumnName represents the column you want to display within your Rich Text box */
is it true?
The OnChangeproperty of the Rich Text Editor control would be fired only when thedisplay value has been changed manually within the Rich text box.
But when you click Gallery item, the result the Gallery.Selected.ColumnName formula returned would be changed, in other words, the Default value of the Rich text box would be changed. Actually, your Rich text box has been reset.
If you don't change the display value manually within the Rich Text Editor (Rich text box), the OnChange property of the Rich Text Editor control would not be fired.
Community Support Team _ Kris Dai If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your valuable inputs. yeah you understood correctly. you mentioned "The OnChangeproperty of the Rich Text Editor control would be fired only when thedisplay value has been changed manually within the Rich text box." What if user clicks on gallery item. I need to save the content entered by the user in Rich text box instead of reseting the rich text box.