Telerik Forums
UI for WPF Forum
2 answers
120 views
How do I change the celltype/celledittype on autogenerated columns?
I've done the following but it doesn't work.  It assigned the template, but doesn't seem to display the template.

private void fullyLoadedCostListRadGridView_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e) {
    e.Column.CellTemplate = (DataTemplate)FindResource("telerikContentColumnTemplate");
}
David Brenchley
Top achievements
Rank 1
 answered on 05 Nov 2010
3 answers
328 views
I am editing a row in a RadGridView (WPF -- form application). I want to use the CellEditEnded event, when they are done editing a particular cell, I want to move the focus back to a textbox on the form. When the user hits Tab the CellEditEnded event fires and that seems to be the even to use.

I can trap for the column and when I call txtProductCode.Focus(); nothing happens. When I hit tab again the next cell in the same grid row has focus. So it is behaves like it needs to 'leave' the grid first.

Any thoughts?

private void gvCount_CellEditEnded(object sender, Telerik.Windows.Controls.GridViewCellEditEndedEventArgs e)
{
    //if edit editing on Quantity cell, then position focus to product code -- edit end typically comes from when tab key is clicked
    if (e.Cell.Column.UniqueName == "Quantity")
    {
        txtProductCode.Focus();
    }
}
Maya
Telerik team
 answered on 05 Nov 2010
6 answers
248 views
Hello,

We are binding a RadGridView to a property (Observable Collection of Entities) in an MVVM scenario. Within this grid we have a GridViewCheckBoxColumn that has a DataMemberBinding to a string property within our entities. Since the string is always "0" or "1" we use a ValueConverter to convert to Boolean - True/False in order to tick the checkbox. We found that the converter always calls the "Convert" method instead of the "ConvertBack" upon setting the value....

For test purposes we were binding a standard GridViewDataColumn to the same converter to ensure it is working properly which it does....

Example:
    <Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="0.913*"/>  
        </Grid.RowDefinitions> 
        <Expander Grid.Row="1" 
            Header="Berthing Slots" 
            IsExpanded="True" 
            VerticalAlignment="Top" Margin="0,4.988,0,0">  
            <telerik:RadGridView x:Name="radBerthingSlots" 
                AutoGenerateColumns="False" 
                IsEnabled="True" 
                ItemsSource="{Binding BerthingSlots}" 
                SelectedItem="{Binding SelectedBerthingSlot, Mode=TwoWay}"   
                AddingNewDataItem="radBerthingSlots_AddingNewDataItem"   
                RowEditEnded="radBerthingSlots_RowEditEnded" Deleting="radBerthingSlots_Deleting">  
                  
                <telerik:RadGridView.Columns> 
                    <telerik:GridViewCheckBoxColumn Header="Available" DataMemberBinding="{Binding Path=HtDiff, Converter={StaticResource HtDiffNumberConverter}, Mode=TwoWay}" /> 
                    <telerik:GridViewDataColumn Header="HT Diff" DataMemberBinding="{Binding Path=HtDiff, Converter={StaticResource HtDiffNumberConverter}, Mode=TwoWay}" /> 
                </telerik:RadGridView.Columns> 
            </telerik:RadGridView> 
    </Grid> 
 

Now, when we change the value in the GridViewDataColumn the "ConvertBack" method is correctly (as expected) invoked....

When we do the same (ticking / unticking the checkbox on the GridViewCheckBoxColumn) it always calls the "Convert" method.....

Clearly that can't be right.... can you guys please help!

Many Thanks in advance.....

Regards

M.
Marco Barzaghi
Top achievements
Rank 1
 answered on 05 Nov 2010
3 answers
114 views
This works (default Microsoft toolbar):

        <ToolBar ItemsSource="{Binding Path=Actions}"></ToolBar>

This does not:

        <telerik:RadToolBar ItemsSource="{Binding Path=Actions}"></telerik:RadToolBar>

What i get is number of items x 2 when the toolbar is shown.

I notice that there are multiple questions revolving around this issue, but they are old. Is this still a problem in Telerik WPF controls, or am I missing something?
Viktor Tsvetkov
Telerik team
 answered on 05 Nov 2010
2 answers
157 views
I'm trying to force the row details presenter of my grid to be the full width of its parent row. This has actually has two parts to it. All my grids seem to have a column at the far left of the grid that I can't seem to remove. After that the grid in my row details seems to only take up as much room as it needs, it never expands to the space available. Its a bit difficult to explain so I've attached a screen shot of my problem. Hopefully someone can point me in the right direction!

Thanks
Rossen Hristov
Telerik team
 answered on 05 Nov 2010
1 answer
194 views
How do you set the DatePicker to show a blank / null date.

I have an intial value for datepicker but then I need to set the DatePicker to blank/null

I can set SelectedDate = null - but the display date stays the same

this

 

.calPaydate.SelectedDate = null;
this.calPayDate.displaydate =   ?????

thx

 

Kaloyan
Telerik team
 answered on 05 Nov 2010
2 answers
148 views
I'm trialing the latest version of Telerik 2010.2 WPF. So my experience with the toolkit is limited. I'm having the following problem:

I'm using XmlDataProvider as the data source. One of the elements of the XML file contains dates
    <Date>2010-10-30T01:01:01.0000000+08:00</Date>
I got around of the problem displaying those dates in a user friendly manner by handling AutoGeneratingColumn event and assigning a value converter to the Date column.

But what about filtering? I need to be able to filter the dates. I've tried to create a filter and specify member type as DateTime by for obvious reason the grid fails with invalid object type exception

var dtFilter = new FilterDescriptor("Date", FilterOperator.IsGreaterThanOrEqualTo, DateFrom);
dtFilter.MemberType = typeof(DateTime);
_filterDescriptior.FilterDescriptors.Add(dtFilter);


So my question is, when using XmlDataProvider, is there anyway to convert data to a native time (DateTime in my case).

Thanks,
Yury
Yury
Top achievements
Rank 1
 answered on 05 Nov 2010
1 answer
191 views
Hi,
   Here is the what i would like to achieve.
   I have special dates collection with fields date and description. I would like to highlight those dates with Red background in the Calendar control and in the Tooltip or Mouseover I would like to display Order details for that date in the user control.
    Is this possible ? My preference is to write code in VB.Net than XAML
   I tried to search here couldnt find anything that would meet my criteria.

Thank you
Kaloyan
Telerik team
 answered on 04 Nov 2010
1 answer
144 views
Is there a way I could determine what is the current tab item that the user is selected AND with that tab item I could dynamically load usercontrol/xaml page into the tab item.

Here's the scenario: I have two user controls one is Main page and the next is let's say Sales Page.

By default my first tab already loads the Main page, now when I want to add a new tab, I will have to load the Main page too and by that I would like to navigate to the Sales page on the second tab? I can only do navigate on the first tab but I don't know how to dynamically navigate on the succeeding new tabs? Unless I know how to determine the tab that is selected and manipulate the Content property of tabItem into the user control.

Is there any possible solutions or how is this possible? Help please. Thanks 
Petar Mladenov
Telerik team
 answered on 04 Nov 2010
5 answers
570 views
Are there any plans to incorporate the RadTreeListViewItem class from SL into WPF? I could really use this functionality. In the meantime, if anybody know how to quickly implement tri-state checking using the current RadTreeListView I'd like to see your code.

Thanks,

Corey
Corey
Top achievements
Rank 1
 answered on 04 Nov 2010
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?