# Widget doesnt update after Drag and Drop Operation

**URL:** <https://forums.unrealengine.com/t/widget-doesnt-update-after-drag-and-drop-operation/391921>\
**Category:** UI\
**Tags:** drag-and-drop, unreal-engine, bug-report, Widget, question, UMG\
**Created:** [April 25, 2017, 11:28pm UTC](https://forums.unrealengine.com/t/widget-doesnt-update-after-drag-and-drop-operation/391921 "2017-04-25T23:28:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b3639a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b3639a6](https://forums.unrealengine.com/u/anonymous_user_4b3639a6)\
**Post date:** [April 25, 2017, 11:28pm UTC](https://forums.unrealengine.com/t/widget-doesnt-update-after-drag-and-drop-operation/391921/1 "2017-04-25T23:28:49Z")

</div>

Hey guys.

I have a weird issue here.

After I drag and drop my custom UUserWidget it doesnt seem to be updated anymore.

My Widget contains an UOverlay which holds an Image and a TextBlock.  
It represents an Inventory Item which can be stacked.

When I drag an Item of the same type to another one they will be stacked together and the TextBlock updates itself

EDIT: Flip flopping the Visibility from Hidden to Visible still seems to work. But setting the Text does nothing anymore

A few Images to visualize my problems:

This is the default view of my Grid

![135621-img1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/1/fe14ec290685066303856a2ef7f9a82085933fb9.png)

Now I drag the a medikit to the last one. The Text of the last one updates and shows 2

![135622-img2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/d/26df6f5981e17c2fcb16f4c97e7e404f980af2dd.png)

Now I drag it to another slot at the bottom

![135623-img3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/7/e3735316434fc43b240df8151dc62b6ba28f8704.png)

Finally I drag another Item into the one at the bottom, but the Text doesnt update anymore. (The Text should be “3”)

![135624-img4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/c/f8cbe982c20a50e8f6925616bc74ce07ceb3e68d.png)

I googled this issue and found a Bug Report, but it is stated as resolved.

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-31777)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

and

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-32910)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

I hope someone can help me with that problem  
Thank in advance for your answers 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 26, 2017, 2:14pm UTC](https://forums.unrealengine.com/t/widget-doesnt-update-after-drag-and-drop-operation/391921/2 "2017-04-26T14:14:03Z")

</div>

Hello ,

I have reopened the issue dealing with widget not updating after dragging and dropping them. I hope that this helps.

Link: [Unreal Engine Issues and Bug Tracker (UE-31777)](https://issues.unrealengine.com/issue/UE-31777)

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b3639a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b3639a6](https://forums.unrealengine.com/u/anonymous_user_4b3639a6)\
**Post date:** [April 26, 2017, 2:30pm UTC](https://forums.unrealengine.com/t/widget-doesnt-update-after-drag-and-drop-operation/391921/3 "2017-04-26T14:30:10Z")

</div>

Cool thank you 🙂  
Maybe I can help by providing some more information I gathered through debugging.  
I just saw that the problem exists because the Widget doesnt rebuild itself anymore  
When I close my Inventory and reopen it the Text shows the right number.  
This happens after RebuildWidget is called.  
Unfortunately it’s a protected function so I cannot test my supposition.

Anyway thank you for reopening the issue 🙂

---

<div class="post-metadata">

**Author:** ![Death\_wyrm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Death\_wyrm](https://forums.unrealengine.com/u/Death_wyrm)\
**Post date:** [May 18, 2017, 11:50am UTC](https://forums.unrealengine.com/t/widget-doesnt-update-after-drag-and-drop-operation/391921/4 "2017-05-18T11:50:43Z")

</div>

I have found a work around for this until it gets fixed (works in 4.13.2). But when you drop the widget, get the widget that is being dragged, get its class, and make a new widget from that. Then add that to the canvas/viewport and set its position.

If you have any variables which reference the widget you are moving, you are going to need a function that takes an input of the user widget, casts through all the available references you have until you find the right one, and sets the new widget to be that (and maybe does a refresh of the inventory as well for good measure).
