Telerik Forums
UI for WPF Forum
2 answers
241 views
I am using RadGridView to edit my business object.  My business object implements IEditableObject interface.  My requirements states each row should be edited, saved or cancelled only using buttons in that row(sort of like the behavior in asp.net's grid).  I have looked at this post and this post:
http://www.telerik.com/forums/do-not-call-endedit-on-leaving-row
http://www.telerik.com/forums/gridview-cancel-endedit

and I have also achieved the endedit and cancel edit effect using the following code:
<Button  Content="Save" CommandParameter="{Binding}" Command="telerik:RadGridViewCommands.CommitEdit"></Button>
<Button  Content="Cancel" CommandParameter="{Binding}" Command="telerik:RadGridViewCommands.CancelRowEdit"></Button>

The problem is, the default behavior of the RadGridView calls EndEdit on my businessObject even when the user selects another row either using the keyboard or the mouse click, and in the EndEdit row event lifecycles, the only event that gets called before EndEdit on the IEditableObject is called is the Row_Validating event.  So to cancel the action, that's probably the only event I where I can handle it and setting the isvalid to false.  This seems to me like a hack and it interfere with the actual business object validation.  Why isn't there a RowEditEnding event that we can use for canceling? Is there a more natural way of doing this beside handling the Row_Validating event?  Also, what are all the events that will trigger the EndEdit for the row beside left mouse click?  I would like to handle them all in the worse case scenario if there are no better way of doing this.

Yoan
Telerik team
 answered on 30 Apr 2014
1 answer
152 views
Hi,

I would like to know if it's possible to implement an interactive tooltip??? I mean by interactive tooltip, a tooltip whick contain button and close when the button was clicked.

Thank's
Alain
Konstantina
Telerik team
 answered on 30 Apr 2014
2 answers
129 views
I've added a "CapacityBar" to the TimeRulerItem as seen in the attached image. The text and progress bar are supposed to show how full each day is based on the currently displayed appointments. As seen in the image, this does currently work the first time the view is displayed. When the user makes a change that causes the AppointmentFilter to show different appointments, the capacity bar is not updated.

Here's how I added the capacity bar:
<telerikScheduleView:TimeRulerItemTemplateSelector.MonthItemTemplate>
    <DataTemplate>
        <DataTemplate.Resources>
            <converters:DateToCapacityBarCountConverter x:Key="DateToCapacityBarCountConverter" />
            <converters:DateToCapacityBarPercentConverter x:Key="DateToCapacityBarPercentConverter" />
            <converters:DateToCapacityBarVisibleConverter x:Key="DateToCapacityBarVisibleConverter" />
        </DataTemplate.Resources>
        <Grid Margin="6 2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Text="{Binding FormattedValue}" Grid.Row="0" Grid.Column="0"/>
            <Grid Margin="6 2" HorizontalAlignment="Stretch" Grid.Row="0" Grid.Column="1" >
                <Grid.Visibility>
                    <MultiBinding Converter="{StaticResource DateToCapacityBarVisibleConverter}">
                        <Binding Path="DateTime" Mode="OneWay"/>
                        <Binding Path="DataContext" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadScheduleView}}" />
                    </MultiBinding>
                </Grid.Visibility>
                <telerik:RadProgressBar Minimum="0" Maximum="100">
                    <telerik:RadProgressBar.Value>
                        <MultiBinding Converter="{StaticResource DateToCapacityBarPercentConverter}">
                            <Binding Path="DateTime" Mode="OneWay"/>
                            <Binding Path="DataContext" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadScheduleView}}" UpdateSourceTrigger="PropertyChanged" />
                        </MultiBinding>
                    </telerik:RadProgressBar.Value>
                </telerik:RadProgressBar>
                <TextBlock Margin="0" HorizontalAlignment="Center">
                    <TextBlock.Text>
                        <MultiBinding Converter="{StaticResource DateToCapacityBarCountConverter}">
                            <Binding Path="DateTime" />
                            <Binding Path="DataContext" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadScheduleView}}" UpdateSourceTrigger="PropertyChanged" />
                        </MultiBinding>
                    </TextBlock.Text>
                </TextBlock>
            </Grid>
        </Grid>
    </DataTemplate>
</telerikScheduleView:TimeRulerItemTemplateSelector.MonthItemTemplate>


How can I get the capacity bar to refresh? I've tried doing an OnPropertyChange(null) in my ViewModel to get all properties to update, but since this doesn't really seem bound to any specific property directly, that doesn't work. Is there a better way of doing this binding? How can I get this to work the way I'd like?

I'm sorry if this is a general WPF binding question instead of specific to telerik, but it had enough telerik details that I didn't think it was appropriate for a generic WPF forum.

Thank you!



Brian
Top achievements
Rank 1
 answered on 30 Apr 2014
1 answer
93 views
Hello, 

I need help because I have used a RadTreeListView and I have to generate from code behind. 

I can not seem to generate my TreeListView, I use a dataset because I can not use a class object as the number of columns is dynamic and may vary depending on the user selection. 

Would you have an example to dynamically génrérer from the code behind a TreeViewList. 

It must also be able to create the hierarchy from the code behind. 

Thank you for your help, I'm looking for 5 days on the Internet and I have found nothing to help me. 

Thank you in advance for your help. 

Mickaël
Nick
Telerik team
 answered on 30 Apr 2014
3 answers
142 views
Hi,

I have your latest components and I have problem with RadMaskedTextInput, when I reached MaxLength I was unable to overwrite selected string. When I selected all, it works, but if I selected just some part of the text I cannot overwrite it ... only backspace works.

don´t you have any workaround or suggestion how to transpass it?
Petar Mladenov
Telerik team
 answered on 30 Apr 2014
3 answers
152 views
I encountered a peculiar problem when using the RadRibbonView within the RadRibbonWindow. The problem doesn't occur when the RadRibbonView is hosted in a vanilla Window.

The problem is that the ApplicationName is duplicated when you set the Title property to empty or null in XAML or code. It doesn't occur when the property is unset. Setting the XAML using Title="" will display the ApplicationName twice. Setting a binding to the Title when the property value is null or an empty string will display the ApplicationName thrice.

For example, take this XAML (namespaces removed for brevity):

​<telerik:RadRibbonWindow x:Class="RadRibbonViewTitle.MainWindow" ...>
  
<Grid>
     
<telerik:RadRibbonView ApplicationName="My App Name"
                            
Title="{Binding AppTitle, Mode=OneWay}" />
  
</Grid>
</telerik:RadRibbonWindow>


Initially, the AppTitle property has a null value. This results in the window displaying "My App Name - My App Name - My App Name" as shown in the attached screen clip. Removing the binding and changing the relevant XAML to Title="" results in "My App Name - My App Name".

This seems to be a bug, but I'm open to the idea that I'm missing something.
Anthony
Top achievements
Rank 1
 answered on 30 Apr 2014
5 answers
180 views
Is it possible to change a data point directly through the Chart? Basically I'd select a point and then click and drag it to the new view. This would only be on lineseries or scatter.

Would the databinding work to update the viewmodel?
Petar Marchev
Telerik team
 answered on 30 Apr 2014
1 answer
115 views
Hi,

I'm trying to implement a resize behavior and I would like to know with which property of the DragDropState I have to work to get the slot and/or the appointment I'm over with my mouse during the resize operation because I need to fire and event to let the logic outside my control so I need in my event to provide the slot and/or the appointment the mouse is over during the resize process.

Thank's
Alain
Yana
Telerik team
 answered on 30 Apr 2014
3 answers
140 views
My RadPanelBar, along with several other controls, disappeared when I applied a theme to my project.

I had no idea what had happened, and I have spent 30 hours so far trying to figure it out.  Unfortunately I didn't realize for much of that time that the theme was the issue, sigh.

Along the way, desperate to try anything, I rebuilt my project and this time used the NoXaml assemblies (btw - where is an explanation of this?)  

So, finally by dumb luck figured out to add entries to the ResourceDictionary, for my RadGridView and RadImageEditor, but the RadPanelBar was still missing.

Turns out there was no theme for Telerik.Windows.Controls.Navigation (panelbar assembly) in my Themes folder.  I finally found a copy in a test sample provided in response to another forum question.   That works, although I get warnings  (app.xaml:  'An error occurred while finding the resource dictionary')

I am using RadPanelBar from the following assembly:
    UI for WPF Q1 2014\Binaries.NoXaml\WPF45\Telerik.Windows.Controls.Navigation.dll

Can I please get the appropriate version of this file for the above assembly?  :
  'Themes/OfficeBlue/Telerik.Windows.Controls.Navigation.xaml'

thanks


Robert
Top achievements
Rank 1
 answered on 30 Apr 2014
3 answers
115 views
Hi,

According release notes found in http://www.telerik.com/products/wpf/whats-new/release-history/q1-2013-sp1-version-2013-1-0403.aspx,
now PivotGrid and PivotFieldList have full support for Custom LocalizationManager.

Where can I find the keys?
The documentation isn't updated yet.

Regards, Getulio.

Rosen Vladimirov
Telerik team
 answered on 29 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?