Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: Setting DropDownWidth to match SplitSize in C1Combo

$
0
0

Sheepishly answering my own question:

Note to self: 150 + 250 = 400 and not 350!!!!!!

However to also fully answer my own question:

With

this.c1Combo1.Splits[0].SplitSizeMode = C1.Win.C1List.SizeModeEnum.Exact;

For a C1Combo with a perfectly sized dropdown list, if the sum of '.Widths’ of the visible 'this.c1Combo1.Splits[0].DisplayColumns’ equals 'intDisplayColumnsWidthTotal’ then set 'this.c1Combo1.Splits[0].SplitSize’ and 'this.c1Combo1.DropDownWidth’ to:

intDisplayColumnsWidthTotal + 3 + (x – 1);

Where x equals the number of visible columns.

If 'this.c1Combo1.ListCount’ > 'this.c1Combo1.MaxDropDownItems’ add a further 17 to 'this.c1Combo1.DropDownWidth’.


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>