Telerik Forums
UI for WPF Forum
1 answer
115 views
<telerik:RadColorPaletteView HorizontalAlignment="Left"  Width="150" 
                             PaletteOrientation="Horizontal" PaletteColumnsCount="8"
                             ItemsSource="{Binding AvailableColors}" 
                             SelectedItem="{Binding TagColor, Mode=TwoWay}"
                             SelectionChanged="RadColorPaletteView_SelectionChanged"
                             />
Hi,

We are using the ColorPaletteView with a defined set of 13 colors in two rows. There is sufficient spacing between the columns but vertically the color items seem to not have any spacing between them.

How do I specify the spacing between the rows of color items?

Petar Mladenov
Telerik team
 answered on 31 Aug 2011
2 answers
101 views
I am trying to apply a Control Template to RadDataForm to round its corners but no luck so far. Any suggestions?
Marcelo
Top achievements
Rank 1
 answered on 31 Aug 2011
7 answers
165 views
Hello

Can i get all the latest res files in english just for translation purposes?

Thanks

Matthias
Top achievements
Rank 1
 answered on 31 Aug 2011
1 answer
203 views
Hi,

I have a method that use asynchronous way.

I want to update the PaletteBrushes when some data has already been prepared.

But the PaletteBrushes doesn't updated after i invoke the  asynchronous method.

Is there any way to meet my requirement?

Thanks
Yavor
Telerik team
 answered on 31 Aug 2011
1 answer
129 views
I have created the following RadTreeView:


<Style TargetType="telerik:RadTreeViewItem" x:Key="RadTreeViewItemStyle">
    <Setter Property="CheckState" Value="{Binding Path=CheckState, Mode=TwoWay, Converter={StaticResource ToggleStateToBoolean}}" />
    <Setter Property="DefaultImageSrc" Value="{Binding ListImage}" />
    <Setter Property="IsExpanded" Value="{Binding IsExpanded}" />
    <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
</Style>
<HierarchicalDataTemplate x:Key="TreeViewItemTemplate" ItemsSource="{Binding DirectoryList}" ItemContainerStyle="{StaticResource RadTreeViewItemStyle}">
    <TextBlock Text="{Binding DisplayName}"  Margin="0,0,5,0"/>
</HierarchicalDataTemplate>
  
        <telerik:RadTreeView Grid.Column="0" IsLineEnabled="True" ItemsOptionListType="CheckList" IsOptionElementsEnabled="True" IsTriStateMode="True"
                             BorderBrush="Black" BorderThickness="1" ItemsSource="{Binding RootItems}" ItemTemplate="{StaticResource TreeViewItemTemplate}"
                             IsLoadOnDemandEnabled="True" LoadOnDemand="RadTreeView_LoadOnDemand" ItemContainerStyle="{StaticResource RadTreeViewItemStyle}"
                             Background="White" Name="ExplorerTree">
        </telerik:RadTreeView>

In the codebehind, I am passing the LoadOnDemand back to my viewmodel for processing.  Everything is working exactly as it should except for when I attempt to load a node that has been selected.  If I select the node and then fire the LoadOnDemand event, it loads properly and displays all the child nodes, but then deselects the node itself.  How can I get it to stop doing this?






Petar Mladenov
Telerik team
 answered on 31 Aug 2011
1 answer
411 views
Hi All,
I am using MVVM pattern in my WPF application. I am using the Modal created by Entity Framework and my ViewModel class have public properties for binding. I have a specific requirements that my GridView should have two checkboxes columns and one TextBox column (all time in Edit mode) and all other remaining columns will be in ReadOnly mode. When user either Check/Uncheck these checkboxes OR change value in TextBox, I will have to do custom calculation on it (Note that for firing these calculation, I should have separate property in ViewModel so that I can fire in its SET clause....Am I right?)
I created the Grid in XAML like this.
<telerik:RadGridView Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="0" Name="radGridView1" AutoGenerateColumns="False" ShowGroupPanel="False"
                             ItemsSource="{Binding IndicatorsList}">
            <telerik:RadGridView.Columns>
                <col:MyColumn Header="#" Width="35"/>
                <telerik:GridViewColumn IsReadOnly="False" Header="Inc." Width="35">
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <CheckBox IsChecked="{Binding IncludeIt, Mode=TwoWay}"/>
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
                <telerik:GridViewDataColumn Header="Indicator" DataMemberBinding="{Binding DisplayName}" IsReadOnly="True" Width="250" />
                <telerik:GridViewColumn IsReadOnly="False" Header="Log" Width="35">
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <CheckBox IsChecked="{Binding LOG, Mode=TwoWay}"/>
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
                <telerik:GridViewColumn IsReadOnly="False" Header="Lag" Width="75">
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding LAG, Mode=TwoWay}"/>
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
                <telerik:GridViewColumn Header="Del." Width="35">
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <telerik:RadButton Command="{Binding Delete}" CommandParameter="{Binding}" Width="27" Height="20">
                                <Image Source="/finStat.MacroVal.UI;component/Images/del_small.png"></Image>
                            </telerik:RadButton>
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

Here is my ViewModel
public List<Indicator> IndicatorsList
        {
            get { return Indicators.ToList(); }
        }
public bool IncludeIt
{
       get { /******Here How I get current object item (i.e. Indicator) of the row so that I can return its value *********/ }
       set {  /******Here How I get current object item (i.e. Indicator) of the row so that I set its value *********/ }
}
I am really stuck that how can I create properties for these check boxes and TextBox. Basically how can I get specific row DataItem in checkbox property so that I can return specific field from that DataItem.
Although my actual Model object is Entity Framework Model, but here is sample model for this example.
public class Indicator
{
    public bool IncludeIndicator { get; set; }
    public string Name { get; set; }
    public bool Log { get; set; }
    public double Lag { get; set; }
}

Any help please?
Maya
Telerik team
 answered on 31 Aug 2011
3 answers
248 views
I am using Telerik Docking Control 2010.3.1314.35. I have set IsPinned=False in docking RadPane, but after loading it is showing animation and then hiding it. Is there any way I can disable this animation?
Miroslav Nedyalkov
Telerik team
 answered on 31 Aug 2011
1 answer
69 views
Hi,

I have tree list view, when user mouse hover on  particular cells of column, I want to generate a pup up to showing elements.It is working fine, but if there are so many elements in the pup up, it will crush and stop run anything.Can anyone help?   

<telerik:GridViewDataColumn  Header="Name" DataMemberBinding="{Binding Name, Converter={StaticResource InsensitiveRevConverter}}">
                      <telerik:GridViewDataColumn.CellTemplate>
                          <DataTemplate>
                              <StackPanel Orientation="Horizontal" >
                                  <Image Source="{Binding Image}" />
                                  <TextBlock x:Name="ShowELementPupUp"  Text="{Binding Name}" />
                                  <Popup PlacementTarget="{Binding ElementName=ShowELementPupUp}" Style="{StaticResource TooltipPopupStyle}" PopupAnimation="Scroll" >
                                      <telerik:RadGridView x:Name="RadGridViewOfPopUp"  Visibility="{Binding ShowElements}" AllowDrop="True" AutoGenerateColumns="False" CanUserFreezeColumns="False"
                                                                                                              CanUserInsertRows="False" CanUserReorderColumns="False" CanUserSortColumns="False"
                                                                                                              CanUserDeleteRows="False" ShowGroupPanel="False"
                                                                                                              GridLinesVisibility="None"  RowIndicatorVisibility="Collapsed"
                                                                                                              ShowColumnHeaders="False">
                                          <telerik:RadGridView.Columns>
                                              <telerik:GridViewDataColumn DataMemberBinding="{Binding Name, Mode=OneWay}" />
                                              <telerik:GridViewDataColumn MinWidth="20" DataMemberBinding="{Binding UnweightedPercentage, Mode=OneWay}"/>
                                          </telerik:RadGridView.Columns>
                                      </telerik:RadGridView>
 
                                  </Popup>
                              </StackPanel>
                          </DataTemplate>
                      </telerik:GridViewDataColumn.CellTemplate>
                  </telerik:GridViewDataColumn>

Thanks,

Fendy
Vlad
Telerik team
 answered on 31 Aug 2011
1 answer
134 views
Hello Telerik Team,

My application has a RadTreeListView control that can be filtered by the user.

I want to save the Filter settings in a user preferences file on application shutdown and then load and apply the filters back to the RadTreeListView on application startup.

Can you help me with  C# code snippets that will dump the filter settings to a text file and load them back from that file please?

I am using version 2011.1.419.35 of your WPF controls.

Thanks,
Kumar
Vlad
Telerik team
 answered on 31 Aug 2011
1 answer
89 views
I'm creating a dynamic number of line series in code.  Is there a way to set a different Legend Item Marker Shape for each line series?
Evgenia
Telerik team
 answered on 31 Aug 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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?