This is a migrated thread and some comments may be shown as answers.

Where are the settings stored?

2 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Donnie
Top achievements
Rank 1
Donnie asked on 09 Dec 2009, 09:52 PM
It drives me absolutly crazy when I make a change in the design mode and the change doesn't show up when I debug it. Where does Telerik store the settings for the UI at? I know its a binary file somewhere, I have came across it before and I know If delete it, it will be rebuilt with the latest settings. I hate spending 20 mins having to trick the Telerik stuff into working and I am a little frustrated. I know I could explain in greater detail what is going on but first I would really like to know where the settings file is.

2 Answers, 1 is accepted

Sort by
0
Matthew O'Connor
Top achievements
Rank 1
answered on 10 Dec 2009, 09:00 AM
All WinForms controls settings are serialized in the Designer.cs files of your forms so you are entirely wrong about the binary file as VS will not be able to work with it. Anyway, the first thing that I learned about WinForms was never to edit the Designer.cs files by hand, so deleting lines in it might break your application and I would not do it for my apps.
0
Donnie
Top achievements
Rank 1
answered on 10 Dec 2009, 05:07 PM
Ok this is the example I working with. I have a split panel with a telerik panel in the top panel. I had the top telerik panel set to Dock-Fill. I was playing with settings and I set the Dock-None and set a maximum height of 364. I debugged the app and didn't like the way it looked so I went back to the designer and set the dock back to fill and the maximum size back to 0 as it was set originally. It looks perfect in the designer and does exactly what it should do but when I debug the app, it looks exactly the same as when I set the dock to none and the maxium height of 364, even after I make several other changes to the form. I have had similar problems to this with various controls where I make a change, didn't like and tried to revert and the debug version will not appear the same as what is currently in the designer. If I look at the designer code it says exactly what the designer shows. In this current issue I can search the entire frm.designer.vb file and I can't find where the maxium size is being set after I turn it back to 0 if I turn it back to 364 I see it but regardless it shows up as haveing a max value. Normally I just delete the form and build a new one but I am getting tired of doing that. I can delete the entire debug folder but that doesn't do anything. I probably shouldn't mention the competitor but I recal having a similar problem working with infragistics (most noteable on deployments) and they stored the designer data in a binary file after the project was compiled and from what I understood they updated the binary file only when needed and if something like this occured all you had to do was delete the binary file and it would automatically be rebuilt the next time the app was accessed. So from what I can see this appears to be the same issue.  I might be sniffing up the wrong tree on binary file but it is clear to me that the telerik controls are storing and pulling the settings from somewhere else other than just the form otherwise the debugged version would look exactly like the designer. These issues really are getting to the point where I cringe every time I have to work with telerik controls.
Tags
General Discussions
Asked by
Donnie
Top achievements
Rank 1
Answers by
Matthew O'Connor
Top achievements
Rank 1
Donnie
Top achievements
Rank 1
Share this question
or