Telerik Forums
UI for WPF Forum
1 answer
177 views
Hello

I have a simple question:

How can I keep the textbox close to the label after resizing the dataform?

Check the attached image where Im showing 3 situations:

1. The label and the textbox before resizing the form.
2. I resize the form, and the textbox is resized but also moved away from the label.
3. The way I wait my textbox to look like, despite the resized form, it is still in the same position.

I have tried many things, but none solved my problem.
Maurício
Top achievements
Rank 1
 answered on 21 Mar 2014
1 answer
131 views
Hi,

I am learning to use the Telerik tools and would like to do the following:

I have a collection of viewmodels I would like to link to the RadOutlookbar, the collection is structured as this
OutLookItems collection
  Element1 (header, title)
    subElement1(title, viewmodel1)
    subElement2(title, viewmodel2)
  Element2 (header, title)
    subElement3(title, viewmodel3)
    subElement4(title, viewmodel4)

I managed to link the main level (Element1, Element2) to the RadOutlookbar and I can see them on the screen.
But I fail to link the second level the a RadListbox that I defined as contenttemplate  in the RadOutlookbar.

What I need to add to get this working?

Johan
 
Boris
Telerik team
 answered on 21 Mar 2014
3 answers
128 views
Is that a new property for the Q1, 2014 release? 
Thanks - Mitch
Petar Marchev
Telerik team
 answered on 21 Mar 2014
5 answers
325 views
Good day,
       I had a Silverlight demo project build on top of prism illustrating UI composition.
       One of the key members of my demo was a TabControl with a region which gets populated OnDemand.

       I've migrated the project to use Telerik controls and one change I made was switching from TabControl to RadTabControl (I am using Telerik controls vs 2011.1.315.1040) and now a couple of things that worked before stopped working now.
  • For the TabItem.ItemContainerStyle I had the following setting:
     
    <Setter Property="HeaderTemplate">
           <Setter.Value>
               <!--Display the child view name on the tab header-->
               <DataTemplate>                       
                   <!--for some reason this does not work with radTabControl-->
                   <TextBlock Text="{Binding ViewName}" />
               </DataTemplate>
           </Setter.Value>
       </Setter>
    Now when I create new tabs in the TabControl they will have no name -> ugly and not what I wanted. How can I get the ViewName to show up in the TabItem?
  • I populated the TabControl with the following code
    Dim lReg As IRegion = Me.mRegionManager.Regions("RequestsTabReqion")
    Dim lRqViewID As String = CommonDefinitions.Constants.BuildRqViewName(iRqId)
    Dim lInfoCardsView As RequestDetailsView = TryCast(lReg.GetView(lRqViewID), RequestDetailsView)
    If lInfoCardsView Is Nothing Then
       lInfoCardsView = New RequestDetailsView()
       Dim lRegMan1 As IRegionManager = lReg.Add(lInfoCardsView, lRqViewID, True)
       lInfoCardsView.SetRegionManager(lRegMan1)
       lInfoCardsView.PopulateWithInfoCards()
       mRegionManager.Regions("RequestsTabReqion").Activate(lInfoCardsView)
    Else
       mRegionManager.Regions("RequestsTabReqion").Activate(lInfoCardsView)
    End If
    Which correctly inserted the tabItem and navigated to the correct tab.
    With the RadTabControl the tab is created but the content area associated to the Tab is not shown. Also the repositioning on the correct tab no longer works.
    How can I get this to work with the RadTabControl?

The RadTabControl code I use:
<telerik:RadTabControl Grid.Row="1" AutomationProperties.AutomationId="RequestTabView"  DropDownDisplayMode="Visible" Margin="2,2,2,2"
                        prism:RegionManager.RegionName="RequestsTabReqion" BackgroundVisibility="Collapsed"
                        prism:RegionManager.RegionContext="{Binding CurrentEmployee}" TabStripPlacement="Top"  BorderThickness="3" BorderBrush="#FF6B43A9" Background="{x:Null}" >
</telerik:RadTabControl>

Any help would be greatly appreciated.
Thanks in advance,
Dragos
Tina Stancheva
Telerik team
 answered on 20 Mar 2014
1 answer
135 views
Hi, I'm trying to pass a list into GridView. It always display the correct number of rows according to the list I pass in, but all cells are blank. Any idea why this is so?

<telerik:RadGridView x:Name="gridCommsEqp" CanUserDeleteRows="False" ItemsSource ="{Binding}" AutoGenerateColumns="False" CanUserInsertRows="False" IsSynchronizedWithCurrentItem="True" ColumnWidth ="Auto" Width ="500" Margin="488,23,62,262" CanUserResizeRows="True" IsReadOnly="True" MouseDoubleClick="gridCommsEqp_MouseDoubleClick">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=SSN}" Header="SSN" UniqueName="SSN" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Description}" Header="Description" UniqueName="Description" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CurrentQty}" Header="CurrentQty" UniqueName="CurrentQty" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=TotalQty}" Header="TotalQty" UniqueName="TotalQty" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Assemblage}" Header="Assemblage" UniqueName="Assemblage" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=UI}" Header="UI" UniqueName="UI" TextWrapping="Wrap"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

Dictionary<string, List<CommsEqp>> sd = new Dictionary<string, List<CommsEqp>>();
            sd = issueAdapt.getAllCommsEqp();
            gridCommsEqp.DataContext = sd["nonSetEquips"];
        }
//gridCommsEqp.DataContext = issueAdapt.getAllCommsEqp().DefaultView.Table;



Above are my codes. The last line, which is the commented codes, works if I get "issueAdapt.getAllCommsEqp()" to return a DataTable.

Hristo
Telerik team
 answered on 20 Mar 2014
3 answers
518 views
Hi,

I need to change the selected data template based on the state of the view model(the binding)
Here is my Xaml
(the content always point to "MainViewModel")

<telerik:RadTransitionControl

Name="radTransitionControl1"

ContentTemplateSelector="{StaticResource pageTemplateSelector}"

Transition="{Binding Transition}"

Content="{Binding}">

 

</telerik:RadTransitionControl>


Thanks in advance
Ramon
Top achievements
Rank 1
 answered on 20 Mar 2014
3 answers
448 views

0
down vote

I am very new to RadCartesianChart.I created a chart in wpf using below code.I got empty screen when i execute.I want to add any property in RadCartesianChart.HorizontalAxis or RadCartesianChart.VerticalAxis .Am I missed anything.Please help me.

<Window x:Class="LineChart.TwoVerticalAxes"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Title="TwoVerticalAxes" Height="300" Width="300">
<Grid>
<telerik:RadCartesianChart>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:CategoricalAxis />
</telerik:RadCartesianChart.HorizontalAxis>

<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis Maximum="100" ElementBrush="Orange"/>
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Series>
<telerik:LineSeries Stroke="Orange" StrokeThickness="2">
<telerik:LineSeries.DataPoints>
<telerik:CategoricalDataPoint Value="20"/>
<telerik:CategoricalDataPoint Value="40"/>
<telerik:CategoricalDataPoint Value="35"/>
<telerik:CategoricalDataPoint Value="40"/>
<telerik:CategoricalDataPoint Value="30"/>
<telerik:CategoricalDataPoint Value="50"/>
</telerik:LineSeries.DataPoints>
</telerik:LineSeries>

<telerik:LineSeries Stroke="Blue" StrokeThickness="2">
<telerik:LineSeries.VerticalAxis>
<telerik:LinearAxis HorizontalLocation="Right" ElementBrush="Blue" />
</telerik:LineSeries.VerticalAxis>
<telerik:LineSeries.DataPoints>
<telerik:CategoricalDataPoint Value="30"/>
<telerik:CategoricalDataPoint Value="20"/>
<telerik:CategoricalDataPoint Value="15"/>
<telerik:CategoricalDataPoint Value="50"/>
<telerik:CategoricalDataPoint Value="20"/>
<telerik:CategoricalDataPoint Value="60"/>
</telerik:LineSeries.DataPoints>
</telerik:LineSeries>
</telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
</Grid>
</Window>
Martin Ivanov
Telerik team
 answered on 20 Mar 2014
4 answers
511 views
How to set CellStyle with Auto Generated Columns?

CellStyle is usually set within GridViewDataColumn <t:GridViewDataColumn CellStyle="{StaticResource MyCellStyle}"

But what if AutoGenerateColumns is set to true?

I tried in code behind but couldn't find what to cast the object FindResouce returns to:

        private void GridViewDataControl_OnDataLoading(object sender, GridViewDataLoadingEventArgs e)
        {
            var rgv = sender as RadGridView;
            if (rgv == null) return;
            foreach (var col in rgv.Columns)
            {
                col.CellStyle = FindResource("MyCellStyle") as ?
            }
        }
Dean
Top achievements
Rank 1
 answered on 20 Mar 2014
9 answers
218 views
Hello,

We are having a situation where the ContextMenu property for the RadRichTextBox is showing as null.  What would cause this?  Could this be from assembly reference issues?  We have one application that is working and another that is not even though they are running the same code/xaml from a shared assembly.

Thanks,
Wil
Wil
Top achievements
Rank 1
 answered on 20 Mar 2014
1 answer
163 views
I'm certain I've seen a forum post on this topic before but I've been unable to track it down again so sorry for any duplication. 

I have a bar chart that shows several different series with one numerical and one categorical  axis. Is it possible to hide a category on the CategoricalAxis in a similar way that hiding series is possible, without have to rebuild the chart from scratch excluding the "hidden" data?

Thanks,

Andy.
Martin Ivanov
Telerik team
 answered on 20 Mar 2014
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
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?