Telerik Forums
UI for WPF Forum
2 answers
110 views
Hi.
I am trying to do the following:
I want to create a ComboBox which can be used like an editable Combobox (i.e. type into the Textfield and select from the auto-complete..) but only entries currently in the combobox shuld be selectable.

The description for the 3rd Combobox on the Combobox/Fist Look Examples page reads somehat like this but typing ist not allowed in that Combobox. (What I expected by setting IsReadOnly, anyhow..)

So - Is it posiible to transform the DropDownCombobox into a keyboard-navigateable-but-non-entiable-Combobox ?

Yours,
Nils
Valeri Hristov
Telerik team
 answered on 23 Sep 2009
1 answer
115 views
I have an application that uses Telerik controls, standard WPF controls such as text boxes, and some third party controls from another vendor.  I want to give my customers the ability to customize colors, brushes, etc.  The problem is that the various toolkits are using different resource keys.  If I want to tell the customer how to change the rollover background brush for buttons, I have to tell him about three different resource keys, one for System.Windows.Controls.Button buttons, one telerik buttons, and one for buttons in the other 3rd party toolset.  I would rather document one resource key that the user sets in app.xaml and then have some startup code in my app that propagates the setting to the appropriate resource dictionaries for the various tookits.
 
How do I do that with Telerik controls?  Can I just store a value for the telerik resource key in the application resource dictionary?  Or do I have to store it somewhere else?
Kalin Milanov
Telerik team
 answered on 23 Sep 2009
1 answer
482 views
Hi
I've got a data bound Combox that displays the data from the DB just fine. As the list is a little large, we allow the user to enter in text and auto complete kicks in using telerikSearch:TextSearch.TextPath="..." (as from the sample).

If the user then deletes parts of the text to something that doesn't exist in the list, the resultant entry could be invalid. I've tried various combinations of IsEditable and IsReadOnly being set to true / false but haven't got the desired behaviour.

What I would like to do is either:
1. Wire this combobox up to standard WPF validation. How does this work for this control?
2. Only allow the user to enter text that matches the list and disable them from deleting text to invalidate the entry

Thanks in advance!
Milan
Telerik team
 answered on 23 Sep 2009
1 answer
54 views
Hello everybody...
I need to trap when a cell is edit through the keyboard.
How can I do?

Thanks!

Nick
Milan
Telerik team
 answered on 23 Sep 2009
3 answers
179 views
Hi,

We are working with some large numbers on the Radial Gauge. Some of these numbers are overlapping on our custom gauge unless the font size is set unacceptably low with few labels on the gauge. Also, large numbers (in the 10s of billions range) look rather square in contrast to the curved radial scale.

Is there any way to have tick label text curve around with the radial scale? Do you have any suggestions on the best approach?

Cheers,
Wayne Reid
Andrey
Telerik team
 answered on 23 Sep 2009
3 answers
85 views
Hello,

I recently installed TELERIK 2009Q2 for WPF and every thing went fine.

When I create a new project and add a gridview control using View -> Toolbox,
the control and all the other DLLs point to the library where the older Telerik version was installed (and still exist on my computer).

I did an automatic MSI install and not a manual one.

Your help will be most appreciated.

Erez
Milan
Telerik team
 answered on 22 Sep 2009
3 answers
215 views
I have downloaded the trial and demo for the WPF. Could someone tell me how the left navigation bar is built? This is the panel with all the images for each control in the toolkit that you can select.

I open it in VS and HomePage.xaml does not seem to contain it. Examples.xml seems to contain declarations for the items in the list.

I am new to WPF and Telerik so thanks for bearing with me.
SingleMalt
Top achievements
Rank 1
 answered on 22 Sep 2009
1 answer
155 views
hi all,

i wud like to have a column chooser in my contex menu, along with other menu items. please can you let me know if there is any control for column chooser in wpf. my context menu is against gridview control.

also, i have noticed that, in wpf demos, the code behind tab shows xaml code and codebehind is not available at all. it will be helpful if you can fix it.

Thank u,
sandy
Missing User
 answered on 22 Sep 2009
5 answers
221 views
Hello,

we need drag & drop function from a datagrid to a listview, our structure is in xml.

Is this possible?

We have not found a possibility to do databinding with an xml structure,
nevertheless that's our criterion to buy this software,

thx for your help.

With regards,
Matthias

p.s. Can we customize the style/design of the several templates?
Nikolay
Telerik team
 answered on 21 Sep 2009
4 answers
244 views
When I expand the column, to view the child table, I get the error: A TwoWay or OneWayToSource binding cannot work on the read-only property 'AddressFamily' of type 'System.Net.IPEndPoint'.

I had the same error on the parent table - but got around it by explicitly defining the columns and the column bindings as one-way. Not really sure why that was required either, but it worked. But, can't figure out how to do that for the child table. And, I'm not sure if this was the correct approach anyway. 

I get this scenario to work correctly with DataSets - but don't want to have to create DataSets for the  50+ objects I need to do this for.

Any thoughts? 

The datasource is a collection of custom objects.

XAML is...
<Window x:Class="WpfApplication1.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Window1" Height="313" Width="420" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" WindowStyle="ThreeDBorderWindow" SizeToContent="Manual"
    <Grid> 
        <Grid.Resources> 
        </Grid.Resources> 
        <telerik:RadGridView  
            Name="radGridView1"  
            AllowDrop="False"  
            ColumnsWidthMode="Auto"  
            AutoGenerateColumns="False" > 
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn    
                    HeaderText="Name"   
                    DataMemberBinding="{Binding Path=Name, Mode=OneWay}"/> 
                <telerik:GridViewDataColumn   
                    HeaderText="HostName"   
                    DataMemberBinding="{Binding Path=HostName, Mode=OneWay}" /> 
                <telerik:GridViewDataColumn   
                    HeaderText="Type"   
                    DataMemberBinding="{Binding Path=Type, Mode=OneWay}" /> 
                <telerik:GridViewDataColumn   
                    HeaderText="Domain" 
                    DataMemberBinding="{Binding Path=Domain, Mode=OneWay}" /> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </Grid> 
</Window> 

code behind is:
    public partial class Window1 : Window 
    { 
        Browser browser; 
        BindingList<OtogramService> servicesBindingList = new BindingList<OtogramService>(); 
 
        public Window1() 
        { 
            InitializeComponent(); 
 
            // Create the browser 
            browser = new Browser("_http._tcp"); 
 
            // Hook the Updated event. 
            browser.Updated += new Browser.EventHandler(browser_Updated); 
 
            //create the relationship   
            var detailDefinition = new Telerik.Windows.Controls.GridViewTableDefinition(); 
            detailDefinition.Relation = new Telerik.Windows.Data.PropertyRelation("Addresses"); 
            radGridView1.TableDefinition.ChildTableDefinitions.Add(detailDefinition); 
 
            radGridView1.ItemsSource = servicesBindingList; 
        } 
 
        void browser_Updated2(Browser sender, OtogramBrowserEventArgs e) 
        { 
            switch (e.otogramBrowserEvent) 
            { 
                // note - it is possible to get an Updated* event 
                // before the Add event. 
                case OtogramService.Event.UpdatedAddress: 
                case OtogramService.Event.UpdatedTextRecord: 
                case OtogramService.Event.Add: 
                    { 
                        try 
                        { 
                            // if we have one just update it 
                            var z = (from p in servicesBindingList where p.Name == e.otogramService.Name select p).Single(); 
                            z = e.otogramService; 
                        } 
                        catch 
                        { 
 
                            // if we don't have one already - add a new one. 
                            servicesBindingList.Add(e.otogramService); 
                        } 
 
                    } 
                    break
 
                case OtogramService.Event.Remove: 
                    { 
                        // if we have one - remove it. 
                        var z = from p in servicesBindingList where p.Name == e.otogramService.Name select p; 
                        if (z.Count() != 0) 
                        { 
                            servicesBindingList.Remove(z.First()); 
                        } 
                    } 
                    break
            } 
        } 
 
        private delegate void UpdateBrowser(Browser sender, OtogramBrowserEventArgs e); 
 
        // required because WPF must execute one on one thread.  
        // This puts the callback into the WPF thread's dispatch queue. 
        void browser_Updated(Browser sender, OtogramBrowserEventArgs e) 
        { 
            UpdateBrowser func = browser_Updated2; 
            this.Dispatcher.BeginInvoke(func, new object[] { sender, e }); 
        } 
    } 
 

Rossen Hristov
Telerik team
 answered on 21 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?