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
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.
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> |
Hello,
I have been working with the radTileView. It's going to do what I need it to do in most cases. However, when there are only a few items the RadTileViewItems take the full space proportionally. It doesn't matter if I set the TileState="Minimized" or TileState="Restored" and the RadFluidContentControl ContentChangeMode="Manual" and State="Small". The controls do appear in the proper state, however the border of the control takes the remaining space causing the controls to be spaced evenly in the area. Even if I manually set the maxHeight and maxWidth of the radTileViewItem.
Is there a way to cause the tiles to be top left justified and leave blank space to the bottom and right when minimized or restored?
The other thing is that when I have a radTileView item maximized and the minimizedItemsPosition="Right" the same kind of spacing issue occurs. I would like them to appear like they do in the "Tile States" BMW section of this link - http://www.telerik.com/products/silverlight/tileview.aspx
I have also tried this with the sample code by adjusting the number of BMW tileViewItems and the size of their container.
I would like to use it more like a list box with very small items taking advantage of the eye candy moving them around and the maximize to edit the information in the control.
Thank you for your help.
Rick