Telerik Forums
UI for WPF Forum
3 answers
126 views
Hello,
i try to describe my problem very simple:

- I have a TabControl with CloseButtons in the TabHeader.
- If I open & close a modal window the elements in the TabHeader can't get focus.
- So I can't use the CloseButton in the TabHeader
- After some clicking around the focus available again.
- If I don't open a modal window all elements working great.

When I add some other elements(like a TextBox) to the TabHeader it doesn't work, too.

Thanks for help & sorry for my bad english

(I use Telerik RadControls for WPF Q2 2010 SP2)
A picture: http://theupload.co.de/images/2011-05-04_083841.jpg
Rouven
Top achievements
Rank 1
 answered on 10 May 2011
2 answers
77 views
Hi, I got two treeview'sv called T1 and T2 from now, and I need them to behave like illustrated in this image.

Copy N Move

  1. If the dragged item is being dragged in the same treeview just move it.
  2. If the dragged item is being dragged from T1 to T2 Copy it.
  3. It the dragged item is being dragged from T2 to T2 disallow it.
Anders
Top achievements
Rank 2
 answered on 10 May 2011
2 answers
88 views
I have a chart where AxisX is a integer sequence that is updated programatically. The problem I am facing is, sometimes I get non integer values (such as 1.5, 2.5.... etc) as lables in addition to Integer labels. I do not want these non Integer labels to appear. How can I do this
1. Through C# code
2. Through XAML

The folowing is the basic code (validations removed) I am using,

 

private void SetXAxisSettings(RadChart chart, double axisMin, double axisMax)
{
 //Update the X Axis
 AxisX axisX = chart.DefaultView.ChartArea.AxisX;
 axisX.MinValue = axisMin;
 axisX.MaxValue = axisMax;
}

and, the following is the static settings I have in XAML

 

<telerik:AxisX LayoutMode="Between" LabelStep="1" Step="1" AutoRange="False" Title="Batch" />

Evgenia
Telerik team
 answered on 10 May 2011
1 answer
121 views
Hi,

Would like to have thick border (either left or right) to the cell.

Please let me know how we can apply this style.

thanks
Vanya Pavlova
Telerik team
 answered on 10 May 2011
3 answers
155 views
I have the scenario where I have a listbox bound to a collection of viewmodels, from which I want to drag to a gridview, upon dropping they will be converted to a second ViewModel and added to the gridviews collection.

I would like to perform these actions in the overall viewmodel itself... the docs state:

Subscribe to the DropQuery and DropInfo events for gridview. You can do that in two ways. The first way is to subscribe in the XAML:

but im afraid im not familiar/smart enough to know what I need to code to subscribe these events to a method or command on the viewmodels?

In the meantime im coding it up with code behind, but I would really like to move these actions to the viewmodels

any help greatly appreciated

Michael
Tsvyatko
Telerik team
 answered on 10 May 2011
1 answer
119 views
I downloaded free trial version of WPF controls. Do you provide any sample code/example to create a bar or pie chart using chart controls?
Nikolay
Telerik team
 answered on 10 May 2011
1 answer
87 views
I have a TreeListView bound to a hierarchical collection. When I add an item to the datamodel I want the newly created row in the TreeListView to be the SelectedItem. What is the best way to do this?

Thanks 
Vlad
Telerik team
 answered on 10 May 2011
3 answers
254 views
I have implemented a hierarchical grid based on the example provided on the Telerik site. This works fine.

However, I am having difficulties binding to properties in my viewmodel from the code behind and the example given seems to bind only to objects in the top level RadGridView's ItemsSource. Although I can continue working in the code behind I would like to see an example of not using the DataLoading eventhandler and sticking with XAML to define the columns for the child rows.

I am unable to find any example of placing the   

 

<telerik:RadGridView.Columns>

 

or its equivalent section within the ChildTableDefinitions. Surely this must be possible, as these child rows in my case, anyway, contain merely a subset of the columns in the main RadGridView control.

So basically, what I am asking is to be able to do something like the following, where I can handle the table's columns in XAML...

<telerik:RadGridView.ChildTableDefinitions>
    <telerik:GridViewTableDefinition>
        <telerik:GridViewTableDefinition.Relation>
            <telerik:TableRelation IsSelfReference="True">
                <telerik:TableRelation.FieldNames>
                    <telerik:FieldDescriptorNamePair 
                ParentFieldDescriptorName="BankStatementTranID" 
                ChildFieldDescriptorName="ParentStatementTranID"/>
                </telerik:TableRelation.FieldNames>
            </telerik:TableRelation>
        </telerik:GridViewTableDefinition.Relation>
  
        <telerik:RadGridView.Columns>
         ...My XAML column code here...
        </telerik:RadGridView.Columns>
    </telerik:GridViewTableDefinition>
</telerik:RadGridView.ChildTableDefinitions>

 

 

 

 

 

 

 

 

 

 

Rob
Top achievements
Rank 1
 answered on 09 May 2011
1 answer
132 views
Hi Telerik,

When end user resizes appointment's start/end datetime, how can I constraint its time increment interval to, for example 30mins or 1 hour, instead of 1 min interval, so it always "snaps" to the timeslot of the scheduleview?

Thanks,
Cheau
Cheau-Long
Top achievements
Rank 1
 answered on 09 May 2011
1 answer
415 views
hey guys,

This one might be pretty simple, but i cant for the life of me work out how to impliment this.

I have a RadTreeView (defined below)

What i would like to do with this is Reverse the order of it, in this example i have 0 - 12 possible controls within my TreeView,

so if i have 4 controls,

1
2
3
4
(is how they are being presented just now)

i want them to display top heavy, so

4
3
2
1

Is this possible? but only on the display, i still want them ordered 1 - 4 in the collection in the code behind? I really hope this is possible!! :)

<StackPanel VerticalAlignment="Top">
                                        <telerikNavigation:RadTreeView HorizontalContentAlignment="Stretch" x:Name="uiActionersList" IsDragDropEnabled="True" DragEnded="uiActionersList_DragEnded"
                                                HorizontalAlignment="Stretch" SelectionMode="Multiple" ScrollViewer.HorizontalScrollBarVisibility="Hidden" dragDrop:RadDragAndDropManager.AllowDrop="True"
                                                                               IsDragPreviewEnabled="True"  IsDragTooltipEnabled="True" SelectionChanged="uiActionersList_SelectionChanged"
                                                ItemsSource="{Binding ActionerModelViewCollection, NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True,Mode=TwoWay}" Margin="0,0,-5,0" >
                                            <telerikNavigation:RadTreeView.ItemTemplate>
                                                <DataTemplate>
                                                    <pmControls:ActionerControl x:Name="ItemsHost" />
                                                </DataTemplate>
                                            </telerikNavigation:RadTreeView.ItemTemplate>
                                        </telerikNavigation:RadTreeView>
                                    </StackPanel>

Petar Mladenov
Telerik team
 answered on 09 May 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?