Unplanned
Last Updated: 04 Feb 2024 09:49 by piccolo
Jeremy
Created on: 11 Aug 2023 14:12
Type: Bug Report
0
UI-Bold, UI-Italic, UI-Strikethrough cannot be unset with RefreshUI(). Bug?

Hi,

I’m developing a .NetFramework extension for Fiddler and am finding an issue with clearing bold, italic, strikethrough on the session text in the session list when using “this.session.RefreshUI()”. I’d like to be able to see these changes occur upon a context menu item click, immediately within Fiddler, without having the reload the sessions or the application. I can see the session flags are removed from the session as expected, but the bold, italic, or strikethrough is not unset.

I’m aware there is an option to Mark, Unmark sessions, but this doesn’t fit integrate closely enough with the extension I am developing or do exactly what I would like.

I seem to have no issues with changing the UI-Backcolor or UI-Color and refreshing for the updates to be immediately seen.

I can set UI-Bold, UI-Italic, UI-Strikethrough, but I cannot unset these with RefreshUI().

Is this a bug? Is the RefreshUI() call not doing something for UI-Bold, UI-Italic & UI-Strikethrough which it does do for UI-BackColor and UI-Color?

Thanks,

Jeremy.

4 comments
piccolo
Posted on: 04 Feb 2024 09:49

Hi,jeremy

I want to rewrite a plugin to achieve functionality similar to the Composer menu in Fiddler. However, I don't know which DLL file contains the source code for the Composer menu. Do you know?

Jeremy
Posted on: 27 Aug 2023 20:57

Yes I have tried that approach.

That mechanism does indeed remove the session flag as well as the way I wrote in my example.

Either way though I cannot get the UI refresh to occur and show the update on the session list.

ADMIN
Nick Iliev
Posted on: 14 Aug 2023 07:20

Hello Jeremy,

 

Try to remove the flag through the Remove method

this.session.oFlags.Remove("UI-BOLD");

 

 

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jeremy
Posted on: 11 Aug 2023 15:01

Code sample which works fine:

this.session = session;
this.session["UI-BACKCOLOR"] = "#BDBDBD";
this.session["UI-COLOR"] = "#000000";
this.session.RefreshUI();

Code sample which does not work:

this.session = session;
this.session["UI-BOLD"] = null;
this.session.RefreshUI();