Telerik Forums
UI for WPF Forum
1 answer
104 views
I have two gridviews I want to drag and drop rows from one to the other. I cannot get any of the drag event to fire when I select a row and drag with the mouse. The only ones that seem to fire are the DragQuery and DragInfo, neither of which will give me drag effects. All the sample projects provided are for out of date code and need to have a half dozed helper classes. Are there no simple methods to implement this with the new Radgrid?
Tsvyatko
Telerik team
 answered on 27 Oct 2010
5 answers
232 views

Hello

1. Can I add Aggregate Function between the rows without using groping?

2. Can I show column footers for the gird not for the columns with custom function?

Best regards

Ehud

Maya
Telerik team
 answered on 27 Oct 2010
1 answer
64 views
Hello,

When I use DataSeries.AddRange method,a exception occurs:

Object reference not set to an instance of an object.
at Telerik.Windows.Controls.Charting.DataSeries.InsertItem(Int32 index, DataPoint item) in c:\Builds\WPF_Scrum\HotFix_2010_Q2\Sources\Development\Controls\Chart\Chart\Data\DataSeries.cs:line 214

My code snap is followed:
DataSeries barSeries = new DataSeries();
var maxKey = features.Max(x => x.Key);
ObservableCollection<DataPoint> dataPoints=new ObservableCollection<DataPoint>();
Parallel.For(1, maxKey, i =>
             {
                 DataPoint dataPoint;
                 if (features.ContainsKey(i))
                 {
                      int xLabel = i*_mStatisticsStep;
                      dataPoint = new DataPoint(xLabel, features[i])
                                   {XCategory = xLabel.ToString()};
                  }
                  else
                  {
                       int xLabel = i*_mStatisticsStep;
                       dataPoint = new DataPoint(xLabel, 0)
                                   {XCategory = xLabel.ToString()};
 
                  }
                  dataPoints.Add(dataPoint);
                  });
barSeries.AddRange(dataPoints);
Jerry
Top achievements
Rank 1
 answered on 27 Oct 2010
1 answer
116 views
Hi,
 i want to create a drill down report with Object data source not with SqlDataSource.
i simply need to drill through child collections. im having a master collection and and want to drill through in each detail collection.
\
http://www.telerik.com/help/reporting/designing-reports-interactivity-how-to-add-drillthrough-action.html
in reference to mentioned link i m able to link the master detail but paramter value isnt set when my detailed report get open.
Steve
Telerik team
 answered on 26 Oct 2010
2 answers
71 views
I havea TileView bound to a RadObservableCollection which contains a collection of image filenames.   The collection can contain duplicate fienames, but the TileView only shows one instance of each image.  Is it possible to have the TileView show all instances of all images?   Thanks, Todd.

										
Kevin
Top achievements
Rank 1
 answered on 26 Oct 2010
2 answers
396 views
I have a WPF application that I am validating ComboBox and TextBox controls using custom Validation classes in XAML.
The following is my ComboBox and it is a required field.  I have not found any examples of similar code for validation using RadComboBox. 
<ComboBox Width="225" VerticalAlignment="Center" IsEditable="True" IsReadOnly="False">
   <ComboBox.ItemTemplate>
      <DataTemplate>
         <TextBlock Text="{Binding}" />
      </DataTemplate>
   </ComboBox.ItemTemplate>
   <ComboBox.Text>
      <Binding Path="Name" UpdateSourceTrigger="LostFocus"
               NotifyOnValidationError="True"
               NotifyOnSourceUpdated="True"
               NotifyOnTargetUpdated="True">
          <Binding.ValidationRules>
             <Validator:RequiredFieldRule FieldName="Field Name Prompt" />
          </Binding.ValidationRules>
       </Binding>
    </ComboBox.Text>
</ComboBox>
Here is my Window.Resources code to display the validation error message:
<Style TargetType="ComboBox">
    <Setter Property="VerticalAlignment" Value="Center" />
    <Style.Triggers>
        <Trigger Property="Validation.HasError" Value="true">
            <Setter Property="ToolTip"
                    Value="{Binding RelativeSource={x:Static RelativeSource.Self},
                            Path=(Validation.Errors).CurrentItem.ErrorContent}" />
RequiredFieldRule is a class in my application derived from ValidationRule.




When I replace 'ComboBox' with ' RadComboBox' the Style used to set the ToolTip with the error message does not work. 
Any help would be greatly appreciated.


Kevin Y
Top achievements
Rank 1
 answered on 26 Oct 2010
9 answers
229 views
Hi there,

I try to syncronisize the Grid with one Textbox. Everytime I click on a other cell, the Textbox should show the value of the cell. Now when I change the value of the cell, the text in the Textbox have to change too. (Like MS-Excel do)
The datasource of the Grid is a DataTable and dependending to this DataTable the Grids Rows and Columns where build by Runtime. The Datatable will get his Data from various Textfiles so it should be different each time its loaded.

I hope someone understand what I want to say and can help me.
Andi
Top achievements
Rank 2
 answered on 26 Oct 2010
1 answer
164 views

Hello!

Now I testing a trial version of RadControls, and I have one issue:

I trying to create RadGridView with 40+ columns, with binds to ObservableCollection<>.

When I start my application, I can see the horizontal scrollbar, but not all of my columns are visible. If I will make several random clicks on RadGridView component, scrollbar width increases, and all columns became visible. What I do wrong?

1.<Grid>
2.        <telerik:RadGridView Name="dataGrid1"
3.                            EnableColumnVirtualization="True"
4.                             EnableRowVirtualization="True"
5.                             DataLoadMode="Asynchronous"
6.                             />
7.</Grid>

01.public partial class MainWindow : Window
02.    {
03.        /// <summary>
04.        /// Here is sample data class with a lot of fields
05.        /// </summary>
06.        class MyDataClass
07.        {
08.            public bool IsChecked { get; set; }
09.            public int Number { get; set; }
10.            public int Num43ber { get; set; }
11.            public int Num4ber { get; set; }
12.            public int Nu543mber { get; set; }
13.            public int Num45ber { get; set; }
14.            public int Nu5343mber { get; set; }
15.            public int Num435ber { get; set; }
16.            public int Num4vd5ber { get; set; }
17.            public int Nu543sdmber { get; set; }
18.            public int Num4sd5ber { get; set; }
19.            public int Nu43mber { get; set; }
20.            public int Num4fsdf35ber { get; set; }
21.            public int Nu54fds3vmber { get; set; }
22.            public int Nu52435mber { get; set; }
23.            public int Num43dsad5ber { get; set; }
24.            public int Num5435ber { get; set; }
25.            public int Nu4532mber { get; set; }
26.            public int Nu45mber { get; set; }
27.            public int f5344 { get; set; }
28.            public int Nufdmber { get; set; }
29.            public int Nu3fg45mber { get; set; }
30.            public int Nu52dfg435mber { get; set; }
31.            public int Numfdg43dsad5ber { get; set; }
32.            public int Numfdg5435ber { get; set; }
33.            public int Nudfg4532mber { get; set; }
34.            public int Nu4fdg5mber { get; set; }
35.            public int f53fdg44 { get; set; }
36.            public int Nufgfdmber { get; set; }
37.            public int Nufgdf345mber { get; set; }
38.            //
39.            public int Nufds45mber { get; set; }
40.            public int f5dsf344 { get; set; }
41.            public int Nasdfufdmber { get; set; }
42.            public int Nadsfu3fg45mber { get; set; }
43.            public int Nudasf52dfg435mber { get; set; }
44.            public int Nasdfumfdg43dsad5ber { get; set; }
45.            public int Nudsafmfdg5435ber { get; set; }
46.            public int Nuadsfdfg4532mber { get; set; }
47.            public int Nudsf4fdg5mber { get; set; }
48.            public int f5dsaf3fdg44 { get; set; }
49.            public int Nuadffgfdmber { get; set; }
50.            public int LASTCOLUMN { get; set; }
51.        }
52.  
53.        // here is sample collection
54.        ObservableCollection<MyDataClass> list;
55.        public MainWindow()
56.        {
57.            InitializeComponent();
58.            list = new ObservableCollection<MyDataClass>();
59.            // fill the collection with some elements
60.            for (int i = 0; i < 50; i++)
61.                list.Add(new MyDataClass() { IsChecked = true, Number= i });
62.            // bind it to RadGridView
63.            dataGrid1.ItemsSource = list;
64.        }
65.    }

Thanks. And sorry for my bad english, please :(.

Pavel Pavlov
Telerik team
 answered on 26 Oct 2010
1 answer
75 views

Hello,

Here is my question.

We have the GridView, and some columns are bound to the List<MyType>.We've made a custom filter like shown in some of your. demos. Now we need to filter those columns, but the DataMemberBinding is set to the List. Some code:

01.<DataTemplate x:Key="cellTemplate">
02. <DataTemplate.Resources>
03.  <my:PercentsConverter  x:Key="PerConv">
04. </DataTemplate.Resources>
05. <TextBlock>
06.  <TextBlock.Text>
07.   <MultiBinding Converter ="{StaticResource PerConv}" 
08.                 ConverterParameter="MyParam">
09.    <Binding Path="ListValues"/>
10.    <Binding Path="SomeValues"/>
11.   </MultiBinding>
12.  </TextBlock.Text>
13. </TextBlock>
14.</DataTemplate>

01.var tCol = new GridViewDataColumn()
02.{
03.     Header = temp.ToString(),
04.     CellTemplate = datatemplate,
05.     CellStyleSelector = new CellStyleSelector(),
06.     DataMemberBinding = new Binding("ListValues"),
07.     IsFilterable = true,
08.     FilteringControl = new Filtering()
09.     {
10.         Minimum = 0,
11.         Maximum = 100
12.     },
13.};
When we start the program there is no filter at these columns at all.

Veselin Vasilev
Telerik team
 answered on 26 Oct 2010
3 answers
574 views
Type reference cannot find type named '{clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls}TransparentTheme'.
   at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve(String qName)
   at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve(String qName)
   at System.Windows.Markup.TypeTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
Konstantina
Telerik team
 answered on 26 Oct 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
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
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
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
Iron
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
Iron
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?