Telerik Forums
UI for WPF Forum
1 answer
69 views
I have added several columns into gridview in the code, the binding is something like a[" + Index + "].b while Index  is a number like 0,1,2. So how to solve the problem since the added column cannot be drag or sort. I have already tried set DataType, seems like not ok.
Stefan
Telerik team
 answered on 13 May 2016
1 answer
80 views

Hey all,

So to start, let me say that I have a project built out to learn with...I'm trying things out just to figure out better patterns and whatnot when building up apps since I've been doing a lot of that lately and I've started a blog to document my experiences.

What I was doing initially was creating a project to figure out which was better to use...a BackgroundWorker or Task for doing background processing of getting a data source for the grid.  What I ended up with was a test app that is buried under a mountain of bad perf and it locks the UI up until it's darn good and ready to let it go.  As far as I can tell in my source code...I'm not attaching any of the BackgroundWorker or Task threads to the UI thread...so I'm pretty confused as to what's going on.

If I just do one at a time, the table starts filling up with data before the RadBusyIndicator can even bring up it's UI...if I try 2 or 3...I start seeing the RadBusyIndicator doing it's thing...but the UI is still responsive.  If I do all 12...the UI is stuck for a good 10 minutes (my test database has more than 250,000 records in each table).

My source files can be found at the following blog post (If you'd rather I posted them here I can do that as well...)

Any thoughts as to what I'm doing wrong?  Thanks in advance.  :)

Stefan
Telerik team
 answered on 13 May 2016
1 answer
66 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
70 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
84 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
171 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
111 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
118 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
168 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
599 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
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?