The page on configuring the ListPicker expansion mode (this one) states that to use in-place expansion mode you should set the ItemCountThreshold to a number higher than the number of items in the list. However, this page ItemCountThreshold implies that the property is readonly. So how can I set the threshold?
Thanks, John
Sorry, the first link should be to this page: http://help.infragistics.com/Help/Doc/WindowsPhone/2012.2/CLR4.0/html/ListPicker_Configuring_the_Expansion_Mode.html
The second link can be found on that page.
Hello John,
Thank you for your post. I have been looking into it and I can say that in the first link nowhere is written that you should set the ItemCountThreshold to a number higher than the number of items in the list. It is written that “if the number of items in the list picker is less than or equal to the value of the ItemCountThreshold property (which defaults to 5) the list picker will allow the user to select a value on the same page” and since the ItemCountThreshold Property is read only by designed, you cannot change its value. The thing you can do is log a product idea here for making this Property editable:
http://ideas.infragistics.com/
Please let me know if you have further questions on this matter.
Looking forward for your reply.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan,
That's sorted it. Thanks for your help.
John
I have contacted with our developers and they said that the ItemCountThreshold Property of the ListPicker from Infragistics.Toolkit.ListPicker Namespace is read only as you mentioned, but the one of the ListPicker from Infragistics.Toolkit.Controls.Editors Namespace is not, which is the one stated in the link you provided, so I can suggest you use the ListPicker from Infragistics.Toolkit.Controls.Editors in order to be able to set its ItemCountThreshold Property. Please let me know if this helps you or you have further questions on this matter.
Hi Stefan, thanks for getting back.
Half way down the link, is a section entitled "Using In-Place Expansion Mode" which includes this table:
In order to:
Use this properties:
And set it to:
Make the list picker expand in place.
ExpansionMode
ExpansionAllowed
ItemCountThreshold
A number greater than the number of items added to the list picker.
MaxHeight
A double indicating the height that you want the ListPicker to occupy when expanded.
That says you should set ItemCountThreshold to a number greater than the number of items added to the list picker, doesn't it? If not, please can you explain what the cell I've highlighted in yellow means?
Thanks,John