Telerik Forums
UI for WPF Forum
4 answers
131 views
First of all I wanna say that I just started learning C# and XAML. I got very interested in the use of the Rad Controls and had some problems to implement a RadComboBox which refrences the selected Item in a RadGridView.

My goal is to develop a Master Detail View which uses the RadGridView for selection and a form with comboboxes and textboxes.

I am using Entity Framework and .Net 3.5

Here is my XAML Sourcecode:
    <DockPanel> 
        <Grid DockPanel.Dock="Top" > 
            <Grid.ColumnDefinitions> 
                 
            </Grid.ColumnDefinitions> 
            <Grid.RowDefinitions> 
                <RowDefinition /> 
                <RowDefinition /> 
            </Grid.RowDefinitions> 
            <StackPanel Grid.Row="0" x:Name="PlattenDetail" DataContext="{Binding Source={StaticResource PlattenView}}"
                 
                 <telerik:TextBoxEditor Text="{Binding ElementName=radGridView1, Path=SelectedItem.platteID}"></telerik:TextBoxEditor> 
                 <telerik:RadComboBox x:Name="CBLieferant" > 
 
                </telerik:RadComboBox> 
 
 
 
            </StackPanel> 
 
            <telerik:RadGridView Grid.Row="1"  Name="radGridView1" ItemsSource="{Binding Source={StaticResource PlattenView}}" AutoGenerateColumns="False" Height="582" Margin="-8,0,0,-198" 
                               > 
                <telerik:RadGridView.Columns> 
                    <telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding platteID}" /> 
                    <telerik:GridViewDataColumn Header="Lieferant" DataMemberBinding="{Binding Path=preise.lieferant.lieferantName1}" /> 
                </telerik:RadGridView.Columns> 
          
                     
 
 
            </telerik:RadGridView> 
         
        </Grid> 
 
    </DockPanel> 

As you can see I didn't populate the ComboBox with any properties. I did this because I just did alot of trial and error with SelectedItem SelectedValue(Path) and so on and never came to a result like it worked for the textbox.

Hopefully you can help me with this issue.

Konstantina
Telerik team
 answered on 23 Apr 2010
3 answers
278 views
Hi I'm just looking for a little direction and to look at what control packages I may need, I'm fairly new to WPF but I have been using vb.net for 6+ years and a little bit of C#.

I'm creating a financial dashboard app and I would like to have the the end user be able to install it as a desktop application or a browser application, I know WPF can do both, with some limitations in browser apps. I'm in the process of finding a controls for my project, currently I really like what I see with telerik RAD controls.

Controls I will most likely use,
Dock, gridview, charts tileview and maybe a treeview and a few additional.

Questions

I'm looking to not have to create and maintain two separate projects and duplicate the controls for both, Ideally I'd like to create a multi-tier project with a Data layer, controls and pages layer, a desktop app layer and a web browser app layer. Is there any additional packages that I would need to do this or would the WPF rad controls be enough? would this be a good idea to combine?

Also should I be looking into silverlight version of the RAD controls for the web instead of the WPF using XBAP?

I'm just looking for some advice or direction on which packages I may want to consider and if my controls layer idea would work with the RAD controls, I just dont want to have to maintain two sets of pages and controls.

Thanks for any advice you may be able to provide,
steve

denis curtis
Top achievements
Rank 1
 answered on 22 Apr 2010
2 answers
129 views
Hi,

I have been using the save/load layout settings for a while. I noticed that the Display Index is now being saved in the Q1 2010 which is great!

However, I have just ran into a problem where my value converter wasn't being called when the the save/load was enabled.

I then also noticed that the DataFormatString wasn't being saved, and so wasn't being loaded either, meaning my date columns weren't formatted.

I have modified the LoadState code slightly, so that it doesn't clear the GridView Columns and re-add them, but just sets the values from the saved ColumnSetting collection.

   public virtual void LoadState()  
        {  
            try 
            {  
                Settings.Reload();  
            }  
            catch 
            {  
                Settings.Reset();  
            }  
 
            if (this.grid != null)  
            {  
                grid.FrozenColumnCount = Settings.FrozenColumnCount;  
 
                if (Settings.ColumnSettings.Count > 0)  
                {  
                    foreach (GridViewDataColumn column in grid.Columns)  
                    {  
       
                        ColumnSetting setting = Settings.ColumnSettings.FirstOrDefault<ColumnSetting>(x => x.UniqueName == column.UniqueName);  
 
                        if (setting != null)  
                        {  
                            column.IsVisible = setting.IsVisible;  
                            column.DisplayIndex = setting.DisplayIndex;  
 
                            if (setting.Width != null)  
                            {  
                                column.Width = new GridViewLength(setting.Width.Value);  
                            }  
 
                        }                       
                    }           
                }  
...  
 


This is working fine for my needs currently, but it would be good to have the DataFormatString and the value converter binding saved and working correctly.

(Please let me know if what I have done isn't a good solution as I wasn't sure the reasoning behind clearing all the built GridView Columns and readding them. )

Thanks,

A Marshall

Adam Marshall
Top achievements
Rank 1
 answered on 22 Apr 2010
1 answer
60 views
Hi,
i don't know how to make for example 3 expanders one after another, so they will go up when one is collapsed, like this:

v EXPANDER_1 (IsExpanded=false)
--------------------
v EXPANDER_2 (IsExpanded=false)
--------------------
v EXPANDER_3 (IsExpanded=false)
--------------------

than

^ EXPANDER_1 (IsExpanded=true)
some controls
some controls
some controls
--------------------
v EXPANDER_2 (IsExpanded=false)
--------------------
^ EXPANDER_3 (IsExpanded=true)
some controls
some controls
some controls
--------------------

when i collapse one now, i just have free space between them.

Regards,
Zbigniew Kozłowski
Ivan
Telerik team
 answered on 22 Apr 2010
6 answers
174 views
Hi,

I want t use a telerikNavigation:RadWindow in my xbap application as a new window that the user can open.

I reviewed telerik examples but in them you us Telerik.Windows.QuickStart.Example [qsf:Example] as the base of a grid that contains the radwindow .
<Grid>
        <telerikNavigation:RadWindow x:Name="window" Header="RadWindow" WindowStartupLocation="CenterOwner"
                TopOffset="-50">
            <Image Source="/Window/Images/Window.png" Width="400" Height="244" />
        </telerikNavigation:RadWindow>
    </Grid>




How can I use the radwindo in a xbap application.

thanks,

Felipe
Konstantina
Telerik team
 answered on 22 Apr 2010
1 answer
126 views
HI,

    
I am one of the users of telerik controls. Using trial version of WPF telerik Controls. I am  facing some issues in using these controls.

1). I am using Telerik RadGridView control in my WPF windows application its take long time to load the page.

2). I am getting this error "Unknown build error, 'Exception of type 'System.OutOfMemoryException' was thrown."  if i build the application N number of times. Examining the task manager its showing my VS IDE is taking much memory. Once if I close my IDE and then reopens it works fine again.
And the same thing repeats if I build my application many times again.

Can any one help me out with what is the root cause of this issue?
As all my other WPF applications without this rad controls are working fine.

Error 1 Unknown build error, 'Exception of type 'System.OutOfMemoryException' was thrown.'

Error 2 The "ResourcesGenerator" task failed unexpectedly.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.IO.MemoryStream.set_Capacity(Int32 value)
   at System.IO.MemoryStream.EnsureCapacity(Int32 value)
   at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BinaryWriter.Write(Byte[] buffer, Int32 index, Int32 count)
   at System.Resources.ResourceWriter.WriteValue(ResourceTypeCode typeCode, Object value, BinaryWriter writer, IFormatter objFormatter)
   at System.Resources.ResourceWriter.Generate()
   at System.Resources.ResourceWriter.Dispose(Boolean disposing)
   at Microsoft.Build.Tasks.Windows.ResourcesGenerator.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) 


Thanks in advance,


Thanks & Regards,
Jayanthi.

Vlad
Telerik team
 answered on 22 Apr 2010
4 answers
134 views
Hi.. when I tab from 1 control into the TimePicker...  it first gets focus, then if I hit tab again the textbox gets focus.

How Can I tab once into the Textbox?

thanks
Jon
Top achievements
Rank 1
 answered on 22 Apr 2010
2 answers
163 views
Hi,

Should the grid filters update when a row's item implements INotifyPropertyChanged and fires PropertyChanged on a property used as part of a filter?

For example, I have a grid which has a collection (which implements INotifyCollectionChanged) and each item implements INotifyPropertyChanged and fires PropertyChanged when the IsActive property is changed. On the grid I had a filter on the IsActive property. When I enable / disable the filter it works fine, but if the IsActive property changes while the filter is enabled, the row is not then visible. If I disable / re-enable the filter, the row is visible.

Perhaps I need to manually bubble up PropertyChanged events to the collection and fire CollectionChanged?

Thanks,

Geoff
Geoff Smith
Top achievements
Rank 1
 answered on 22 Apr 2010
1 answer
171 views
I need to support having combo box columns display their drop downs when the cell is given focus, rather then the default behavior of clicking on the cell, then clicking on the dropdown arrow.  Are there any examples of doing this?
Nedyalko Nikolov
Telerik team
 answered on 22 Apr 2010
3 answers
99 views
Hi,

How can i do a transition like yours. I like it the transition you used when press button View Code in you Application Sample.

Can you help me?

Regards...
Kaloyan
Telerik team
 answered on 22 Apr 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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?