Telerik Forums
UI for WPF Forum
5 answers
141 views
Hello!
I've RagGridView with some string type columns, one datetime typed and two decimal typed.
When I put random string, there (in CreateFilterExpression) allways stay records with decimal value equal 0 (zero).
I managed, that convert any string in decimal columns to 0 and check for equality. How can I skip the bolded part? Filter implementation is from your examples.
_compositeFilterDesriptor.CreateFilterExpression(parameterExpression);
In example:
Filter value is: "dasdasddasdasd"
Expression is: (stringColumn1 contains dasdasddasdasd) OR (stringColumn2 contains dasdasddasdasd) OR (dateTimeColumn IsEqual 01-01-0000) OR (decimalColumn1 IsEqual 0) OR (decimalColumn2 IsEqual 0)
Rossen Hristov
Telerik team
 answered on 30 Apr 2012
0 answers
119 views
Hi,

as you cann see on the attached File i'm looking for a approach or example to create a RadGridView with 7 Columns where
i can drag & drop Items between these columns and also in the column itself. Or an other Control to realize this request.

I need a Control with 7 Columns or 7 Controls or....
I need to drag & drop Items from one columns/control to the next column/control.
Each Item should be in his own color...

Can someone tell me an idea of ​​how I can implement this requirement?

I use: c# and wpf RadControls 2012 SP1

Thanks a lot Regards
Rene
ITA
Top achievements
Rank 1
 asked on 30 Apr 2012
1 answer
555 views

I am using the RadGridView and RadDataPager in a WPF application. I have a method that pulls pages of Employees from a database (or some other data source). There are more Employees than I want to put in memory at one time, so I need to page the data retrieved from the database.

 

So, I have a method that returns pages of data in the form of IEnumerable<Employee>. Each IEnumerable<Employee> is one page of data.  The xaml is set up this way:

 

    <Grid>

...

        <telerik:RadGridView ItemsSource="{Binding PagedSource, ElementName=radDataPager}"

                             Horizontal Alignment="Left"

                             AutoGenerateColumns="False"

                             x:Name="radGridView1"

                             VerticalAlignment="Top"

                             Height="Auto"

                             Width="Auto"

                             Grid.Row="0">

            <telerik:RadGridView.Columns>

                <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}"

                                            Header="First Name"

                                            UniqueName="FirstName" />

                <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}"

                                            Header="Last Name"

                                            UniqueName="LastName" />

                <telerik:GridViewDataColumn DataMemberBinding="{Binding Age}"

                                            Header="How Old?"

                                            UniqueName="Age" />

            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

        <telerik:RadDataPager x:Name="radDataPager"

                              Source="{Binding Employees2}"

                              DisplayMode="FirstLastPreviousNext"

                              IsTotalItemCountFixed="False"

                              PageSize="3"

                              Grid.Row="1"

                              Margin="0,9,0,0"

                              PageIndexChanging="radDataPager_PageIndexChanging"

                              PageIndexChanged="radDataPager_PageIndexChanged"/>

    </Grid>

 

I only get the first page with 3 records. Can this be fixed, or am I trying to do something that these controls do not support?

 

What would be a better way to do what I am trying to do?

 

Thanks.

 

David

 

 

 

Rossen Hristov
Telerik team
 answered on 30 Apr 2012
1 answer
162 views

Hello.

I'm try host GridView WPF in WinForms App...

private void GridLoad()
{
         Telerik.Windows.Controls.RadGridView wpfGrid =
  
        new Telerik.Windows.Controls.RadGridView();
         wpfGrid.Name = "myGrid";
        wpfGrid.Height = 641;
        wpfGrid.ItemsSource = phpmyadminDataSet;
    
          wpfGrid.AutoGenerateColumns = true;
        ElementHost elementHost = new ElementHost();
        elementHost.Dock = DockStyle.None;
        elementHost.Width = 640;
        elementHost.Height = 120;
        elementHost.Child = wpfGrid;
        panel1.Controls.Add(elementHost);
      }
But I can't understand how refresh Grid.

When app starting Grid is clear. When I'm apply filter or sorting, data loading.

I'm try wpfGrid.Rebind(). No effect...

Pavel Pavlov
Telerik team
 answered on 30 Apr 2012
5 answers
88 views

Our users have requested that we not perform an immediate filter when a distinct filter checkbox is clicked.  They would rather be able to select multiple checkboxes, then press the Filter button.  We call a web service to retrieve data each time filtering is performed, so this has become a performance issue.

Is there an easy way to turn off the instant filtering, or do we have to write a completely custom control?

Thanks for your help.
Rossen Hristov
Telerik team
 answered on 30 Apr 2012
9 answers
200 views
Why is there no separation between the second vertical axis and the label for the first vertical axis (see attached image)?

Could you please provide a code example of the easiest way to get some separation.
Peshito
Telerik team
 answered on 30 Apr 2012
0 answers
85 views
Hi,

I am using a telerik grid view.  I have a combo box which is bound to different grids.  e.g.  when I select a combo box then grid display's A property information and if I change settings then it will display grid B's propery information.  I want that when "A" is displayed and I change the format of the grid like reorder columns.  I switch to grid "B" and then switch back to "A" I want to see the reordered columns.  So I need to save settings when I change grid and reload the settings when I load the grid.  But I am not sure how to do this.  If you can point me to some examples that would be great.

Also when I exit the tool and then reopen the file then the settings should be persistant from before so the user doesn't have to change settings again.  I looked at the example here.  http://demos.telerik.com/silverlight/#PersistenceFramework/GridViewCustomSerialization  This is almost what I want to do but can I save the settings in an XML file?  If you have any examples for this that would be great.

Thanks for your help,

Sonia
Sonia
Top achievements
Rank 1
 asked on 30 Apr 2012
5 answers
525 views
Hi

I have been using the property grid and I like it a lot, but now i have problem. Is there a way to add "properties" at runtime?

I have been trying to get a datatable/datarow to work with the property grid with no luck.

Any ideas?

Axel
Mauricio
Top achievements
Rank 1
 answered on 29 Apr 2012
1 answer
190 views
I am plotting about 500 items on the map and everything works fine until I zoom in or out. When this happens the CPU goes to 100% for 10 or so seconds and then things work again until the next zoom.

I used ANTS and found that all the slowness is from the method Telerik.Windows.Controls.Map.FileCacheBase.SaveFilesThread().

I also noticed this xaml error which is not from me:

System.Windows.Data Error: 25 : Both 'ContentTemplate' and 'ContentTemplateSelector' are set; 'ContentTemplateSelector' will be ignored. ContentPresenter:'ContentPresenter' (Name='')


Datafyer
Top achievements
Rank 1
Veteran
 answered on 28 Apr 2012
4 answers
155 views

Why PropertyGrid generate excess properties, when AutoGeneratePropertyDefinitions is set to false?

<Window x:Class="PropertyGridTester.MainWindow"
        xmlns:PropertyGridTester="clr-namespace:PropertyGridTester"
        Title="MainWindow" Height="350" Width="525"
        mc:Ignorable="d" 
        d:DataContext="{d:DesignInstance {x:Type PropertyGridTester:MainWindowViewModel}}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
          
        <StackPanel Grid.Column="0">
            <RadioButton Command="{Binding SetFirstClass}">Set first class</RadioButton>
            <RadioButton Command="{Binding SetSecondClass}">Set second class</RadioButton>
            <RadioButton Command="{Binding SetNull}" IsChecked="True">Set null</RadioButton>
        </StackPanel>
  
        <ContentControl Grid.Column="1" DataContext="{Binding SelectedClass}" Content="{Binding}">
            <ContentControl.Resources>
                <DataTemplate DataType="{x:Type PropertyGridTester:FirstClass}">
                    <telerik:RadPropertyGrid Item="{Binding}" AutoGeneratePropertyDefinitions="False" HorizontalAlignment="Stretch" SearchBoxVisibility="Collapsed"
                        SortAndGroupButtonsVisibility="Collapsed" DescriptionPanelVisibility="Collapsed" HorizontalContentAlignment="Stretch" LabelColumnWidth="110">
                        <telerik:RadPropertyGrid.PropertyDefinitions>
                            <telerik:PropertyDefinition Binding="{Binding Visible}" DisplayName="First class visible">
                                <telerik:PropertyDefinition.EditorTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding Visible}" />
                                    </DataTemplate>
                                </telerik:PropertyDefinition.EditorTemplate>
                            </telerik:PropertyDefinition>
                        </telerik:RadPropertyGrid.PropertyDefinitions>
                    </telerik:RadPropertyGrid>
                </DataTemplate>
                <DataTemplate DataType="{x:Type PropertyGridTester:SecondClass}">
                    <telerik:RadPropertyGrid Item="{Binding}" AutoGeneratePropertyDefinitions="False" HorizontalAlignment="Stretch" SearchBoxVisibility="Collapsed"
                        SortAndGroupButtonsVisibility="Collapsed" DescriptionPanelVisibility="Collapsed" HorizontalContentAlignment="Stretch" LabelColumnWidth="110">
                        <telerik:RadPropertyGrid.PropertyDefinitions>
                            <telerik:PropertyDefinition Binding="{Binding Visible}" DisplayName="Second class visible">
                                <telerik:PropertyDefinition.EditorTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding Visible}" />
                                    </DataTemplate>
                                </telerik:PropertyDefinition.EditorTemplate>
                            </telerik:PropertyDefinition>
                        </telerik:RadPropertyGrid.PropertyDefinitions>
                    </telerik:RadPropertyGrid>
                </DataTemplate>
            </ContentControl.Resources>
        </ContentControl>
  
    </Grid>
</Window>

using System;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.ViewModel;
  
namespace PropertyGridTester
{
    public abstract class BaseClass : NotificationObject
    {
        private string _Visible = String.Empty;
  
        public string Visible
        {
            get { return _Visible; }
            set
            {
                if (_Visible == value)
                    return;
                _Visible = value;
                RaisePropertyChanged(() => Visible);
            }
        }
  
        private string _NotVisible = String.Empty;
  
        public string NotVisible
        {
            get { return _NotVisible; }
            set
            {
                if (_NotVisible == value)
                    return;
                _NotVisible = value;
                RaisePropertyChanged(() => NotVisible);
            }
        }
  
    }
  
    public class FirstClass : BaseClass
    {
    }
  
    public class SecondClass : BaseClass
    {
    }
  
    public class MainWindowViewModel : NotificationObject
    {
        public MainWindowViewModel()
        {
            SetFirstClass = new DelegateCommand(() => SelectedClass = new FirstClass());
            SetSecondClass = new DelegateCommand(() => SelectedClass = new SecondClass());
            SetNull = new DelegateCommand(() => SelectedClass = null);
        }
  
        public ICommand SetFirstClass { get; private set; }
  
        public ICommand SetSecondClass { get; private set; }
  
        public ICommand SetNull { get; private set; }
  
        private BaseClass _SelectedClass = null;
  
        public BaseClass SelectedClass
        {
            get { return _SelectedClass; }
            set
            {
                if (_SelectedClass == value)
                    return;
                _SelectedClass = value;
                RaisePropertyChanged(() => SelectedClass);
            }
        }
    }
}

Maxim
Top achievements
Rank 1
 answered on 28 Apr 2012
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
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?