Telerik Forums
UI for WPF Forum
2 answers
124 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
57 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
167 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
115 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
125 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
150 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
161 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
94 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
15 answers
850 views
Hi.
I have created a RadComboBox containing some 10.000 elements.
This ComboBox is horrobly slow...
What can I do ?
My own Ideas vary from
 a) Go, get your head checked, 1000 elements are the maximum if you don't want your users to die of old age in front of the screen
to
 b) use the MagicallyAutoPaging="True" Property on the Combobox

Yours,
Nils
Valeri Hristov
Telerik team
 answered on 22 Apr 2010
6 answers
579 views
Hi,

I have 2 questions regarding the filtering behavior in WPF RadGridView, The first is how to get a DataTable from the filtered data without looping over the records property (maybe generate a Linq Expression from the FilterDescriptors).

The Second is how to clear all filters by code, i tried FilterDescriptors.Clear() this will cancel the filter for the data records but the filter interface still have checkboxes on the previous selected values.


Thanks.
ClausDC
Top achievements
Rank 1
Iron
Iron
 answered on 22 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?