Telerik Forums
UI for WPF Forum
4 answers
456 views

Is there a way to change the appointment item height in timeline view?

I tried with:

<Style x:Key="CategoryStyle" TargetType="telerik:AppointmentItem">
  <Setter Property="Height" Value="100" />
</Style>

and when I compile+run, the height doesn't change.

Please advise.

Vladi
Telerik team
 answered on 15 Oct 2012
1 answer
107 views
I'm having a brutal time styling the RadCalendar nested in RadDateTImePicker.

Mainly, when I follow the instructions here:

http://www.telerik.com/help/wpf/raddatetimepicker-styling-raddatetimepicker.html

The resources are not created in my ResourceDictionary as documented.  I'm simply presented with one style and control template; it appears to be using the native styles built into the control natively instead of spawning the resources in the above walk through.

I'm able to style my own header elements, but getting at the colours for the Calendar grid is where I'm stumped--it's using the 'office black' theme colours.

Any help is appreciated.

-Sheldon
Vladi
Telerik team
 answered on 15 Oct 2012
1 answer
904 views
I've looked through your forum about this but can only find half working workarounds.

Consider the following GridView:

<telerik:RadGridView ItemsSource="{Binding ItemsView}" AutoGenerateColumns="False"
        IsSynchronizedWithCurrentItem="True"
        ValidatesOnDataErrors="InViewMode" 
        EditTriggers="CellClick"
        CanUserDeleteRows="True"
        CanUserInsertRows="True">
    <telerik:RadGridView.Columns>
        <telerik:GridViewComboBoxColumn Header="Currency" 
            DataMemberBinding="{Binding CurrencyCode,UpdateSourceTrigger=PropertyChanged}" 
            ItemsSource="{Binding Path=DataContext.AllCurrencyCodes,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}"
            />
        <telerik:GridViewDataColumn Header="Rate"
            DataMemberBinding="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"
            />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

Here I bind to POCO objects that implement INotifyPropertyChanged. As soon as a change is detected, I light up a Save button.
However, the property does not get changed until the user steps out of the cell, thus preventing the immediate click on the save button!

There is a workaround for simple textboxes;
<telerik:GridViewDataColumn Header="Rate" 
        DataMemberBinding="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"
    <telerik:GridViewDataColumn.CellEditTemplate
        <DataTemplate
            <TextBox Text="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"/> 
        </DataTemplate
    </telerik:GridViewDataColumn.CellEditTemplate
</telerik:GridViewDataColumn>

However, this trick fails miserably for Date-fields, since your otherwise great date picker gets supressed. :(

I really want a fix for this, that I consider a bug. Is there any chance of that ever happening?
Dimitrina
Telerik team
 answered on 15 Oct 2012
4 answers
648 views
I have placed a radlistbox in a dropdown button.  I have SelectionMode = Single.  I have an event handler for the selectionchanged to know which item they selected.  In that handler I set the dropdown button to close, get the item and clear the selection.  I do this so that the next time the user opens the menu there is not an item selected in the listbox.  I have tried 3 different things but the highlight of the item does not go away.  I have tried:

SelectedItems.Clear();
SelectedItem = null;
SelectedIndex = -1;

As previously stated, none of these clear the UI selection.  The SelectedItem property is set to null, but all previously clicked on items are still highlighted in the UI.

Thanks in advance,
Lee
Georgi
Telerik team
 answered on 15 Oct 2012
1 answer
296 views
I have the following chart set up where I would like to display gridlines:

<telerik:RadCartesianChart Grid.Row="1">
    <telerik:RadCartesianChart.Behaviors>
        <telerik:ChartTrackBallBehavior />
        <telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" />
    </telerik:RadCartesianChart.Behaviors>
    <telerik:LineSeries ItemsSource="{Binding PraGasProductionChartPoints}"
                        CategoryBinding="Date"
                        ValueBinding="Value">
        <telerik:LineSeries.HorizontalAxis>
            <telerik:DateTimeContinuousAxis  Minimum="{Binding MinimumChartDate}"
                                                Maximum="{Binding MaximumChartDate}"
                                                LabelStyle="{StaticResource labelFontStyle}"
                                                MajorStepUnit="Year"
                                                MajorStep="3"
                                                LabelFormat="yyyy"
                                                />
        </telerik:LineSeries.HorizontalAxis>
        <telerik:LineSeries.VerticalAxis>
            <telerik:LinearAxis LabelFormat="#,#" />
        </telerik:LineSeries.VerticalAxis>
    </telerik:LineSeries>
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
    </telerik:RadCartesianChart.Grid>
</telerik:RadCartesianChart>

My chart displays fine but I don't get any gridlines to show up on the chart. I assume I'm doing some basic thing wrong. Please help.

Thanks,
Mike 
Petar Kirov
Telerik team
 answered on 15 Oct 2012
1 answer
61 views
Here comes another similar question, Since I have already known that the copy of cell will only copy the raw text. How about print and export to excel ? Is that possbile to retain the format in every possible way ? (Mainly font family, font size, font stretch are defined as functional requirement) 

Thanks,

Fan, Yi-Jie
Vlad
Telerik team
 answered on 15 Oct 2012
1 answer
135 views
Hi,

I am using radgridview panel in side a grid , but as a default behaviour the GridviewGroupPanel of radgridview occupy the area above radgridview as shown in the attatchment (currentBehaviour.png)

My requirement is to move the GridviewGroupPanel to a column inside parent grid rather than having it at default position as shown in the attatchment (RequiredBehaviou.png), can this be done , if yes then could you please provide the solution ?

Thanks,
Ankush
Vlad
Telerik team
 answered on 15 Oct 2012
2 answers
148 views
Hello friends,

I have a RadGridView in which I want to give Edit as the last column. I want it to be either a link or a button so that when I click on Edit(which is there as the last column value for all the rows), I can display a page in which I can give provision for editing the fields. I cannot use inline edit option since I cannot display all the columns of the data source in the grid. But when user clicks on Edit, the user must be able to edit all the fields of the data source rather than what is being displayed in the grid. How can I do this??

When I did a search I found that GridViewCommandColumn can be used for similar purposes but I don't know how to add this coulmn through xaml.

Please help.

Thanks in advance
Priya

Priyalakshmi
Top achievements
Rank 1
 answered on 15 Oct 2012
4 answers
105 views
Hi Guys,

I used telerik wpf gridview to bind a collection source, the every data item have a foreign key related other tables, so I use the GridViewComboBoxColumn to show the relation and make user can change it . below is my code
<telerik:GridViewComboBoxColumn Header="{common:Translate Group}"
UniqueName="ColourGroupingID"
DisplayMemberPath="Description"
ItemsSource="{Binding ColorEntityCollection}"
SelectedValueMemberPath="ColourGroupingID" DataMemberBinding="{Binding ColourGroupingFk}"
>
</telerik:GridViewComboBoxColumn>
In above code, you can see ColorEntityCollection have two properties used for valuePath and displayPath of combobox, dataItem's ColourGroupingFk is foreign key. Everything is ok, but the filtering, the gridview unexpectedly filtered by ColourGroupingFk  , not expected DisplayMemberPath : Description . Please see attachment.

How can I do this? PS: I also set Gridview's FilteringMode = FilteringMode.FilterRow for using a header filter row.  I read many threads on forum, many thread recommand :
<telerik:GridViewComboBoxColumn.FilteringControl>
                    <Controls1:ComboColumnFilteringControl />
                </telerik:GridViewComboBoxColumn.FilteringControl>

But our team don't need popup filter window, only row filter. Please help me.. Thanks very much!






Deng
Top achievements
Rank 1
 answered on 15 Oct 2012
0 answers
141 views
Telerik: 2012.2.912.40 (RadControls for WPF Q2 2012 SP2)
OS: Windows 7

Problem: I have a WPF Class Library project, after dragging a DataPager to my UserControl, I get "Could not load file or assembly 'Telerik.Windows.Controls.Data, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified."

But if I make my project's output type to Windows Application, my project runs fine.

Is there an issue with DataPager and wpf class library projects?

Please help.

Thanks,
Mark
Mark
Top achievements
Rank 1
 asked on 15 Oct 2012
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
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?