Telerik Forums
UI for WPF Forum
1 answer
65 views

I have the same issue with the DataFormComboBoxField in a RadDataForm : (more detailed : http://www.telerik.com/forums/edit-lookup-values-with-dataformcomboboxfield )

Either i get the problem i first came for, either i have this one (with a GridViewComboBoxColumn or a DataFormComboBoxField):
                <telerik:GridViewComboBoxColumn Header="Retour 2"
                                                   DisplayMemberPath="Name"
                                                   DataMemberBinding="{Binding Team, Mode=TwoWay}"
                                                   ItemsSource="{Binding Paths, Source={StaticResource EscortViewModel}}"
                                                   />
With that, when i load the usercontrol, the value is not set/displayed in the column... BUT, when i change it, it calls the set of the viewmodel and update the ViewModel (so the displayed values).
What i can't find is how mix the two to display the data when the usercontrol is loaded AND update the value !
Thank you very much

Stefan
Telerik team
 answered on 13 May 2016
1 answer
68 views
I have the same issue with the DataFormComboBoxField in a RadDataForm : (more detailed : http://www.telerik.com/forums/edit-lookup-values-with-dataformcomboboxfield )

Either i get the problem i first came for, either i have this one (with a GridViewComboBoxColumn or a DataFormComboBoxField):
                <telerik:GridViewComboBoxColumn Header="Retour 2"
                                                   DisplayMemberPath="Name"
                                                   DataMemberBinding="{Binding Team, Mode=TwoWay}"
                                                   ItemsSource="{Binding Paths, Source={StaticResource EscortViewModel}}"
                                                   />
With that, when i load the usercontrol, the value is not set/displayed in the column... BUT, when i change it, it calls the set of the viewmodel and update the ViewModel (so the displayed values).
What i can't find is how mix the two to display the data when the usercontrol is loaded AND update the value !
Thank you very much
Stefan
Telerik team
 answered on 13 May 2016
4 answers
83 views

Hello!

I have a problem when using Windows8TouchTheme,

when alert in Windows8TouchTheme, the punctuations can not show incorrect.

but in windows7theme,it is all right.

 

Yana
Telerik team
 answered on 13 May 2016
2 answers
167 views
Hello,
Reading http://docs.telerik.com/devtools/wpf/controls/raddataform/how-to/raddatafor-edit-lookup-values-with-radcombobox.html
I have a viewmodel with (simplified):
Agent
    - long Id
    - string FirstName
    - Team Team
Team
   - long Id
   - string Name

In an UserControl (simplified):
<UserControl.Resources>
        <viewmodels:EscortViewModel x:Key="EscortViewModel" />
</UserControl.Resources>
<Grid x:Name="LayoutRoot" DataContext="{StaticResource EscortViewModel}">
<Grid.Resources>
            <DataTemplate x:Key="AgentEditTemplate">
                    <telerik:DataFormDataField Label="Last Name" DataMemberBinding="{Binding LastName, Mode=TwoWay}" Grid.Row="0" Grid.Column="1"/>
                    <telerik:DataFormComboBoxField Label="Team"
                                                   SelectedValuePath="Id"
                                                   DisplayMemberPath="Name"
                                                   Grid.Row="2" Grid.Column="1"
                                                   DataMemberBinding="{Binding Team.Id, Mode=TwoWay}"
                                                   ItemsSource="{Binding Teams, Source={StaticResource EscortViewModel}}"
                                                   />
                </Grid>
            </DataTemplate>
</Grid.Resources>
        <StackPanel>
            <telerik:RadGridView x:Name="agentViewer"
                                    ItemsSource="{Binding Agents}"
                                    AutoGenerateColumns="False"
                                    RowIndicatorVisibility="Collapsed"
                                    IsReadOnly="True"
                                    >
                <telerik:RadGridView.Columns>
                    <telerik:GridViewToggleRowDetailsColumn />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName, Mode=OneWay}" Header="Name" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Team.Name, Mode=OneWay}" Header="Team" />
                </telerik:RadGridView.Columns>
                <telerik:RadGridView.RowDetailsTemplate>
                    <DataTemplate>
                        <Grid Background="DarkGray">
                        <Grid Margin="15">
                            <telerik:RadDataForm x:Name="agentDataEdit"
                                                    CurrentItem="{Binding}"
                                                    Header="Edit agent:"
                                                    AutoGenerateFields="False"
                                                    EditTemplate="{StaticResource AgentEditTemplate}"
                                                    ReadOnlyTemplate="{StaticResource AgentEditTemplate}"
                                                    NewItemTemplate="{StaticResource AgentEditTemplate}"
                                                    >
                                </telerik:RadDataForm>
                        </Grid>
                        </Grid>
                    </DataTemplate>
                </telerik:RadGridView.RowDetailsTemplate>
            </telerik:RadGridView>
                <Grid Background="DarkGray" x:Name="panelAddNew">
                    <Grid Margin="15">
                        <telerik:RadDataForm x:Name="agentDataNew"
                                                    Header="Add agent:"
                                                    AutoGenerateFields="False"
                                                    EditTemplate="{StaticResource AgentEditTemplate}"
                                                    ReadOnlyTemplate="{StaticResource AgentEditTemplate}"
                                                    NewItemTemplate="{StaticResource AgentEditTemplate}"
                                                    ItemsSource="{Binding Agents}"
                                                    >
                        </telerik:RadDataForm>
                    </Grid>
                </Grid>
        </StackPanel>
</Grid>

Almost everything works great. In the complete form, i can edit string, long and enum (with DataFormComboBoxField). What i can't do is the binding with the Agent.Team.Id.
In fact, the value from DB is displayed (team "A" or "B"...) but when i edit the form and change the Team (list displayed in the DataFormComboBoxField), it never return in the set of the Agent.Team property.
Am I missing something or did i do something wrong ? Is there a bug or an other syntax for the DataMemberBinding="{Binding Team.Id, Mode=TwoWay}" ?
I would like to not use an Agent.TeamId property but the object please.
Thank you very much.
Stefan
Telerik team
 answered on 13 May 2016
1 answer
108 views

I would like to set the selected PageSize when showing RadDiagramPrintPreview. How can I I achieve that as the PageInfo.PageSize property of RadDiagramPrintPreview is read only?

 

My diagram page size is set to Tabloid but when I lunch RadDiagramPrintPreview for my diagram the selected PageSize is set to letter.

Dinko | Tech Support Engineer
Telerik team
 answered on 13 May 2016
4 answers
112 views

I have a grid that has a cell validating event, which sets the isValid property of the edit to false when required. As expected, I am unable to move away from the cell until I correct the error. However, I notice that the grid is still updating the underlying VM with the incorrect value. Surely this is wrong.

This is causing me an issue, because the user can still initiate a save (due to a complicated winform/wpf integration), and as such persist the incorrect value.

Stefan
Telerik team
 answered on 13 May 2016
1 answer
164 views

Hi,

The question is similar to pie chart. Basically, I have a bar chart, and the feature I wanted is that:

When mouse hover on bar, the according category axis label can be highlighted (customized color) too. Same goes that when mouse is over category axis label, the according bar area will be highlighted.

 

Same as selection behavior, I can click on category axis label to make a selection, drag-area to do multiple selection from category axis label, same as I do this from data plot area.

 

Thanks,

Mingxue

Petar Marchev
Telerik team
 answered on 13 May 2016
6 answers
581 views

Hi,

I'm using RadDiagramView on big diagram and I need to export png images.

png encoding and 91 dpi is ok for my needs, so I'm calling ExportToImage method leaving default parameters as follows:

using (var stream = File.Open($"{filename}.png", FileMode.Create))
{
   radDiagram.ExportToImage(stream);
}

On big diagrams, i'm in trouble because the quality of exported images is very low (seems blurred); I cannot understand why.

I have cloned your github xaml sdk examples and pushed it on my personal account on this url https://gitlab.com/webartoli/repro-lowquality-exporttoimage-radtreeview. You can find a repro starting Diagram/Autoscrolling project.

Repro changes:

  • Positions button will move shapes on graph
  • Export image will export png file of current diagram in current directory with random filename.

attached a picture with a comparison of the same shape on a small diagram (300 x 150px) and on a big diagram (6100 x 6100 px).

 

Am I doing something wrong ?

How can I manage properly all the options, in order to obtain the same quality regardless of the size of the diagram ?

 

Thanks

Claudio

Petar Mladenov
Telerik team
 answered on 13 May 2016
3 answers
62 views

Hi,

I have a DataForm in which there are two DataFormComboBoxField, one for the governorate and one for the delegation, and when I select a governorate in the first combo box, the ItemSource the 2nd combobox should contain the list of delagations that  belongs to the selected governorate.

Thanks.

Ivan Ivanov
Telerik team
 answered on 13 May 2016
1 answer
87 views
RadGridView In RadWizard's Content Can't Use ClipBoard by Ctrl + V
shane
Top achievements
Rank 1
 answered on 13 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?