Telerik Forums
UI for WPF Forum
2 answers
60 views
First off, congratulations on a great set of controls.

I'm using the TileView for a settings page, and I don't want users to be able to minimise all the tiles - ie. I always want one of the items to be maximised. I was able to do this from the TileStateChanged event handler with the following code on each TileViewItem:

private void RadTileViewItem_TileStateChanged(object sender, Telerik.Windows.RadRoutedEventArgs e)  
        {  
            Telerik.Windows.Controls.RadTileViewItem it = (Telerik.Windows.Controls.RadTileViewItem)e.OriginalSource;  
 
            if (it.TileState == Telerik.Windows.Controls.TileViewItemState.Restored)  
            {  
                e.Handled = true;  
            }  
        } 

This seems to work great, although it flips the minimised / maximised icon at the top right of the maximised window, which can look a little strange, although quite acceptable.

Is there a more elegant way of achieving the same?

Thanks.
jwhitley
Top achievements
Rank 1
 answered on 04 Jun 2010
5 answers
82 views
Hi,

First of all want to thank you for adding this great control. 

I tried to use RadTileView control with RadFluidControl in a sample application and it works perfectly as expected. However, when I incorporated the RadTileView into our complex application the first tile item does never get maximized. The rest of the items (except the very first one) maximize and minimize. Changed the order of tile items and the problem remains on the first item. The icon on the top right corner of the TileViewItem changes to minimize/maximize/restore icons, but the view itself never maximizes. Whenever maximizing other views, the first one get minimized as expected.

Tried to use the same control (which contains RadTileView) in another empty application, and this issue does not happen.

The application uses numerous number of controls, including ribbon bar, data grids, MDI child windows, etc.

I'd appreciate if you could help to investigate this issue and solve it.

Thanks,
Ruben.


Vladislav
Telerik team
 answered on 04 Jun 2010
1 answer
67 views
Hi,

I used RadGridview and GroupDescriptor to show the records in group wise

When i am scrolling, some of the records are getting hidden(Showing blank spaces).

Can you help me in this.




Thanks,
Surya.



Maya
Telerik team
 answered on 04 Jun 2010
5 answers
659 views
I'm currently evaluating the GridView component for a prototype of an application and I've run into some problems that may be a show-stopper for us. The architecture that we've decided to use requires that the columns are either autogenerated or (for customization) programmatically created from meta data.

I've investigated the problem with several approaches: HypeLinkColumn, DynamicHyperLinkColumn, programmatic cell template and finally XamlReader cell template. I suspect that the reason is the same, that is that the binding expression for some reason fail to map to the right column in the datacontext.

The following code will produce a DataTemplate that I assign to the CellTemplate. Currently this produces a HyperLink with the content 'System.Data.DataRow', however filling in the PathProperty of the Binding will produces a blank/empty string. This problem persists even though I known (or even hard code) a column name/binding path that I've confirmed is in the current datacontext.  

Is there something I've missed about Binding expression in CellTemplate !?
                        FrameworkElementFactory tbContent = new FrameworkElementFactory(typeof(TextBlock)); 
                        tbContent.SetBinding(TextBlock.TextProperty, new Binding());  
 
                        FrameworkElementFactory hl = new FrameworkElementFactory(typeof(Hyperlink)); 
                        hl.AddHandler(Hyperlink.ClickEvent, new RoutedEventHandler(hl_Click)); 
                        hl.AppendChild(tbContent); 
 
                        FrameworkElementFactory tb = new FrameworkElementFactory(typeof(TextBlock)); 
                        tb.AppendChild(hl); 
 
                        DataTemplate dTemp = new DataTemplate(); 
                        dTemp.VisualTree = tb
                        dTemp.Seal(); 
Finn
Top achievements
Rank 1
 answered on 04 Jun 2010
2 answers
66 views
Hello,

Is it possible to define the color of nocolor ?

I'd like to have transparent for these automatic color

Thanks
Aurore
Bobi
Telerik team
 answered on 04 Jun 2010
1 answer
144 views
Hi All

Is it possible to bind the one column to 2 fields?

The scenario is that we have a sales rep, which requires both first and last names in the one column. I have managed this with a datatemplate:
<!-- Sales Rep Name Template -->
        <DataTemplate x:Key="SalesRepNameTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding user.first_name}" />
                <TextBlock Text=" " />
                <TextBlock Text="{Binding user.last_name}" />
            </StackPanel>
        </DataTemplate>




<telerikGridView:GridViewDataColumn Header="Sales Rep" CellTemplate="{StaticResource SalesRepNameTemplate}" />

But the issue is that this column can now not be sorted or grouped or filtered, which is also required.

How else would this be possible while still retaining sorting etc?
Veselin Vasilev
Telerik team
 answered on 04 Jun 2010
1 answer
104 views
So I have two Windows (same app) and one RadGrid in each, I simply want to dragdrop from one the other.  But the problem is that I have my windows on separate threads for better UI performance. And therefore get error: "The calling thread cannot access this object because a different thread owns it."

How can I solv this?

I open My windows like this:
private void ShowMyWindow1() 
 
Thread _Thread = new Thread(() => 
            { 
                MyWindow1 _MyWindow1 = new MyWindow1(); 
         
                _MyWindow1.Show(); 
                _MyWindow1.Closed += (sender, e) => 
                _MyWindow1.Dispatcher.InvokeShutdown(); 
 
                System.Windows.Threading.Dispatcher.Run(); 
            }); 
 
            _Thread.Name = "My Window"
            _Thread.SetApartmentState(ApartmentState.STA); 
            _Thread.Start(); 


Valentin.Stoychev
Telerik team
 answered on 04 Jun 2010
2 answers
146 views
I have a GridView with a second Grid View nested inside the Row detail template, this nested GridView then has it's own detail template.  I am getting a Binding error from the DetailsPresentor for this second item.  I am guessing this has something to do with the fact that when the application is loaded, no row is selected in the top level grid view and as a result the nested grid view to which the second Details presenter is bound does not exist.
Andrew
Top achievements
Rank 1
 answered on 03 Jun 2010
5 answers
178 views
Hi, I am having a wierd problem with the WPF RadGridView control 10.1.

I am binding an ObservableCollection<> of POCO's that implement INotifyPropertyChanged and that is all.  The properties of the class are all strings.  That observable collection is databound to the ItemsSource property.  The data is bound just fine, CanUserSort is true for the control and IsSortable is true on the columns. 

Is there some sort of interface that the POCO must implement in order to sort? 

Thanks,
David Sandor
Vlad
Telerik team
 answered on 03 Jun 2010
1 answer
127 views
Hi
When I save the layout of RadDocking panes using RadDocking.SaveLayout method only those panes that are declared in xaml code are saved correctly. Layout for those created dynamically (in run-tiime mode) is not saved. Is there any way to solve this issue? Because if I declare many panes (especially those that are floating) in xaml code  makes application startup slower (too many initializations).
Thanks.
Miroslav Nedyalkov
Telerik team
 answered on 03 Jun 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?