Telerik Forums
UI for WPF Forum
1 answer
400 views
I have RadDocking control with one split container and 4 RadPaneGroups each with single Pane in it. I need to implement possibility to hide and add third and fourth panes. I have done that via 
    SplitContainer.Items.Add(MyPaneGroup3);
and
    SplitContainer.Items.Remove(MyPaneGroup3);
This is working until user rearranges pane groups. After that both these calls do nothing even if PaneGroup is moved back to its initial location (at least visually). Is there a way to avoid this thing and be able to remove and add PaneGroup after user rearranged them?

Thanks in advance.
Polya
Telerik team
 answered on 07 Jul 2014
3 answers
143 views
I'm trying to create a custom editor using a comboBox. It correctly displays the combobox when I select the property, but I can't seem to get it display the collection. I'm binding it to a property on my viewmodel and stepping through the code, I know this collection is being loaded with data.

<DataTemplate x:Key="RequestorEditor">
   <telerik:RadComboBox SelectedValue="{Binding Value, Mode=TwoWay, FallbackValue=null}"
      MinWidth="100" ItemsSource="{Binding Requestors}" DisplayMemberPath="FullName"
      SelectedValuePath="UserID" />
</DataTemplate>

Is there a reason it wouldn't work?
Vega
Top achievements
Rank 1
 answered on 07 Jul 2014
4 answers
1.5K+ views
how i say in title, i have a datatemplate for a Telerik RadTileView, in the large content i have a toolbar with a play button, the idea is that when a user click this button, the images in the tile view change automatically, i already do that but i need change the image inside the play button with a stop icon, this is my data template:

<DataTemplate x:Key="contentTemplate">
            <telerik:RadFluidContentControl>
                <telerik:RadFluidContentControl.Content>
                    <Border>
                        <Image Source="{Binding Frame}" />
                    </Border>
                </telerik:RadFluidContentControl.Content>
                <telerik:RadFluidContentControl.LargeContent>
                    <Grid>
                        <Grid>
                            <Image Source="{Binding Frame}" />
                        </Grid>
                        <Border BorderBrush="Black" BorderThickness="1" Background="#80000000" Height="80" VerticalAlignment="Bottom">
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <Button Style="{StaticResource BotonGrande}" Name="BotonImagenAtras" Click="BotonImagenAtras_Click">
                                    <Image Style="{StaticResource ImagenGrande}" Source="/VisorSeproban;component/Imagenes/izquierda.png" />
                                </Button>
                                <Button Style="{StaticResource BotonGrande}" Name="BotonImagenesPlay" Click="BotonImagenesPlay_Click">
                                    <Image Style="{StaticResource ImagenGrande}" Source="/VisorSeproban;component/Imagenes/play_on.png" />
                                </Button>
                                <Button Style="{StaticResource BotonGrande}" Name="BotonCaputarImagen" Click="BotonCaputarImagen_Click">
                                    <Image Style="{StaticResource ImagenGrande}" Source="/VisorSeproban;component/Imagenes/captura_img_on.png" />
                                </Button>
                                <Button Style="{StaticResource BotonGrande}" Name="BotonImagenAdelante" Click="BotonImagenAdelante_Click">
                                    <Image Style="{StaticResource ImagenGrande}" Source="/VisorSeproban;component/Imagenes/derecha.png" />
                                </Button>
                            </StackPanel>
                        </Border>
                    </Grid>
                </telerik:RadFluidContentControl.LargeContent>
            </telerik:RadFluidContentControl>
        </DataTemplate>

Thanks for your help! Regards
Martin Ivanov
Telerik team
 answered on 07 Jul 2014
1 answer
140 views
Hi Telerik,

I have just upgraded my telerik software to the Q2 2014 version.

I know that RadMaskedTextBox have been removed. So i guess i have to use RadMaskedTextInput.

Before i had some code that allowed the user to edit a timestamp but only the hours, minutes and seconds. I did this using the RadMaskedTextBox like below:
<telerik:RadMaskedTextBox IsEnabled="{Binding IsManualCalculate}" Margin="0" Value="{Binding CalculationStart}"
Mask="HH:mm:ss" MaskType="DateTime" Width="60" />

Now that this Control have been removed i dont know how to achieve the same funcitonality. I have tried this:
<telerik:RadMaskedTextInput IsClearButtonVisible="False" IsEnabled="{Binding IsManualCalculate}" Margin="0" Value="{Binding CalculationEnd}" Mask="HH:mm:ss" Width="65" />

But the user cannot edit the text in the RadMaskedTextInput - it just displays HH:mm:ss. I can see that it does not contain the proerty MaskType.


So how would i achieve the same functionality as before?

Best regards,
Jeppe
Casper
Top achievements
Rank 1
 answered on 07 Jul 2014
2 answers
250 views
I am using the Rad Pivot grid with a SQL server 2014 installation to query SQL Server Analysis Database (Cube). I have also installed Business Intelligence studio for Visual Studio 2013. Whenever I connect the pivot grid to the SQL server database I get an error as per attached image. Basically it is saying that it cannot find "Microsoft.AnalysisServices.AdomdClient  Version 10.0.0.0. I have searched the internet for hours trying to find this file and cannot find what I need to install to get it. If it is needed by your data provider why wouldn't you include it as part of the installation?

Can someone please tell me where I can find and install this file and/or any other components I may need

Thank you
Kalin
Telerik team
 answered on 07 Jul 2014
1 answer
172 views
In the older version of the RadDiagramToolbox the RadWrapPanel was used and the items would wrap when the toolbox was resized. But now with the RadUniformGrid they are resized.  How can I switch the toolbox back to using the RadWrapPanel like before?

Thanks
Donovan
donovan
Top achievements
Rank 1
 answered on 05 Jul 2014
2 answers
180 views
GridView from WinForms version has useful feature when user can hide/show different columns in the grid. Is there similar functionality in WPF RadGridView? If yes, then how can I turn it on?
Dmitry
Top achievements
Rank 1
 answered on 05 Jul 2014
3 answers
226 views
Is it possible to select grid rows using mouse click? I mean that if I click on row it will be select but other selected rows don't become unselected.
It should behave like left click with ctrl click on keyboard.

Second maybe related question: which event may override MouseLeftButtonUp or Down after click on row? If use MouseRightButtonUp it works fine but when use leftbutton event it doesn't work. I have there breakpoint and the program doesn't break.
Yoan
Telerik team
 answered on 04 Jul 2014
2 answers
396 views
I am writing a WPF application using MVVM, I am trying to bind a nested complex object to the telerik radGridView control. I basically need to create the datagrid dynamically and I only know at run time how many columns it will have also the columns need to be generated from the rows...


The MetaDataDO class,
public class MetaDataDO
{
public int MetaItemId { get; set; }
public string Name { get; set; }
public int SequenceNumber { get; set; }
public IList<ItemDO> Volumes { get; set; }
}

The ItemDO class,
public class ItemDO
{
public int ItemId { get; set; }
public DateTime StartDateTime { get; set; }
public DateTime EndDateTime { get; set; }
public int Period { get; set; }
public decimal Price { get; set; }
}

In my view model I have a property ObservableCollection MetaDataCollection that can have N number of MetaDataDO, each MetaDataDO will have 4 Prices in it. Example data below..

MetaDataCollection
1, UK, 10,
                 Volumes
                         1, 24/01/2014 00:00, 24/01/2014 06:00, 1, 100
                          2, 24/01/2014 06:00, 24/01/2014 12:00, 2, 120
                          3, 24/01/2014 12:00, 24/01/2014 18:00, 3, 110
                          4, 24/01/2014 18:00, 24/01/2014 24:00, 4, 150

2, UAE, 20,
                  Volumes
                          1, 24/01/2014 00:00, 24/01/2014 06:00, 1, 500
                          2, 24/01/2014 06:00, 24/01/2014 12:00, 2, 140
                          3, 24/01/2014 12:00, 24/01/2014 18:00, 3, 510
                          4, 24/01/2014 18:00, 24/01/2014 24:00, 4, 550
.... can have N more...

I have no control over how these existing objects are defined, these are being returned by an external system. Once I receive the data in my viewmodel,

I want to display the results on the UI in the radGridView in the following format,

            Start            |             End             | UK | USA
--------------------------------------------------------------------
24/01/2014 00:00 | 24/01/2014 06:00 | 100 | 500
24/01/2014 06:00 | 24/01/2014 12:00 | 120 | 140
24/01/2014 12:00 | 24/01/2014 18:00 | 110 | 510
24/01/2014 18:00 | 24/01/2014 24:00 | 150 | 550

so in simple terms, i am trying to bind the property to the radGridView in the following way...

            Start            |             End                  |                                           UK                                                                                            |                       USA
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MetaDataCollection[0].Volumes[0].Start | MetaDataCollection[0].Volumes[0].End | MetaDataCollection[0].Volumes[0].Price | MetaDataCollection[1].Volumes[0].Price 
MetaDataCollection[0].Volumes[1].Start | MetaDataCollection[0].Volumes[1].End | MetaDataCollection[0].Volumes[1].Price | MetaDataCollection[1].Volumes[1].Price 
MetaDataCollection[0].Volumes[2].Start | MetaDataCollection[0].Volumes[2].End | MetaDataCollection[0].Volumes[2].Price | MetaDataCollection[1].Volumes[2].Price 
MetaDataCollection[0].Volumes[3].Start | MetaDataCollection[0].Volumes[3].End | MetaDataCollection[0].Volumes[3].Price | MetaDataCollection[1].Volumes[3].Price 

How do I bind the property which is really a complex nested object to the radGridView to achieve this output format? Any hints welcome...

Thanks
Tarun
















Nick
Telerik team
 answered on 04 Jul 2014
1 answer
94 views
Hi,

while the DateTimePicker (when adding a new Appointment) works as expected the RadScheduleView itself has several "strange" behaviors.
First - Hours are displayed in 12h format (without AM / PM marker) not in 24 hour format as set by the OS (and used by the DateTimePicker).

Next - in Timeline the Date separator is a minus sign instead of a dot.
So it shows (in correct order day month year)  03-07-2014 instead of 3.7.2014 or at least 03.07.2014.
Kalin
Telerik team
 answered on 04 Jul 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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?