Telerik Forums
UI for WPF Forum
1 answer
155 views
Hi,
i want to use the new Q1 2010 RadMap for WPF in a winforms project. Is this possible?
Can you give me a little step-by-step tutorial, because in my project i get no map.

I have use the same code in a wpf project, and there everything is alright.

Regards
Benjamin
Andrey
Telerik team
 answered on 12 Apr 2010
1 answer
131 views
Hi,
     I have a RadComboBox that is in a RadExpander which I have bound to a public property that returns a set of key value pairs.  I copied this same RadComboBox, renamed it, and placed it in a DataTemplate for a ListBox so when a User Selects the item in the ListBox the static text's visibility collapses and the editable fields are presented.  I am running into the problem where the RadComboBox doesn't bind.  The initial visibility of the RadComboBox is collapsed.  Any Ideas?
k f
Top achievements
Rank 1
 answered on 09 Apr 2010
2 answers
53 views
am using WPF rad controls trial version, i did a sample application and i deployed it. wen i run the application i cant see the application running. is it anything previliges like cannot deploy with trial version or something like that????
k f
Top achievements
Rank 1
 answered on 09 Apr 2010
1 answer
146 views
I had a problem with  Gauge  auto sizing.
When I assign the RadGauge control of width and height in NaN (the minimal width and height equal 0, VerticalAlignment and HorizontalAlignment – Center), I receive a control of 100 x 100 no matter what container I have (Grid, StackPanel, Canvas), though I expected to see the control of 0x0 size.
Can you tell me, why it happens? How can I avoid such situation and make auto sizing work correctly?
Andrey
Telerik team
 answered on 09 Apr 2010
2 answers
132 views
Hello,

I have a grouping in my grid which is specified in xaml. The grouping has two possible values, "Live" and "Paper".

I'd like to ensure that the "Live" grouping is always on top, regardless of how the user sorts data in the grid. (They cannot sort by the column I am using to group by).

How can this be accomplished?

Thanks
Guy Inwhitenorth
Top achievements
Rank 1
 answered on 09 Apr 2010
1 answer
95 views

Hello,

With following code snippet after connecting database(.dbml) in VS 2008 using server explorer etc – I’m able to bind database with radGridView.
Could you please write some example how can I call store procedure and/or write SQL query in order to retrive specific data?

----------------------------------------------------------------------------
var nwData = new BankDataDataContext();
radGridBankAccounts.ItemsSource = (from tbl_BankAccounts in nwData.tbl_BankAccounts select tbl_BankAccounts); 
radGridBankAccounts.IsReadOnly = true;
----------------------------------------------------------------------------

Thank you,

R

 

 

Vlad
Telerik team
 answered on 09 Apr 2010
3 answers
119 views
Hi All,

Could someone answer the question on Barcode? I know that telerik support the barcode on Reporting. But my requirement is to use the barcode in Winform. Does Telerik Barcode engine support this, if not how do I use the Barcode other than in Reporting? Looking forwards to your suggestions.

Thanks
Faisal.

Rossen Hristov
Telerik team
 answered on 09 Apr 2010
2 answers
248 views
I am using the Telerik gridview and the RadDataPager quite successfully. However how should you set the page size to cope with an adjustable container window size when the grid size is set to auto? The choice seems to be to set it to a low number to avoid vertical scrolling but have lots of space below the grid when the window is maximised, or accept vertical scrolling with a much large page size.
In an MVVM design, how would you set the page size according to physical grid and window sizes, also taking into account the group panel, for example, which might be shown or not? - or have I missed some existing functionality?

Thanks

jas


jas
Top achievements
Rank 1
 answered on 09 Apr 2010
3 answers
196 views
Hi,

I have a problem in a Grid, editing a new row previously entered. 
The sequence is this :

1. First I insert a new row. 

The code in AddingNewDataItem Event Handler of the Grid is :

        public void EUGruppoGrid_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
        {
            if (e.Cancel) return;
            String TipoCurrentItem;
            GridViewDataControl GridViewDataControl = e.OwnerGridViewItemsControl;
            if (GridViewDataControl.CurrentItem != null)
                TipoCurrentItem = ((EUGruppoVO)GridViewDataControl.CurrentItem).Tipo;
            else
                TipoCurrentItem = " ";
            e.NewObject = new EUGruppoVO(0, "", TipoCurrentItem);
        }

        the "EUGruppoVO" Constructor is :

public EUGruppoVO(Int32 id, String descrizione, String tipo)
{
this._id = id;  // in the database the fields is a identity primary key
this._descrizione = descrizione;
this._tipo = tipo;
}

the "EUGruppoVO" implements "INotifyPropertyChanged"
the "EUGruppoItemsSource" is an instance of : "public class EUGruppoVOList : ObservableCollection<EUGruppoVO>"

2. Then I move to another row ( the RowEditEnded Event fire with "e.EditOperationType == GridViewEditOperationType.Insert" )The code in RowEditEnded Event Handler of the Grid is :
public void EUGruppoGrid_RowEditEnded(object sender, Telerik.Windows.Controls.GridViewRowEditEndedEventArgs e){if (e.EditAction == GridViewEditAction.Cancel) return;if (e.EditOperationType == GridViewEditOperationType.Insert)_eUGruppoService.Insert((EUGruppoVO)e.NewData);else_eUGruppoService.Update((EUGruppoVO)e.NewData);}

3. Then I move in the row previously entered, strangely the value of the "id" property of the current item has remained zero.I edit the row, when I move to another row the RowEditEnded Event fire again with "e.EditOperationType == GridViewEditOperationType.Update"but the "id" property of (EUGruppoVO)e.NewData is still zero, why ?

An extract of the XAML code is :...<telerikGridView:RadGridView x:Name="EUGruppoGrid" AutoGenerateColumns="False" CanUserFreezeColumns="False" ShowGroupPanel="True" ItemsSource="{Binding EUGruppoItemsSource, Mode=TwoWay}" CurrentItem="{Binding EUGruppoCurrentItem, Mode=TwoWay}" Margin="0,0,0,0"><telerikGridView:RadGridView.Columns><telerikGridView:GridViewComboBoxColumn DataMemberBinding="{Binding Tipo, Mode=TwoWay}" ItemsSource="{Binding TipoEUList, Mode=OneWay}" DisplayMemberPath="Descrizione" SelectedValueMemberPath="Codice" Header="Tipo" IsReadOnly="False" /><telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Descrizione, Mode=TwoWay}" Header="Descrizione" IsReadOnly="False" /><telerikGridView:GridViewDataColumn IsVisible="False" DataMemberBinding="{Binding Id, Mode=OneWay}" Header="Id" IsReadOnly="True" /></telerikGridView:RadGridView.Columns></telerikGridView:RadGridView>...
An extract of the code behind is :...this.EUGruppoGrid.AddingNewDataItem += new EventHandler<Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs>(_tabelleViewModel.Controller.EUGruppoGrid_AddingNewDataItem);this.EUGruppoGrid.RowEditEnded += new EventHandler<Telerik.Windows.Controls.GridViewRowEditEndedEventArgs>(_tabelleViewModel.Controller.EUGruppoGrid_RowEditEnded);...DataContext = _tabelleViewModel

Thanks, Dario.
Stefan Dobrev
Telerik team
 answered on 09 Apr 2010
2 answers
87 views
Hello! I was trying to get advantage from the RadTabControl component in my project and have it bounded to a collection I am going to use. I follow all the steps in the documentation, but in the end the tab names are still the name of the class and not some property string I want to use. I even made a project using your own classes (Person & ViewModel) thinking that something is wrong with my code and I still see "DataInfo.Person" at the name of each tab (DataInfo is my namespace)
I am using exactly your code:

namespace DataInfo { 
    public class Person { 
        public Person( string name, int age ) { 
            this.Name = name; 
            this.Age = age; 
        } 
        public string Name { 
            get
            set
        } 
        public int Age { 
            get
            set
        } 
    } 

namespace DataInfo { 
    public class ViewModel { 
        public ViewModel() { 
            this.Persons = new ObservableCollection<Person>(); 
            this.Persons.Add( new Person( "Ivan", 23 ) ); 
            this.Persons.Add( new Person( "Stefan", 34 ) ); 
            this.Persons.Add( new Person( "Maria", 16 ) ); 
            this.Persons.Add( new Person( "Michael", 78 ) ); 
        } 
        public ObservableCollection<Person> Persons { 
            get
            set
        } 
    } 


<UserControl x:Class="DataInfo.TabControl" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:DataInfo="clr-namespace:DataInfo" 
             xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    <UserControl.Resources> 
        <DataInfo:ViewModel x:Key="DataSource" /> 
        <DataTemplate x:Key="ContentTemplate"
            <Grid> 
                <TextBlock Text="{Binding Age}" /> 
            </Grid> 
        </DataTemplate> 
    </UserControl.Resources> 
    <Grid x:Name="LayoutRoot" 
          Background="White"
        <Controls:RadTabControl x:Name="radTabControl" 
                                Margin="8" 
                                ItemsSource="{Binding Source={StaticResource DataSource}, Path=Persons}" 
                                DisplayMemberPath="Name" 
                                ContentTemplate="{StaticResource ContentTemplate}" /> 
 
    </Grid> 
</UserControl> 

Is there something I've misunderstood?

Thank you!
Roxana











RoxanaC
Top achievements
Rank 1
 answered on 09 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?