Telerik Forums
UI for WPF Forum
7 answers
376 views
Hi

I am setting

StepAction="MoveRange" and range is moving with the mouse click.

 

 

 

But the issue is that when I a dragging mouse then range is changing. How do I disable the Mouse drag.




HorizontalAlignment
="Right"

 

 

 

 

IsSnapToTickEnabled="True"

 

 

 

 

Margin="0,10,12,52"

 

 

 

 

Minimum="1"

 

 

 

 

Name="monthSlider"

 

 

 

 

Maximum="12"

 

 

 

 

SmallChange="0"

 

 

 

 

StepAction="MoveRange"

 

 

 

TickFrequency="1"

 

 

 

LargeChange="3"

 

 

 

 

SelectionEnd="3"

 

 

 

SelectionStart="1"

 

 

 

IsSelectionRangeEnabled="True"

 

 

 

 

SelectionRangeChanged="monthSlider_SelectionRangeChanged"

 

Petar Mladenov
Telerik team
 answered on 30 Mar 2011
2 answers
154 views
How could I change the timeformat on the RadScheduleView? In RadScheduler I could use TimelineHeaderFormat but that is not available in RadSchedulerView.  

//Ola
Dani
Telerik team
 answered on 30 Mar 2011
2 answers
635 views
Hi,
How we can a delete a row from raddatagrid by using MVVM pattern?
Vlad
Telerik team
 answered on 30 Mar 2011
4 answers
240 views
Hi all,
can you give an example for binding a RadColumnSparkline to data ? I got the RadLinearSparkline working, but the RadColumnSparkline seems to need a different data format.

Thanks in advance
Guido

Guido
Top achievements
Rank 1
 answered on 30 Mar 2011
2 answers
121 views
Hello,

Are there any plans to include Office 2010 theme for WPF controls?  especially for ribbon controls?
Thanks in advance.

Shawn
Nikolay
Telerik team
 answered on 30 Mar 2011
1 answer
225 views
How can I set it to WindowStartupLocation.CenterOwner when I use RadWindow.Confirm(dialogParameters) to show the dialog?

I tried defining the Owner and the WindowStyle (in which I defined the WindowStartupLocation property to CenterOwner) but it did not work out on my computer.

I did search in Telerik documentation and this forum but did not find any clue. Did I do it correctly or is it a bug already known? How can I get around it?

Thanks in advance,
Stephen

*** Edit

Found the same issue already posted: http://www.telerik.com/community/forums/wpf/window/alert-confirm-multi-monitor-problem.aspx
Dani
Telerik team
 answered on 30 Mar 2011
2 answers
100 views
Hi,

I have a tree view control and in the data template of some of the nodes I have a text box to allow editing of internal settings. This works perfectly except for in two respects,

1) if you try and select text within the text box with the mouse it starts a drag of the tree item. I would like a way to have the tree ignore the drag when the text box is the clicked on control.. If I return handled from the PreviewDragStarted event then the selection of text works correctly but I am unsure of a way to distinguish at this point where the original click occurred

2) where I have more than one textbox in a data template I would like clicking 'tab' to move me to the next textbox, not the tree control itself/next control on page. I have played with the KeyboardNavigation.TabNavigation settings but not found anything that worked..

any thoughts appreciated.
Petar Mladenov
Telerik team
 answered on 30 Mar 2011
1 answer
103 views
i have a radwindow with this options

<telerik:RadWindow x:Name="windowDetalhesPrevisao"
                           Header="Detalhes do Lançamento da Previsão"
                           Grid.Row="3">

a simple grid with this options

             <telerik:RadWindow.Content>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="35" />
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25" />
                        <RowDefinition />
                    </Grid.RowDefinitions>

and other things ... stackpanel...

finally, a radgridview

<telerik:RadGridView x:Name="GridDadosPrevisao"
                                         Grid.Row="3"
                                         HorizontalAlignment="Left"
                                         AutoGenerateColumns="True"
                                         IsReadOnly="True"
                                         FrozenColumnCount="2"
                                         ShowGroupPanel="False"
                                         CanUserReorderColumns="False"
                                         CanUserResizeColumns="False"
                                         CanUserSortColumns="False"                                                
                                         IsFilteringAllowed="False"
                                         Margin="5">
                    </telerik:RadGridView>

my problem is, this radgrid view dont create the scrollbar Horizontal first time,
but, when i close the window and open again, this radgridview create!

2 links with screenshot

first
http://img840.imageshack.us/i/24050593.jpg/

second
http://img850.imageshack.us/i/25696953.jpg/

see?
when i open the window, scrollbar dont be there and
the radgridview stay "CUT", incomplete.

when i close and open again, scrollbar be there, complete!

why?
what happens?

sorry for english
i am starter with english
i am from brazil!

thx guys!
Yana
Telerik team
 answered on 30 Mar 2011
4 answers
471 views
Hello,

I have a usercontrol with radTabControl + radGridView (version:2011.1.322.40), the code structure like this:

<Grid>
<telerik:RadTabControl>            
<telerik:RadTabItem> <Grid /> </telerik:RadTabItem>
<telerik:RadTabItem> <telerik:RadGridView ItemsSource="{Binding items1}" /> </telerik:RadTabItem>            
<telerik:RadTabItem> <telerik:RadGridView ItemsSource="{Binding items2}" /> </telerik:RadTabItem>            
<telerik:RadTabItem> <telerik:RadGridView ItemsSource="{Binding items3}" /> </telerik:RadTabItem>            
<telerik:RadTabItem> <telerik:RadGridView ItemsSource="{Binding items4}" /> </telerik:RadTabItem>            
</
telerik:RadTabControl>
</Grid>

I use it in MainWindow, like this:

<ContentControl ContentTemplate="{StaticResource DetialsDataTemplate}" 
                Content="{Binding Path=SelectedDetails}" />

The SelectedDetails is a entity returning from EF that support lazyloading.

Start application, it's ok to show first tab. When I click other tab to show gridview, It raise below exception:

System.NullReferenceException: Object reference not set to an instance of an object.

   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.MoveToPosition(GeneratorPosition position, GeneratorDirection direction, Boolean allowStartAtRealizedItem, GeneratorState& state)

   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.Generator..ctor(GridViewItemContainerGenerator factory, GeneratorPosition position, GeneratorDirection direction, Boolean allowStartAtRealizedItem)

   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.StartAt(GeneratorPosition position, GeneratorDirection direction, Boolean allowStartAtRealizedItem)

   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Border.MeasureOverride(Size constraint)

  at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Border.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Border.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Border.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.Controls.Control.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()

   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

I really appreciate for any help.

Yu
Yu
Top achievements
Rank 1
 answered on 30 Mar 2011
9 answers
389 views
Hi there,

is it possible to write something into the RowHeader?
I need to have a grid looking like that in my attachment.

Greetings
Andrew
Top achievements
Rank 1
 answered on 29 Mar 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?