Telerik Forums
UI for WPF Forum
1 answer
157 views
When running the demo of the wpf controls and running the map example "First Look". Its possible to pan the map right off the screen.
I have the same issue in my application and I need to stop this from happening.

I see this was a previous issue under Issue ID 3713 - Map: Ability to limit panning and zoom ranges.
This issue has the status of resolved but I don't see what the solution is.

I figured out how to limit zoom ok by using MinZoomLevel and MaxZoomLevel but I see nothing for limiting panning.

I still need a solution for panning?

Please help.

Thanks
Andrey
Telerik team
 answered on 29 Mar 2011
3 answers
98 views
I have setup RadialGauge in xaml like this:
                <telerik:RadGauge x:Name="wciGauge" Width="300" Height="300" HorizontalAlignment="Right" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2"><br>                    <telerik:RadialGauge><br>                        <telerik:RadialScale Min="0" Max="100"><br>                            <telerik:RangeList><br>                                <telerik:RadialRange Name="Green" Min="0" Max="30" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Green" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Yellow" Min="30" Max="50" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Yellow" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Orange" Min="50" Max="70" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Orange" BorderBrush="LightGray"/><br>                                <telerik:RadialRange Name="Red" Min="70" Max="100" StartWidth="0.05" EndWidth="0.05" Location="Inside" Background="Red" BorderBrush="LightGray"/><br>                            </telerik:RangeList><br>                            <telerik:IndicatorList><br>                                <telerik:Needle Name="needleIndicator" Value="{Binding CurrentWci.Score}" /><br>                                <telerik:StateIndicator Name="stateIndicator" Left="0.48" Top="0.60" RelativeWidth="0.1" RelativeHeight="0.1" Value="{Binding CurrentWci.Score}" /><br>                                <telerik:NumericIndicator Name="numericIndicator" Value="{Binding CurrentWci.Score}" Format="{}{0:F0}" FontSize="16" FontFamily="Arial" BorderBrush="Transparent"<br>                                                          Background="Transparent" Foreground="AntiqueWhite" Left="0.3" Top="0.80" RelativeWidth="0.55" RelativeHeight="0.16"><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                    <telerik:NumberPosition Background="Transparent" BorderThickness="0" /><br>                                </telerik:NumericIndicator><br>                            </telerik:IndicatorList><br>                        </telerik:RadialScale><br>                    </telerik:RadialGauge><br>                </telerik:RadGauge><br>

It works well running the application inside VS 2010.  It crashes when I run a ClickOnce version of the application on the same computer.  Exception given Is:
Cannot create instance of 'Needle' defined in assembly 'Telerik.Windows.Controls.Gauge, Version=2010.3.1314.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Exception has been thrown by the target of an invocation.  Error at object 'Telerik.Windows.Controls.Gauges.IndicatorList' in markup file.

Nothing in code behind except these using statements:
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Gauges;

Regards
Arnvid
Andrey
Telerik team
 answered on 29 Mar 2011
1 answer
235 views
Hi Telerik,

It's perfectly possible that my issue is due to not understanding the focus topic, but the general WPF examples I find do not seem to work for me with RadDocking.

Goal / What I try to achieve:
- I wish to be able to double-click a row in a RadGridView, which is inside a RadPane.
- When double-clicking, I wish to open another RadPane, potentially one that's already open and focus a specific control (RadMaskedTextBox) inside the new RadPane.

(Our inspiration is the Error List in Visual Studio - our goal is exactly the same, directing the user to be able to edit a specific, problematic value).

Problem:
The control is not focused, rather the initial window is focused.

What I do:
I use Keyboard.Focus() to focus the RadPane
I use Keyboard.Focus() to focus the specific control.
It's done after the control is loaded and the specific control has .Focusable==.IsVisible==true
Result: System.Windows.Input.Keyboard.FocusedElement shows the desired control.
So far so good!
In the eventhandler OnRowActivated I set e.Handled = true

But when I exit the eventhandler OnRowActivated (that is: after debugging, the app is running again), the Error window has focus, not the one I just gave focus to.

So do my Telerik controls 'draw back' the focus as part of wrapping up the OnRowActivated event handler, or do you have some ideas on what to try out?

Thanks,

Anders, Denmark
Milan
Telerik team
 answered on 29 Mar 2011
1 answer
43 views

 

Hi,
Can we have a Muliple columns under One column?

Vlad
Telerik team
 answered on 29 Mar 2011
1 answer
184 views
I'm developing MVVM application. I bind the DataGrid ItemsSource to a ObservableCollection in the ViewModel code. Every user control (eg. TextBox, Label, etc) in the UI except the DataGrid works fine. When the PropertyChanged event is fired, the value is displayed correctly. But not in the DataGrid, I use TwoWay mode, but it seems that the DataGrid never refresh itself. The DataGrid content is refreshed only when I try to sort any DataGrid column.
Vlad
Telerik team
 answered on 29 Mar 2011
3 answers
158 views
I've got two questions.

1. Is it possible to have a horizontal bar-chart which has a high and low-point (like a candle-stick-chart) ?

2. If yes is it possible to make these bars draggable with mouse or touch-events?
Yavor
Telerik team
 answered on 29 Mar 2011
2 answers
116 views
I am getting this weird object and I cant figure out how to get rif of it. See attached.  When i comment out the grid I dont see it, but wheen I just comment out the columns  and set autogenerate columns i do.  oops.  There are no attachments allowed anymore.  But it looks like a button

<telerik:RadGridView Grid.Column="1" Margin="21,78,65,38" AutoGenerateColumns="False" Name="rgvSellingTitles" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" SelectionMode="Multiple"  IsScrolling="True" >
 
    
                <telerik:RadGridView.Columns>
                    <telerik:GridViewSelectColumn  Background="#2000FF00" />
                <telerik:GridViewDataColumn Header="SellingTitleRCId" UniqueName="SellingTitleRCId" DataMemberBinding="{Binding SellingTitleRCId}" IsFilterable="False" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="SellingTitleId" UniqueName="SellingTitleId" DataMemberBinding="{Binding SellingTitleId}" IsFilterable="False" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="EstimateId" UniqueName="EstimateId" DataMemberBinding="{Binding EstimateId}" IsFilterable="False" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="ProgramId" UniqueName="ProgramId" DataMemberBinding="{Binding ProgramId}" IsFilterable="False" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="Year" UniqueName="Year" Background="#2000FF00" DataMemberBinding="{Binding Year}" Width="50" />
                    <telerik:GridViewDataColumn Header="QTR" UniqueName="Quarter" Background="#2000FF00" DataMemberBinding="{Binding Quarter}" Width="50" />
                    <telerik:GridViewDataColumn Header="PP" UniqueName="DM_PricePeriod" Background="#2000FF00" DataMemberBinding="{Binding DM_PricePeriod}" Width="45" />
                    <telerik:GridViewDataColumn Header="External Id" UniqueName="DM_SellingTitle" Background="#2000FF00" DataMemberBinding="{Binding DM_SellingTitle}" Width="150" />
                    <telerik:GridViewDataColumn Header="Dealmaker Title" UniqueName="DM_Title" Background="#2000FF00" DataMemberBinding="{Binding DM_Title}" Width="150" />
                    <telerik:GridViewDataColumn Header="Start" UniqueName="Start" Background="#2000FF00" DataMemberBinding="{Binding DM_SD}" DataFormatString="{}{0:MM/dd/yyyy}" Width="75" />
                <telerik:GridViewDataColumn Header="P1849" UniqueName="DM_PL_A1849" Background="#2000FF00" IsFilterable="False" DataMemberBinding="{Binding DM_PL_A1849}" Width="45" />
                <telerik:GridViewDataColumn Header="P1849" UniqueName="MAESTRO_PL_A1849"  Background="#200000FF" IsFilterable="False" DataMemberBinding="{Binding MAESTRO_PL_A1849}" Width="45" />
                <telerik:GridViewDataColumn Header="C3 P1849" UniqueName="DM_C3_A1849" Background="#2000FF00" IsFilterable="False" DataMemberBinding="{Binding DM_C3_A1849}" Width="55" />
                <telerik:GridViewDataColumn Header="C3 P1849" UniqueName="MAESTRO_C3_A1849" Background="#200000FF" IsFilterable="False" DataMemberBinding="{Binding MAESTRO_C3_A1849}" Width="55" />
                    <telerik:GridViewDataColumn Header="DEMO_DIFF" UniqueName="DEMO_DIFF" IsFilterable="False" DataMemberBinding="{Binding DemDiff}" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="Day Part" UniqueName="DM_DAYPart" Background="#2000FF00" DataMemberBinding="{Binding DM_DAYPART}" Width="70" />
                    <telerik:GridViewDataColumn Header="End" UniqueName="End" Background="#2000FF00" DataMemberBinding="{Binding DM_ED}" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="Days/Times" UniqueName="DM_DAYS_AND_TIMES" Background="#2000FF00" DataMemberBinding="{Binding DM_DAYS_AND_TIMES}" Width="90" />
 
                    <telerik:GridViewDataColumn Header="Program" UniqueName="Program"  Background="#200000FF" DataMemberBinding="{Binding Program}" Width="150" />
                    <telerik:GridViewDataColumn Header="Time" UniqueName="Time" Background="#200000FF" DataMemberBinding="{Binding Time}" Width="50" />
                    <telerik:GridViewDataColumn Header="DOW" UniqueName="DOW" Background="#200000FF" DataMemberBinding="{Binding Weekdays}" />
                    <telerik:GridViewDataColumn Header="Dur" UniqueName="Duration" Background="#200000FF" DataMemberBinding="{Binding Duration}" Width="40" />
                    <telerik:GridViewDataColumn Header="Estimate" UniqueName="Estimate" Background="#200000FF" DataMemberBinding="{Binding Estimate}" Width="150" />
                    <telerik:GridViewDataColumn Header="Request" UniqueName="Request" Background="#200000FF" DataMemberBinding="{Binding Request}" DataFormatString="{}{0:MM/dd/yyyy}" />
                    <telerik:GridViewDataColumn Header="Exported" UniqueName="Exported" Background="#200000FF" DataMemberBinding="{Binding Exported}" DataFormatString="{}{0:MM/dd/yyyy}" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>

John Giblin
Top achievements
Rank 1
 answered on 28 Mar 2011
2 answers
367 views
Anyone know how to grey out a row within a gridview.

I want to be able to see the row, just basically dimmed? 

Any ideas?

Bryan
Bryan
Top achievements
Rank 1
 answered on 28 Mar 2011
4 answers
632 views
Hi
I'm trying to replace my wpf listview with radgridview, but the selecteditem binding to the observablecollection does not work.

<ListView Name="lboRoles" Grid.Row="1" Grid.Column="0" ItemsSource="{Binding}" Grid.ColumnSpan="1" IsSynchronizedWithCurrentItem="True"  SelectionMode="Single" >
     <ListView.View>
         <GridView>
             <GridViewColumn Header="Name" Width="200"  DisplayMemberBinding="{Binding Path=Name}"/>
             <GridViewColumn Header="Description" Width="200"  DisplayMemberBinding="{Binding Path=Description}"/>
         </GridView>
     </ListView.View>
 </ListView>
 <mytelerik:RadGridView x:Name="gvRoles" ItemsSource="{Binding}" SelectionMode="Single" IsReadOnly="True" 
                        Grid.Column="0" Grid.Row="0" IsSynchronizedWithCurrentItem="True" AutoGenerateColumns="False" 
                        ShowGroupPanel="False" CanUserFreezeColumns="False" ShowColumnFooters="False">
     <mytelerik:RadGridView.Columns>
         <mytelerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}">
         </mytelerik:GridViewDataColumn>
         <mytelerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Description}">
         </mytelerik:GridViewDataColumn>
     </mytelerik:RadGridView.Columns>
 </mytelerik:RadGridView>


When selecting a row in the listview, the observablecollection currentrow is changed, but not when selecting a row in the radgridview.
Is there a different way to do this with radgridview? Do I need a binding to selecteditem?

Knut

Milan
Telerik team
 answered on 28 Mar 2011
3 answers
377 views
Hi,

I am trying to have a single expand Hierarchy in my GridView, in the RowIsExpandedChanged events i am checking if the row is expanded and i am collapsing the other rows with the CollapseHierarchyItem.

What is happening is that the RowIsExpandedChanged event is raised again when calling CollapseHierarchyItem, how to collapse rows without firing the RowIsExpandedChanged events.

Thanks.
Milan
Telerik team
 answered on 28 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
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?