Telerik Forums
UI for WPF Forum
5 answers
594 views

I am using the following listbox to manage visibility and order of the columns in my grid view. It works great for visibility (of course). If I drag a column in the listbox it reorders the grid columns fine. But if I reorder the grid columns in the grid it does not update the listbox. I am willing to disable column ordering in the grid view (and only reorder columns using the listbox) if I have to but would prefer not. I assume I can disable column reorder in the gridview anyway, still looking into it...

 Is there a trick I am missing to get the listbox to reorder when I update the column order from the gridview?

 

                <telerik:RadListBox x:Name="ColumnSelector" Margin="3" ItemContainerStyle="{StaticResource DraggableListBoxItem}" 
                                    ItemsSource="{Binding Columns,ElementName=GOOSEGrid}">
                    <telerik:RadListBox.DragDropBehavior>
                        <telerik:ListBoxDragDropBehavior />
                    </telerik:RadListBox.DragDropBehavior>
                    <telerik:RadListBox.DragVisualProvider>
                        <telerik:ScreenshotDragVisualProvider />
                    </telerik:RadListBox.DragVisualProvider>
                    <telerik:RadListBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox Content="{Binding Header}" IsChecked="{Binding IsVisible}"/>
                        </DataTemplate>
                    </telerik:RadListBox.ItemTemplate>
                </telerik:RadListBox>

Stefan
Telerik team
 answered on 21 Dec 2015
3 answers
135 views

 Hi,

I have marker point that updates it's position periodically on the map. If i wanted to draw a traceline on the map to keep track of the path that the marker point has moved, what would be the best way of doing it without slowing down the rendering of the details on the map?

 

Martin Ivanov
Telerik team
 answered on 21 Dec 2015
1 answer
144 views

 I have template:

 <telerik:GridViewDataColumn.GroupFooterTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Vertical" Margin="0,10">
                                        <TextBlock Margin="0,0,0,2"> 
                                            <Hyperlink Command="{Binding SellingCatalog.DailyTotalCommand, Source={StaticResource Locator}}"  CommandParameter="{Binding Key}" >
                                               Daily Total
                                                </Hyperlink>
                                        </TextBlock>
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.GroupFooterTemplate>

 

How can I send group key to CommandParameter
Like that: CommandParameter="{Binding Key}" 

Stefan Nenchev
Telerik team
 answered on 21 Dec 2015
3 answers
208 views

Hi,

 For my map display, I am suppose to show a custom image that represents a 15m x 10m area from a geo point.

 

<Window x:Class="telerikMapSample.MainWindow"
        Title="MainWindow" HorizontalAlignment="Center" VerticalAlignment="Center" Height="564.851" Width="805.313">
    <Grid>
        <Grid x:Name="LayoutRoot" Width="784" Height="484">
            <Grid.RowDefinitions>
                <RowDefinition Height="450"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
 
            <telerik:RadMap x:Name="RadMap1" Grid.Row="0"
                        ZoomLevel="24"
                        MinZoomLevel="24"
                        MaxZoomLevel="24"
                        
                        Center="1.352083, 103.819836"
                        NavigationVisibility="Collapsed"
                        ZoomBarVisibility="Collapsed"
                        CommandBarVisibility="Collapsed"
                        MiniMapExpanderVisibility="Collapsed"
                             
                        MouseMove="RadMap1_MouseMove">
                <telerik:RadMap.Provider>
                    <telerik:UriImageProvider GeoBounds="1.352083, 103.819836, 0.0001, 0.00015" Uri="/telerikMapSample;component/Resources/osm_12.png" />
                </telerik:RadMap.Provider>
            </telerik:RadMap>
                 
            <Grid x:Name="Row2" Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Label Grid.Column="0" FontSize="20">Latitiude: </Label>
                <Label Grid.Column="2" FontSize="20" >Longitude: </Label>
                <TextBlock x:Name="LatValue" FontSize="20" Grid.Column="1"/>
                <TextBlock x:Name="LongValue" FontSize="20" Grid.Column="3"/>
            </Grid>
        </Grid>
    </Grid>
</Window>

The problem now that I am facing is that after measuring the latitude and longitude at each end of the boundary, I am getting

around 0.00004deg and 0.00007deg respectively instead of the 0.00001deg and 0.00015deg. How can I fix this accuracy problem?

I appreciate the technical support!

Martin Ivanov
Telerik team
 answered on 21 Dec 2015
1 answer
332 views

Hi,

We are rebuilding our application and using implicit styling with the Windows 8 theme. We have a custom font we'd like to use and wish to increase the font size of all controls (Telerik and the default .NET controls). I know we can use the following in code-behind to accomplish this:

Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeXS += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeS += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSize += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeL += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeXL += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeXXL += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeXXXL += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontFamily = new FontFamily("CustomFontName");
 

But this obviously does not apply the font and font size during design-time, which makes it hard to design the UI because the size increases when the application is ran. Is there a way we can set the font and font size in XAML, like in a ResourceDictionary, so that the controls will accept the changes during design-time?

 Thanks for the help,

Brian Moore

Masha
Telerik team
 answered on 21 Dec 2015
4 answers
63 views
I have a ScheduleView with DayStartTime set to 09:00, and DayEndTime set to 16:00. I want to allow the user to drag an appointment partially beyond the day boundaries. 

If I have an appointment (with a duration of, say two hours) that I drag near the DayEndTime, things work as expected. I can drag&drop it, for example, in the 15:30 slot, and there is an arrow indicating that the appointment extends beyond 16:00. This is the behavior I want.

However, if I drag the appointment near the DayStartTime, the drag cue disappears. At that moment, if I drop the appointment, then I "lose" it . Peeking into the appointment collection, I can see that it has been moved to the first slot of the day, that is, assigned start time 00:00, and end time 02:00.

This happens with the default DragDropBehavior.

Kalin
Telerik team
 answered on 21 Dec 2015
1 answer
101 views

I want to put a self-erected web map server as a tiled source.

I want to get map through Http post map from WMS.

How do I implement Tiled MapSource to achieve my goal.

 

Any help, preferably with sample, is appreciated!

 

Standy

Petar Mladenov
Telerik team
 answered on 21 Dec 2015
10 answers
356 views
Hi, 

I'm programatically merging several RadDocuments to generate a report. 

Is there a way to programatically insert a table of contents (as what is done with the menu in the examples) ? 

Thanks, 

Axelle
Boby
Telerik team
 answered on 21 Dec 2015
3 answers
201 views

Upon merging latest code from our main development branch I realized that every edit-enabled RadComboBox on our application had vanished.  We use the Windows 7 theme via implicit styles with UI for WPF 2015.3.1104.45.  VS 2015's Live Visual Tree showed the controls and all simple combo boxes (no editing) worked as normal.   I went back in time until I found the changeset that broke the code and found that the references had indeed changed but not in any way that seems like it should break anything.  I compared loaded modules for the working code and the broken code and the exact same Telerik assembly dll's are loaded from the exact same location.  As best I can tell ONLY combo boxes are not drawing. I keep thinking I am missing something really obvious here.  Any ideas?

 

Thanks,
Nathan

Nasko
Telerik team
 answered on 20 Dec 2015
0 answers
100 views

Hello,

Anyone of you is using raddocking with catel successfully? Want  to understand how do you restore view/viewmodels

Michele
Top achievements
Rank 2
 asked on 20 Dec 2015
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?