Telerik Forums
UI for WPF Forum
4 answers
106 views
Hi,
is there a way to collapse panelbar up? Because now its taking 100% of rest height. If i have 2 panelbar items they get 50% of the content, and what i need is, that for example when there are two panelbar items first will get height of his all controls, and second panelbar will get rest. Sorry for mine english i dont know how to explain it ;)

Regards,
Zbigniew Kozłowski
Tina Stancheva
Telerik team
 answered on 24 Apr 2010
1 answer
64 views
I am using the grid as the source for my drag and drop in the RadDragAndDropManager.  I have one small issue and that is when I have a selected item in the grid and try to drag the scrollbar, it initiates the drag of the selected item.  How can I detect what part of the grid is under a specifc point?  I was planning on using the MouseClickPoint of the drag event args.

Thanks,
David Ribb
Tsvyatko
Telerik team
 answered on 23 Apr 2010
7 answers
234 views
i have a dataset with a column that contains image in byte format.

how can i do to bind the column in the dataset that contans the image with a gridviewimagecolumn and add to radgridview?

thnks for your help

Oscar Zapata
Imran Aliyev
Top achievements
Rank 1
 answered on 23 Apr 2010
1 answer
138 views
Hi all,

I am running into an problem binding the RadGridView to an empty ObservableCollection<>.

The Scenario.
Define a RadGridView with columns that bind to properties of type DerivedT which is based on type BaseT. Bind the ItemsSource to an empty ObservableCollection<BaseT>.

The problem
When the window is loaded, I receive a first chance exception of 'Property with name <..> cannot be found ot type BaseT.

We are currently using version '00547RadControls_for_WPF_2010_1_0416_Dev'  and this was working with the 0309 version of rad controls.

If required, I have a simple example that reproduces the error on a machine runing the above mentioned version but works fine on a machine running the 0309 version. I have attached screen shots of the exception and the stack trace.

Any help would be appreciated.
Stefan Dobrev
Telerik team
 answered on 23 Apr 2010
4 answers
127 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
268 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
125 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
58 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
170 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
120 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
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?