Telerik Forums
UI for WPF Forum
5 answers
162 views

Hi there,

 in one of my apps I'm doing the following inside RadGridView:

<telerik:GridViewColumnGroup Name="WeightMonthMatchingGroup">
   <telerik:GridViewColumnGroup.Header>
      <TextBox Text="{Binding Path=ParameterOverrides.WeightMonthMatching, StringFormat=F1}" Style="{StaticResource ParamTextBoxStyle}"/>
   </telerik:GridViewColumnGroup.Header>
 </telerik:GridViewColumnGroup>

Until version 2015.1.225.45 this XAML resulted in a usable TextBox inside the GridViewColumnGroup header. Today if updated the Telerik.Windows.Controls.GridView assembly to version 2015.2.623.45 and now the header only displays "System.Windows.Controls.TextBox" as a string and no more a TextBox as before. Is this a bug or did you change this behavior on purpose?

 Cheers,

Marcel

Vera
Telerik team
 answered on 13 Jul 2015
2 answers
108 views

Hello,

 I finally got my group panel items to show the name of the column rather than the type of the object stored in the Header property.  A picture is attached.

 Unfortunately, now I lost the nice built in functionality that comes with it.

 Such as:

  • The border around the column name
  • The ability to sort the group by (asc/desc)
  • The X that slides in from the right to remove the item from the group by.

Is there a way to get that back?  Or perhaps I should be doing it a different way?

Here is my XAML:

<Style TargetType="telerik:GridViewGroupPanelItem">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate>
                <TextBlock Text="{Binding Column.Header.Name}" />
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

  Thanks in advance!

Dimitrina
Telerik team
 answered on 13 Jul 2015
1 answer
489 views

I'm using your TabControl as a region for Prism.  It is working fine in most respects, but I can't figure out how to set the header.  I've seen some related posts on this, but can't quite work it out.  I've associated the tab control with a region "Main" and host a view in it thusly:

            var mainRegion = _regionManager.Regions[RegionNames.Main];
            var workView = _container.Resolve<MultiWorkspaceView>();
            mainRegion.Add(workView);
            mainRegion.Activate(workView);

I added a property to MultiWorkspaceView called Title.  It seems to me that the context of the tab would be the view that is being hosted, but it seems not.  This doesn't work:

        <telerik:RadTabControl Grid.Row="1"
                               x:Name="MainTabControl"
                               prism:RegionManager.RegionName="{x:Static inf:RegionNames.Main}">
            <telerik:RadTabControl.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding Title, diag:PresentationTraceSources.TraceLevel=High}"></TextBlock>
                        <TextBlock Text="Workspace"></TextBlock>
                    </StackPanel>
                </DataTemplate>
            </telerik:RadTabControl.ItemTemplate>
        </telerik:RadTabControl>

I can see the Workspace text, but the binding is empty.  Any ideas?  Thanks!

 

Kiril Vandov
Telerik team
 answered on 13 Jul 2015
1 answer
108 views

Hi, I'm having a problem with the date format when I parse a date and its doesn't show the right date.

I set RadDatePicker Culture to fr-CA xaml side. and my application culture + cultureUI is set to fr-CA

I parse 03/07/2015 --> it shows 2015-03-07 = March 07 2015 it should be July 03 2015 (2015-07-03)

CodeSnipet Below.

<telerik:RadDatePicker  Grid.Column="1" Grid.Row="1"Style="{StaticResource leftRadDatePicker_style}"  Name="dateFacture"DateTimeWatermarkContent="{x:Static resources:Facture.DateWaterMark}"SelectedDate="{Binding DateFacture, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True}">  </telerik:RadDatePicker >

<Style TargetType="telerik:RadDatePicker" x:Key="leftRadDatePicker_style">
        <Setter Property="Height" Value="36" />
        <Setter Property="FontSize" Value="16" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="Culture" Value="fr-CA" />
        <Setter Property="Margin" Value="20,5,20,0" />
        <!--<Setter Property="Template" Value="{DynamicResource RadDatePickerControlTemplate}"/>-->
        <Setter Property="Validation.ErrorTemplate">
            <Setter.Value>
                <ControlTemplate>
                    <StackPanel>
                        <!-- Placeholder for the TextBox itself -->
                        <AdornedElementPlaceholder x:Name="textbox"/>
                        <TextBlock Text="{Binding [0].ErrorContent}" Style="{StaticResource ErrorText_style}" />
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsKeyboardFocusWithin" Value="True">
                <Setter Property="IsDropDownOpen" Value="True" />
            </Trigger>
        </Style.Triggers>
    </Style>
 

Thread.CurrentThread.CurrentCulture = new CultureInfo(ConfigurationManager.AppSettings["Culture"]);//Is fr-CA
 
Thread.CurrentThread.CurrentUICulture = new CultureInfo(ConfigurationManager.AppSettings["Culture"]);//Is fr-CA

 

 

 

Nasko
Telerik team
 answered on 13 Jul 2015
1 answer
174 views

Hy Team !
I am showing the DropDown menu on focus with this code :

private void RadAutoCompleteBox_GotFocus(object sender, RoutedEventArgs e)
        {
            var autoComplete = (RadAutoCompleteBox)sender;
            string searchText = autoComplete.SearchText;
            if (autoComplete.SelectedItem != null)
            {
                searchText = BindingExpressionHelper.GetValue(autoComplete.SelectedItem, autoComplete.DisplayMemberPath).ToString();
            }
            autoComplete.Populate(searchText);
        }

 

This works but it also disable the left click when I try to select something from this list. Every other way are working (right click, keyboard control, ...) just the left click doesn't.

So what can I do to fix this issue ?

Nasko
Telerik team
 answered on 13 Jul 2015
3 answers
159 views

Hi,

I'm using the lastest version of telerik version 2015.2.623.45 with implicit theme.

I'm able to add items to outlookbar at runtime by adding view in the Items collection of OutlookBar. But when the items are added or when i'm playing with the outlookbar horizontal splitter, the control never accept my first resizing and i'm always mandatory to do operation twice to be able to resize correctly the area.

You can found a sample here.

To reproduce :

1- Click many times on the button in the right side. It adds view to the outloobar in the left side.

2- Try to collapse new header with the horizontal splitter. For samples collapse two rows and release the mouse button.

3- The area is automatically resize to original size. 

4- Repeat exactly same operation works.

 

Can you help me ?

Thanks

Regards

Luc

 

Peshito
Telerik team
 answered on 13 Jul 2015
1 answer
205 views

Hi,

 I add in my charts series as trend lines (linear, logarithmic, polynomial,...). All work good but the best solution is show it as annotation that is not depending on a set of datapoints but that is draw on all current visible chart area (as a line annotation).

 Exists a strategy to draw a custom annotation (or other instrument) as a math function instead of a simple line?     

marc.

Petar Marchev
Telerik team
 answered on 13 Jul 2015
6 answers
353 views
After dynamically applying a palette to a chart, how do I find the color of a particular series on that chart based on the palette application?

My xaml is as follows:
<Controls:RadCartesianChart x:Name="chart" Palette="{Binding SelectedPalette, Mode=TwoWay}" >

If the value of  SelectedPalette changes, I want to know the resulting color of any given Series in the chart's  SeriesCollection in my xaml.cs. The types of these charts may be BarSeries, LineSeries or AreaSeries .

Thanks
Petar Marchev
Telerik team
 answered on 13 Jul 2015
13 answers
2.5K+ views
I created a GridViewDataColumn in my MVVM WPF project with CheckBox as its CellTemplate, properly bound to a boolean property of the DataContext. When I tick the check-box for the currently-selected row, everything works fine. But when I do it for a different row, the current selection does not move to that row (as it would when clicking on a text field, for instance) even though the view-model item for that row gets updated about the check-box state change.
I tried several solutions with no help, such as:
http://www.telerik.com/forums/problem-with-gridviewcheckboxcolumn-in-wpf
http://www.telerik.com/forums/propagating-gridviewcheckboxcolumn-selection-to-datamemberbinding-in-edit-mode
http://www.telerik.com/forums/gridviewcomboboxcolumn-update-on-change

Can you think of any reason this would happen?
Dimitrina
Telerik team
 answered on 13 Jul 2015
3 answers
580 views

Here is my Checkbox in RadGridView which is not implemented in MVVM. I would like to implement this MVVM.

I used interaction triggers but the command is not getting fired. How can I do this ?

<telerik:GridViewDataColumn Header="Delete" Width="60">
        <telerik:GridViewDataColumn.CellTemplate>
            <DataTemplate>
                <CheckBox HorizontalAlignment="Center" IsChecked="{Binding IsDeleted, Mode=TwoWay}" >
                    <i:Interaction.Triggers>
                        <i:EventTrigger EventName="Checked">
                            <cmd:EventToCommand Command="{Binding DiagramChecked}" />
                        </i:EventTrigger>
                    </i:Interaction.Triggers>
                </CheckBox>
            </DataTemplate>
        </telerik:GridViewDataColumn.CellTemplate>                  
    </telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Header="Delete" >
  <telerik:GridViewDataColumn.CellTemplate>
      <DataTemplate>
          <CheckBox IsChecked="{Binding IsDeleted, Mode=TwoWay }" Checked="ToggleButton_OnChecked"  Unchecked="ToggleButton_OnUnchecked">
          </CheckBox>
      </DataTemplate>
  </telerik:GridViewDataColumn.CellTemplate>
 </telerik:GridViewDataColumn>  

Dimitrina
Telerik team
 answered on 13 Jul 2015
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?