Request for a "AddSelection" method

7 posts, 1 answers
  1. David
    David avatar
    57 posts
    Member since:
    Apr 2011

    Posted 28 Jul 2011 Link to this post

    Hi,

    I'm creating facility to jump to a specific selection (think of a calendar which has a "Today" button to jump immediately to a specific date). This facility changes both the SelectionStart and SelectionEnd properties in two separate operations, however this causes the SelectionChanged event to be triggered twice, once for each operation. Can an "AddSelection(start, end)" method be included change both properties in one operation and only trigger the SelectionChanged event once? (Similar events could be added for VisiblePeriod and Period). I've based this request on a similar AddRange method for the RadChart control that allows the minimum, maximum and step properties to be changed in one operation.

    Kind regards,
    Dave.
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 01 Aug 2011 Link to this post

    Hello David,

    Please use the Selection property instead. It will allow you to set the selection atomically.

    All the best,
    Vladimir Milev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. David
    David avatar
    57 posts
    Member since:
    Apr 2011

    Posted 02 Aug 2011 Link to this post

    Hi Vladimir,

    I can't seem to access the Selection property in code-behind, only the SelectionStart and SelectionEnd properties. I'm using 2011 Q2 WPF controls in VS 2010 SP1, VB code behind.

    Kind regards,
    Dave.
  5. Answer
    Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 04 Aug 2011 Link to this post

    Hello David,

    The property is there, although it does not show up in intellisense. Try it:

    timebar1.Selection = New SelectionRange(Of DateTime)(startTime, endTime)

    Greetings,
    Vladimir Milev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  6. David
    David avatar
    57 posts
    Member since:
    Apr 2011

    Posted 04 Aug 2011 Link to this post

    Hi Vladimir,

    Thanks for the advice. The property does not come up in the Intellisense member list, however once manually entered, it appears in the property tooltip.

    Using the tooltip data type definition, I'm using the Date data type instead of DateTime, therefore the VB code I'm using is:
    timebar1.Selection = New SelectionRange(Of Date)(startTime, endTime)

    This property is missing from the property list in the online help for the Silverlight controls:
    http://www.telerik.com/help/silverlight/telerik.windows.controls.datavisualization-telerik.windows.controls.radtimebar_properties.html

    I'm referencing the help for the Silverlight controls because the entire Telerik.Windows.Controls.DataVisualization API reference is missing the in the WPF help as I reported in:
    http://www.telerik.com/community/forums/wpf/timebar/api-reference-missing-telerik-windows-controls-datavisualization.aspx

    Without this property in the Intellisense member list or online help, I had no knowledge of this property previously. Will this property be added to the help and will it be correctly listed in the Intellisense member list in a future release?

    Kind regards,
    Dave.
  7. Missing user
    Missing user avatar

    Posted 09 Aug 2011 Link to this post

    Hello David,

    Our developers have already addressed the issue and you can get the fixed version by downloading the latest internal build (currently version 2011.2.0808) from your account page - "Internal Builds Downloads" section. The fix will also be included in the official service pack release. The responsible people are notified and the property list in our online help will be updated soon.

    Greetings,
    Polina
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  8. David
    David avatar
    57 posts
    Member since:
    Apr 2011

    Posted 09 Aug 2011 Link to this post

    Thanks for the update Polina!
Back to Top
UI for WPF is Visual Studio 2017 Ready