I keep on setting which columns I was at the top folder within the document (removing some standard ones and adding others) but it keeps re-setting. This is a lock down document but apart from that I cant see any options to set the default columns within the menu?
Similarly, I couldn't see a reference in the scripting section about if this is setable as a default config in a JSON file. Is this the case?
Thanks
Best Answer
S
Stefan Koell
said
over 3 years ago
I haven't tested it myself but in theory you just need to escape this string for json and put it into the DetailsGridLayout property:
can you clarify (maybe with screenshots) what column layout you are referring to?
Thanks, Stefan
C
Charlie B
said
over 3 years ago
Sure. This is on the dashboard/folder views.
In this example I have added the column "IP Address" and would also remove "Plugins" for example, but this does not persist between launches
Stefan Koell
said
over 3 years ago
The layout of the grid is stored in the code4ward.RoyalTS.UserPreferences.config (in %appdata%\code4ward) file in the DetailsGridLayout property. The data/format (XML) is basically the serialization of DevExpress' grid configuration. You can inspect the content of the property after you configured it how it should look and apply that using the configuration system as described here:
Charlie B
Hi,
I keep on setting which columns I was at the top folder within the document (removing some standard ones and adding others) but it keeps re-setting. This is a lock down document but apart from that I cant see any options to set the default columns within the menu?
Similarly, I couldn't see a reference in the scripting section about if this is setable as a default config in a JSON file. Is this the case?
Thanks
I haven't tested it myself but in theory you just need to escape this string for json and put it into the DetailsGridLayout property:
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstStefan Koell
Hi Charlie,
can you clarify (maybe with screenshots) what column layout you are referring to?
Thanks,
Stefan
Charlie B
Sure. This is on the dashboard/folder views.
In this example I have added the column "IP Address" and would also remove "Plugins" for example, but this does not persist between launches
Stefan Koell
The layout of the grid is stored in the code4ward.RoyalTS.UserPreferences.config (in %appdata%\code4ward) file in the DetailsGridLayout property. The data/format (XML) is basically the serialization of DevExpress' grid configuration. You can inspect the content of the property after you configured it how it should look and apply that using the configuration system as described here:
https://docs.royalapps.com/r2021/royalts/advanced/default-settings.html
Does that help?
Regards,
Stefan
Charlie B
Hi,
So I found the config file section specified, but am unsure how to convert it to the JSON format as I cant see a ref to the parameter on https://docs.royalapps.com/r2021/scripting/objects/
Example JSON
Example of the config
Stefan Koell
I haven't tested it myself but in theory you just need to escape this string for json and put it into the DetailsGridLayout property:
Charlie B
I had to convert the detailsgridlayout xml portion to a single line first before escaping it for JSON.
After I did that it worked fine!
-
What happened to the forum?
-
About this Forum
-
Security Information
-
Supported Secure Gateway (SSH) ciphers
-
Why is no remote file browser in SCP available?
-
What encryption is used in the rtsz files when enabled?
-
Royal TS V4 License File
-
How to resolve RDP resolution issues in Windows 7 with high resolution screen
-
Auto Fill in web page connection
-
How to reference custom properties in tasks and templates?
See all 276 topics