Is there a way to change the layout behaviour of the items in an OptionSet? I am absolutely not happy with the behaviour especially because it not even stays as layed out during design time.
Or is there an Infragistics pendant to the WinForms CheckBox?
Regards, Gerald
Gerald,
What kind of problems are you having, and what kind of layout behavior are you looking to have? I'm not sure that there's a way to control the layout of each item short of a creation filter, but if the control is not maintaining the layout that you have at design-time, this sounds like a bug. You should also ensure that you have the latest hotfix installed.
-Matt
Hello Matt,
I have 4 items. At design time I size the area so these items are shown in two rows. During runtime the items are shown in only one line and about 2/3 of the text of the last item are cut away because there is not enough room to show all 4 items completely.
When you look at the CheckBox in WinForms you can place each item separately. They are independent but still belong to the same group (within a groupbox). I thought maybe there is a way to get the same useful behaviour somehow.
I just quickly tried what you said and the OptionSet was working for me. Do you have the OptionSet within a control that is causing it to get resized? If it's a small sample, I can take a quick look here if you attach it, or you can submit an issue to Developer Support. I would also recommend making sure you have the latest hotfix, as I mentioned previously.
As for your comment about the CheckBox, you can place each item seperately because each of those are separate controls with no knowledge of the other editors, relying on the programmer to enforce various constraints on which can be checked at a given time. You could certainly implement OptionSet functionality this way.
Matt Snyder"]Do you have the OptionSet within a control that is causing it to get resized?
No, unless there is some AutoSize option on. I didn't check that yet.
visualize this:
Item_1 Item_2Item_3 Item_4
becomes
Item_1 Item_2 Item_3 Ite
Matt Snyder"]or you can submit an issue to Developer Support
No. That's pretty much useless. A waste of time so to speak. The helpful answers came all from Infragistics employees posting here.
Matt Snyder"]I would also recommend making sure you have the latest hotfix, as I mentioned previously.
My installation is 2008_2. That should be the newest as far as I know.
Probably I will switch to the WinForms Checkboxes although it hurts that I will not have the Stylist-functionality for them.
Thanks for your attention Matt and best regards, Gerald
Matt Snyder"]I'm not sure what the issue could be unless I can see what's happening, so if you want to attach a small sample here, or list some [..]
Unfortunately that's not possible. The application I am working on is a quite big CAB/SCSF-application.
Matt Snyder"]As for using WinForms Checkboxes, why can't you use the UltraCheckEditor instead, which will have styling capabilities?
No. Sorry. I meant WinForms Radiobuttons not Checkboxes. But I will have a look at the UltraCheckEditor as well.
Thanks, Gerald
Your previous description was clear, I knew that your rows were all being removed and all items were being put in a single row. I'm not sure why this is happening, though, since I also tested in 8.2. All I did was add 4 items to the Items collection through the UITypeEditor at design-time and sized the control so that I had 2 rows; at run-time the control still looked the same way. I'm not sure what the issue could be unless I can see what's happening, so if you want to attach a small sample here, or list some basic steps to reproduce it, I'll gladly take a look.
As for using WinForms Checkboxes, why can't you use the UltraCheckEditor instead, which will have styling capabilities?