10
Views
4
Comments
Solved
Interaction/Lihtbox  refresh the list on close

Hello i am uisng lightbox to dispaly the current selected image , i have one list , i am binding this list to table in that table there is eye icon on clicking on eye icon i am displaying the current image , but in lightbox if i close this my table gets refreshed . i want to restrict the refresh on close.

Can anyone suggest me solution for this .


if i click on that image it will be open in lightbox and zoom option but i clicked on cancel icon on that lightbox , the Documents name list gets refreshed. it should not refreshed.

2026-06-20 17-43-43
Sherif El-Habibi
Champion
Solution

Hello,

You can try adding "disable-url" to the ExtendedClass property of the lightbox.


2023-02-28 05-45-34
Bharat koshti

Thanks it works ...

2023-02-28 05-45-34
Bharat koshti

here i am facing one issue from this list if i select first image and open i can see first image but if i open second or third image in that condition i am not able to see the current selected image i can see agaian first image after this change. current selected image is visible only for second and it replaced with first one..

2026-06-20 17-43-43
Sherif El-Habibi
Champion

I think this happens because when the refresh is disabled, the screen state is preserved. When you select the first image and close it, the index of that image is still kept. For example, if you click the first image, which has index 0, and then close it, normally the screen would refresh. If you then click the second image, the index would change according to the currently selected image, so the second image would have index 1.

The core idea here is that you have to handle this behavior explicitly or manually. What you need is a small amount of extra work. First, this image is created inside a block, and this block has an input parameter, let us say DocumentID. Inside the main screen, you place this block, and on the OnClick of the image you pass the document id.

Then, inside that block, you get the document binary file itself and convert it to a URL using BinaryToURLImage. Still inside the same block, you add your lightbox, but this time you pass the URL of the previously converted image. Here, it is important to use a separate entity for the document files, because you are going to need to refresh this entity in OnParametersChanged every time you select another document id.

I attached screenshots with the steps that you can use as a reference.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.