Telerik Forums
UI for WPF Forum
1 answer
189 views
We have columns that sort the default way, which is fine. No custom sorting.

What we want to do, however, is skip the SortingState.None... and always either sort ascending or descending.

So what I tried was to capture the Column.SortingStateChanged event, and set the state to "Ascending" when the new state was "None". This did not have the desired effect.

I expected the column to sort the grid by its values in Ascending order. Instead, it assigned the current state (unsorted) to Ascending.

----

In summary, we don't want three-state sorting. We want ascending or descending only, once a user clicks on the column header.



Thanks,
Chad Lehman
20th Century Fox
Pavel Pavlov
Telerik team
 answered on 10 May 2013
1 answer
159 views
Is it possible to create custom Source and Target caps on a connection? For instance, instead of an arrow I want to use a small image.
Thanks
Pavel R. Pavlov
Telerik team
 answered on 10 May 2013
2 answers
335 views

I have a radcombobox which is TextSearchEnabled and Editable. The issue is whenever there is a textchanged it automatically selects the first item that is matched and that actually filters out the other dropdown which i wanted to restrict it.

Is there anyway i can restrict this behavior and only update the selected item on lost focus

<telerik:RadComboBox x:Name="ComboBox"
                          ItemsSource="{Binding Users}" 
                          SelectAllTextEvent="GotFocus"
                          IsTextSearchEnabled="True"
                          IsEditable="True"
                          telerik:TextSearch.TextPath="FullName"
                          IsFilteringEnabled="True"
                          SelectedItem="{Binding SelectedUser}"
                          TextSearchMode="Contains"
                          MinWidth="80"
                          DisplayMemberPath="FullName"/>
Nivid
Top achievements
Rank 2
 answered on 09 May 2013
1 answer
83 views
Hello,

Is there still no way to have disabled RadGridView with enabled ScrollBars?

I have tried adding ScrollViewer around RadGridView, to get the ScrollBar. but this gets very slow with ~1000 rows.
Pavel Pavlov
Telerik team
 answered on 09 May 2013
0 answers
144 views
When I export as an MS Word file, and then open this document in Word, the Style selector shows some standard styles provided by the RadDocument (e.g. "Heading 1" etc.), plus the styles I have defined.
What I want to be able to do is to replace the default "Header x" styles with styles that I have defined. Is this possible?
Erik
Top achievements
Rank 1
 asked on 09 May 2013
1 answer
199 views
Hi

Here is my collection
public ObservableCollection<dynamic> Items{get; set;}

My binding is like:
radGridView.ItemSource = Items.Where(i => i.IsVisible);

So it is binding with Enumerable<dynamic> instead of Items and hence getting disconnected. Then if is add/delete any item in ObservableCollection<dynamic>, no reflection. I do not want to rebind grid as i need to preserve the scrolling.

Please help me to find a solution.

Thanx
Ilias Hossain
Rossen Hristov
Telerik team
 answered on 09 May 2013
2 answers
356 views
Hello,

im interested in converting an existing usercontrol which is made with the microsoft charts to the telerik Chartview. 
For that i would need the ability to drag and drop a datapoint in the displayed graph and change its position/value in the graph by dragging it.

Is this possible with the chartview control? if so then how can i achieve this behavior? 

In case my description isnt clear there is an example in the Forms Samples Environment of what i need to do: 
Content Tab > Chart Features > Interactive Charting > Selection > Changing values by dragging.
http://archive.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591

thanks in Advance,
Mikk
Mikk
Top achievements
Rank 1
 answered on 09 May 2013
1 answer
177 views
Hello,

I'm trying AnimationSelector Expand/Collapse not work in WPF in Silverlight not any problem. Thanks.

<Style x:Key="RadComboBoxStyle" TargetType="telerik:RadComboBox">
    <Setter Property="Template" Value="{StaticResource NonEditableComboBox}"/>
    <Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox}"/>
    <Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox}"/>
    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    <Setter Property="VerticalContentAlignment" Value="Center"/>
    <Setter Property="MinHeight" Value="22"/>
    <Setter Property="Padding" Value="4,0,20,0"/>
    <Setter Property="Background" Value="{StaticResource MarkerBrush}"/>
    <Setter Property="BorderThickness" Value="1"/>
    <Setter Property="UseLayoutRounding" Value="True"/>
    <Setter Property="telerik:AnimationManager.AnimationSelector">
        <Setter.Value>
            <telerik:AnimationSelector>
                <telerik:AnimationGroup AnimationName="Expand">
                    <telerik:SlideAnimation Direction="In" SlideMode="Top" TargetElementName="PopupRoot"/>
                </telerik:AnimationGroup>
                <telerik:AnimationGroup AnimationName="Collapse">
                    <telerik:SlideAnimation Direction="Out" SlideMode="Top" TargetElementName="PopupRoot"/>
                </telerik:AnimationGroup>
            </telerik:AnimationSelector>
        </Setter.Value>
    </Setter>
    <Setter Property="FontFamily" Value="Segoe UI"/>
    <Setter Property="FontSize" Value="12"/>       
    <Setter Property="BorderBrush" Value="{StaticResource MainBrush}"/>
    <Setter Property="Foreground" Value="{StaticResource BasicBrush}"/>
    <Setter Property="ItemContainerStyle" Value="{StaticResource RadComboBoxItemStyle}"/>
</Style>
Masha
Telerik team
 answered on 09 May 2013
1 answer
239 views
Hello,
I have a problem with grid repainting/coloring the RadHorizontalLinearGauge that is inside my colum cell template when the datasource of the grid is changed. Let me explain my scenario, I have the following class:
public class Strand : BaseObject
    {
        private long stranNo;
        public long StrandNo
        {
            get { return this.stranNo; }
            set { this.stranNo = value; this.OnPropertyChanged("StrandNo"); }
        }
 
        private string strandName;
        public string StrandName
        {
            get { return this.strandName; }
            set { strandName = value; this.OnPropertyChanged("StrandName"); }
        }
 
        private List<GridData> gridData;
        public List<GridData> GridData
        {
            get { return gridData; }
            set { gridData = value; this.OnPropertyChanged("GridData"); }
        }
 
        private bool isSelected;
        public bool IsSelected
        {
            get { return isSelected; }
            set { isSelected = value; this.OnPropertyChanged("IsSelected"); }
        }
    }
As you can see, it has 4 properties and one of them is the list of data to be binded on the grid. My view model contains only the list of Strands. So I made an itemcontrol that has as source the list of strands and creates a radio group button for each element in the list. The ItemsSource of the grid is binded to the selectedStrand, and the data are changing in base of the selected radio button. Here is the xaml
<Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <ItemsControl ItemsSource="{Binding Strands}" Grid.Row="0">
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <RadioButton Content="{Binding StrandName}" Margin="5" IsChecked="{Binding IsSelected}" GroupName="Strands"/>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Horizontal" />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </ItemsControl>
                <Button Content="Rebind" Margin="5" Grid.Row="1" MaxWidth="80" Click="RebindButton_Click"/>
                <GroupBox Header="Grid" Margin="5" Grid.Row="2">
                    <telerik:RadGridView x:Name="Grid"
                                     Margin="5"
                                     IsFilteringAllowed="True"
                                     IsReadOnly="True"
                                     CanUserFreezeColumns="True"
                                     CanUserReorderColumns="False"
                                     CanUserResizeColumns="True"
                                     RowIndicatorVisibility="Collapsed"
                                     AutoGenerateColumns="False"
                                     ScrollViewer.CanContentScroll="True"
                                     ScrollViewer.VerticalScrollBarVisibility="Visible"
                                     ItemsSource="{Binding SelectedStrand.GridData}">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="Name"
                                                    DataMemberBinding="{Binding Name}"
                                                    HeaderTextAlignment="Center"
                                                    Width="Auto" />
                            <telerik:GridViewDataColumn Header="Value"
                                                    DataMemberBinding="{Binding Value}"
                                                    HeaderTextAlignment="Center"
                                                    TextAlignment="Left"
                                                    Width="Auto" />
                            <telerik:GridViewDataColumn Header="Gauge"
                                                HeaderTextAlignment="Center"
                                                Width="*" >
                                <telerik:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <telerik:RadHorizontalLinearGauge Margin="5" Height="15">
                                            <telerik:HorizontalLinearScale
                                                Min="{Binding MinGaugeValue, Source={StaticResource Model}}"
                                                Max="{Binding MaxGaugeValue, Source={StaticResource Model}}"
                                                LabelFormat="{}{0}"
                                                LabelLocation="OverCenter"
                                                FontSize="8"
                                                FontFamily="Comic Sans MS"
                                                FontStyle="Normal"
                                                MajorTickLocation="OverOutside"
                                                MiddleTickLocation="OverOutside"
                                                MinorTickLocation="OverOutside"
                                                RangeLocation="OverCenter"
                                                MajorTickRelativeHeight="0.2"
                                                MiddleTickRelativeHeight="0.1"
                                                MinorTickRelativeHeight="0.05"
                                                MiddleTicks="1"
                                                RelativeHeight="1"
                                                RelativeWidth="1"
                                                RelativeX="0"
                                                RelativeY="0.5"
                                                Foreground="Black"
                                                Ranges="{Binding VariableRanges, Converter={StaticResource variableRangeToTelerikRanges}}">
                                                <telerik:LinearScale.Indicators>
                                                    <telerik:Marker telerik:ScaleObject.Location="Inside"
                                                    telerik:ScaleObject.RelativeWidth="0.04*"
                                                    telerik:ScaleObject.RelativeHeight="0.5*"
                                                    Value="{Binding Value}"/>
                                                </telerik:LinearScale.Indicators>
                                            </telerik:HorizontalLinearScale>
                                        </telerik:RadHorizontalLinearGauge>
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellTemplate>
                            </telerik:GridViewDataColumn>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </GroupBox>
            </Grid>
The first time that the application starts everything is ok and for all the rows the gauges are colored as you can see in gaugefirstload.jpg. But when the other radio button is selected and the grid's itemssource is changed the gauges are drawn inside the grid cells but there are not colored and I see them black & white as in GaugeAfterRadioChanged.jpg. When I play with the scroll the coloring of the gauges is casual as in GaugeAfterRadioChangedAndScroll.jpg. I tried to use the Rebind() of the grid, but it didn't help. Is there some event or something that can be used to force the grid to repaint itself and color the gauges when radio button changes?
I can send you the sample solution that I made and where you can see this behaviour, maybe it woud be easier for you to understand and simulate the problem, just tell me how cause the zipped solution has around 30mb.
Thanks
Kindly regards
Gina
Pavel Pavlov
Telerik team
 answered on 09 May 2013
1 answer
369 views
I have the DatePicker styled to use the Windows8 theme with the following XAML, I want to know how I can set the AccentColor on the Windows8 theme from XAML, the documentation is not clear:

<Style TargetType="telerik:RadDatePicker">
        <Setter Property="telerikControls:StyleManager.Theme"
                Value="Windows8" />
        <Setter Property="MinHeight"
                Value="20" />
        <Setter Property="Height"
                Value="20" />
        <Setter Property="FontFamily"
                Value="{StaticResource MyRegularFont}" />
        <Setter Property="FontSize"
                Value="{StaticResource NormalFontSize}" />
    </Style>

The documentation here show how to set the colors in code behind and how to access the colors in XAML but does not show how to set the colors in XAML

http://www.telerik.com/help/wpf/common-styles-appearance-colorizing-metro-theme.html



ta


Ollie

Masha
Telerik team
 answered on 09 May 2013
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?