Telerik Forums
UI for WPF Forum
2 answers
119 views
Hello, 

I can't ever seem to get the vertical scroll to appear. The regular MS Windows grid scrolls always appears. This control is being added to another grid inside a RadTabItem. I would like the scroll to kick in when ever the screen size requires it without having to set hard Heights and Widths. Thanks.

<UserControl x:Class="XXXXXXXXXX_Controls.ServerControlLog"    
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"      
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"      
                 
             mc:Ignorable="d"      
              xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">     
    <Grid>    
        <Grid.RowDefinitions>    
            <RowDefinition Height="Auto" />    
            <RowDefinition Height="Auto" />    
        </Grid.RowDefinitions>    
        <WrapPanel Grid.Row="0" Margin="10">     
            <telerik:RadButton Content="Start Server" Margin="5"  Height="23" HorizontalAlignment="Left"  Name="btnStartServer" Click="btnStartServer_Click" VerticalAlignment="Top" Width="75" />    
            <Label Name="lblMessage" Margin="5"></Label>    
        </WrapPanel>    
        <telerik:RadGridView HorizontalAlignment="Left"  Name="radGridServerLog" VerticalAlignment="Top" Grid.Row="1" ScrollViewer.VerticalScrollBarVisibility="Visible" />    
    
    </Grid>    
</UserControl>    
 
Pavel Pavlov
Telerik team
 answered on 28 Jun 2010
2 answers
117 views
Hi
   i am nwebie to Telerik , i developed report using telerik by name Report1.cs

in the ReportViewer -i gave "Report1.cs"(with full path) as datasource but the mentioned error was displaying while i executing application.

Thanks in advance
muthu
Top achievements
Rank 1
 answered on 28 Jun 2010
1 answer
107 views

Hi,

I'm trying to implement filter search in the grid

This is the code:

 

 

private void OnFilterByTextCommand(string parameter)
  {
   var compositeDescriptor = new CompositeFilterDescriptor
                              {
                               LogicalOperator = FilterCompositionLogicalOperator.Or
                              };
   
  
   
   foreach (GridViewColumn column in RadGrid.Columns)   
   {
    var dataColumn = column as GridViewDataColumn;
    if (column == null) continue;
    
    object obj = null;
    
    try
    {
     if (dataColumn != null)
       obj = Convert.ChangeType(parameter, dataColumn.DataType);
    }
    catch
    {
     continue;
    }
    if (obj == null) continue;

    FilterOperator op = dataColumn.DataType.IsValueType ? FilterOperator.IsEqualTo : FilterOperator.Contains;
    

    FilterDescriptor filterDescriptor = new FilterDescriptor
                                         {
                                          IsCaseSensitive = false,
               Member = dataColumn.UniqueName,
               Operator=op,
               Value=obj
                                         };
   
    compositeDescriptor.FilterDescriptors.Add(filterDescriptor);
   
   
   }
   
   RadGrid.FilterDescriptors.Add(compositeDescriptor);
     
  }


I get exception in the columns that the column type is not the same as the

Item source collection in this binding member

If I bind the column to same data type and us one of this data properties

The exception is cant cast beaten the types

Someone know this problem?

Maybe I need to change the filter method?

Best Regards

Ehud

Veselin Vasilev
Telerik team
 answered on 28 Jun 2010
8 answers
147 views
Hi,

Simply running your Q1 2010 demo for the wpf docking does not work correctly with my multiple monitor configuration. I currently am running Windows 7 and have 3 monitors set-up to extend my desktop. One of my monitors is plugged into a usb video port replicator docking port which is where the problem occurs. My configuration is my center screen is my primary, then I have a screen to the left and another one to the right. If I drag a window to the right it works as expected. I am unable to drag to the left, simply does not recognize the boundries or something. If I run the whole application on the left monitor and try to undock a window, the undocked window just vanishes, not even letting me drag it around. The docking port I use is the HP HSTNN-S01x. Currently I use the Actipro docking control and do not encounter this issue.

Thanks

Rick


Rick Knicely
Top achievements
Rank 1
 answered on 27 Jun 2010
0 answers
76 views

Hi, all

 Nice to meet you!

Eva
Top achievements
Rank 1
 asked on 26 Jun 2010
1 answer
70 views
Hello,
I have a problem with using ShowDialog method of RadWindow in WebBrowser. A new window appears, but ShowDialog should susspend by main application. I use Close callback to resolve this problem, but it's not a good solution for complicated application.
I really need to freeze code execution when modal dialog appears.
George
Telerik team
 answered on 25 Jun 2010
3 answers
290 views
Hi,

searching the internet I found following statement:

Q: Can I use Bing Maps (Virtual Earth) within a Windows Forms or WPF Desktop Application?

A: As far as Licensing, you’ll need to contact Microsoft. The “Microsoft Virtual Earth Platform API Terms of Use” doesn’t really cover this specific usage scenario.

Microsoft doesn’t have a Window Forms or WPF control that you can just drag onto a Window, but you could access the Web Service from your application or display the JavaScript Map Control within an embedded WebBrowser control.


(http://pietschsoft.com/post/2009/06/02/Bing-Maps-for-Enterprise-Virtual-Earth-Licensing-FAQ-Questions.aspx)

Do I really have to contact Microsoft for using RadMap or do you already know which licensing-model is needed for commercial use of your control?

Best Regards
Steffen


Andrey
Telerik team
 answered on 25 Jun 2010
1 answer
90 views
Hi,
When data is loaded the first line of the GridView is selected by default,I want no selection and how to do that? 
thank you!
Milan
Telerik team
 answered on 25 Jun 2010
1 answer
414 views
Hi,

I saw a similar issue posted in the Silverlight forum. I am not able to use the solution presented there because I need to instantiate my view model with parameters from the view. I am trying to bind a Composite WPF DelegateCommand to a column cell template in my RadGridView.

When I run the application I get this error in the output window:
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=LayoutRoot'. BindingExpression:Path=DataContext.StopCommand; DataItem=null; target element is 'Button' (Name='StopButton'); target property is 'Command' (type 'ICommand')

If I bind the command to a button outside the RadGridView it works as expected.

I have the following XAML:
<Window x:Class="MVVMCommand.MainWindow" 
        x:Name="LayoutRoot" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title="MainWindow" Height="300" Width="300" 
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    <StackPanel> 
        <Button Content="This one works" 
                CommandParameter="42" 
                Command="{Binding ElementName=LayoutRoot, Path=DataContext.StopCommand}" /> 
            <telerik:RadGridView Name="radGridView1" ItemsSource="abcd"
            <telerik:RadGridView.Columns> 
                <telerik:GridViewColumn Header="Start"
                    <telerik:GridViewColumn.CellTemplate> 
                        <DataTemplate> 
                            <Button Content="This one does not"
                                    CommandParameter="42" 
                                    Command="{Binding ElementName=LayoutRoot, Path=DataContext.StopCommand}" /> 
                        </DataTemplate> 
                    </telerik:GridViewColumn.CellTemplate> 
                </telerik:GridViewColumn> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </StackPanel> 
</Window> 

The view model looks like this:
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using Microsoft.Practices.Composite.Presentation.Commands; 
 
namespace MVVMCommand 
    public class MVVMCommandViewModel 
    { 
        public DelegateCommand<object> StopCommand { getset; } 
 
        public MVVMCommandViewModel(string s
        { 
            StopCommand = new DelegateCommand<object>(StopCommand_Execute); 
        } 
 
        void StopCommand_Execute(object o) 
        { 
 
        } 
    } 

My code-behind:
    public partial class MainWindow : Window 
    { 
        MVVMCommandViewModel _viewModel; 
 
        public MainWindow() 
        { 
            InitializeComponent(); 
            _viewModel = new MVVMCommandViewModel("42"); 
            this.DataContext = _viewModel; 
        } 
    } 

Maya
Telerik team
 answered on 25 Jun 2010
1 answer
176 views
Hi ,

I am using Telerik WPF version : 2009.1.xxx.xx
WPF window screen i place the following line:
 <telerik:RadDatePicker x:Name="dtpDate"  SelectedDate="{Binding ReferredToDate, Mode=TwoWay, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged }"  SelectionChanged="dtpDate_SelectionChanged"/>

When i input  digit Zero(0) in datetime picker and press tab i gett following error :

Year, Month, and Day parameters describe an un-representable DateTime.

BECAUSE OF THIS ERROR EVEN IT NOT FIRE THE PROPERTY CHANGED EVENT..

HOW TO HANDLE THIS ISSUE ?

Thanks in advance
Hiren
Kaloyan
Telerik team
 answered on 25 Jun 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Slider
Expander
TileList
PersistenceFramework
DataPager
TimeBar
Styling
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
CardView
DataBar
WebCam
FilePathPicker
Licensing
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?