Telerik Forums
UI for WPF Forum
3 answers
173 views
Hello,
I have upgraded RadControls version to RadControls for WPF-2010.3 1314 (Jan 14, 2011) in my WPF form and now the Texts in the Gridview header and rows are not wrapping properly. Please help to find out any property that can be used in design or code for the wrapping the text.

I found that the properties "TextAlignment" and "TextWrapping" is obselete in new Telerik version.

GridView.AlignmentContentPresenter is also obselete.


Thanks,
Sooraj
Vlad
Telerik team
 answered on 10 Feb 2011
6 answers
226 views
Hallo. Is it possible to move TabItems (like Firefox or Google Chrome)?

Best regards

René
Hristo
Telerik team
 answered on 10 Feb 2011
1 answer
103 views
Hello Telerik Team,
                              I have one clarification about theme settings.

We are using telerik controls in our projects as well as wpf controls.

here radcombo box gives diffrent border color when cursor on focus, and mouse over .

same color i want text box also when cursor on focus,and mouse over.

how i set these color setting in textbox?It can be common in app.xaml 
pls give me sample applications.
Konstantina
Telerik team
 answered on 10 Feb 2011
6 answers
161 views
Hello telerik Team,
                           I have one clarification.
 I have a master page with 5 controls Including Gender Name(Male,Female). The Gender Name  designed in UI as combo box.data type is declared as boolean in both Business layer as well as database.

My problem is particularly about GenderName field
                       I want to display all details in radgridview from database.In database GenderName  is stored as boolean .but i want to display in grid male or female(that is text only not boolean).

How to do that one?
sivakanth
Top achievements
Rank 1
 answered on 10 Feb 2011
5 answers
116 views
Hello,

Is it possible to display Empty Group with ScheduleView like Scheduler does?
We really need to have that functionality...


Oksi
George
Telerik team
 answered on 10 Feb 2011
11 answers
138 views
After upgrading to latest version of telerik my gridview is throwing as error. Its datsource is set by using xmldaraprovider.
Please help me. With the previous version it was working fine.
Stefan Dobrev
Telerik team
 answered on 10 Feb 2011
1 answer
101 views

I just started using the RadChart control and am attempting to create an XY scatter chart that displays matrix data that consists of row/column coordinates with a measurement value at each row/column location.  Both the row and column are 1-to-n, so I don't know the upper bound size of each is until runtime.  Here's the class representation of a single datapoint:

public class Measurement
{
    public int Row { get; set; }
    public int Column { get; set; }
    public double Value { get; set; }
}

This is the method I'm using to create sample data that I am using to test this out with each row/series of data having multiple measurements:

private List<Measurement> CreateMeasurements() 
    // Create sample data 
    List<Measurement> measurements = new List<Measurement>(); 
    measurements.Add(new Measurement() { Row = 2, Column = 1, Value = 130.5 }); 
    measurements.Add(new Measurement() { Row = 2, Column = 2, Value = 135.0 }); 
    measurements.Add(new Measurement() { Row = 2, Column = 3, Value = 133.0 }); 
    measurements.Add(new Measurement() { Row = 2, Column = 4, Value = 127.0 }); 
    measurements.Add(new Measurement() { Row = 2, Column = 5, Value = 120.0 }); 
    measurements.Add(new Measurement() { Row = 3, Column = 1, Value = 140.5 }); 
    measurements.Add(new Measurement() { Row = 3, Column = 2, Value = 150.5 }); 
    measurements.Add(new Measurement() { Row = 3, Column = 5, Value = 135.0 }); 
    measurements.Add(new Measurement() { Row = 3, Column = 6, Value = 133.2 }); 
    measurements.Add(new Measurement() { Row = 4, Column = 2, Value = 145.5 }); 
    measurements.Add(new Measurement() { Row = 4, Column = 3, Value = 155.5 }); 
    measurements.Add(new Measurement() { Row = 4, Column = 5, Value = 160.5 }); 
    measurements.Add(new Measurement() { Row = 4, Column = 6, Value = 165.8 }); 
    return measurements; 
}

What I am attempting to do is configure the chart declaratively in XAML, but I can't seem to figure out how to get a series for each row this way since it seems as though I need to know how many ItemMappings there will be beforehand.  Here's the XAML I started with for the chart:

<telerik:RadChart HorizontalAlignment="Left" Margin="12,12,12,12" x:Name="XYScatterChart" VerticalAlignment="Top" >
    <telerik:RadChart.SeriesMappings>
        <telerik:SeriesMapping LegendLabel="Row">
            <telerik:SeriesMapping.SeriesDefinition>
                <telerik:LineSeriesDefinition/>
            </telerik:SeriesMapping.SeriesDefinition>
            <telerik:SeriesMapping.ItemMappings>
                <telerik:ItemMapping DataPointMember="YValue" FieldName="Value"/>
                <telerik:ItemMapping DataPointMember="XValue" FieldName="Column"/>
            </telerik:SeriesMapping.ItemMappings>
        </telerik:SeriesMapping>
    </telerik:RadChart.SeriesMappings>
</telerik:RadChart>

This results in a single series for all of the data.  Is there some way of doing this declaratively so it will know to create a SeriesMapping for each row of data that I have?  Here's the solution I came up with using the code-behind, but I would much prefer to do it declaratively in XAML if it's possible.

public MainWindow()
{
    InitializeComponent();

    // Set chart source data
    List<Measurement> measurements = CreateMeasurements();
    XYScatterChart.ItemsSource = measurements;
 
    // Get distinct row values
    var rowValues = (from measurement in measurements
                    select measurement.Row).Distinct();

    // Add series mappings
    foreach (int rowValue in rowValues)
    {
        SeriesMappingCollection seriesMappings = XYScatterChart.SeriesMappings;
        CreateSeriesMapping(XYScatterChart.SeriesMappings, rowValue);
    }
}

private void CreateSeriesMapping(SeriesMappingCollection seriesMappings, int rowValue)
{
    // Add a new mapping 
    SeriesMapping seriesMapping = new SeriesMapping();
    seriesMappings.Add(seriesMapping);

    // Set the legend label
    seriesMapping.LegendLabel = String.Concat("Row ", rowValue.ToString());

    // Set the series definition
    seriesMapping.SeriesDefinition = new LineSeriesDefinition();

    // Add the filter descriptor
    ChartFilterDescriptor filterDescriptor = new ChartFilterDescriptor();
    filterDescriptor.Member = "Row";
    filterDescriptor.Operator = FilterOperator.IsEqualTo;
    filterDescriptor.Value = rowValue;
    seriesMapping.FilterDescriptors.Add(filterDescriptor);

    // Add the item mappings
    ItemMappingCollection itemMappings = seriesMapping.ItemMappings;
    itemMappings.Add(new ItemMapping("Column", DataPointMember.XValue));
    itemMappings.Add(new ItemMapping("Value", DataPointMember.YValue));
}

I've included the image of what the graph looks like if it's of use. Thanks a lot for any suggestions.
Giuseppe
Telerik team
 answered on 10 Feb 2011
7 answers
692 views
I do not seem to be able to do it in WPF (in Silverlight it works fine).
Moreover, whenever I have an open popup (not for drag and drop), if I hover the mouse over it while doing a drag-and-drop operation the position of DragCue changes.
What do I do to get around these problems?
If I cannot use the WPF popup, are there any similar Rad controls that I can use instead?
Also I was trying to use RadWindow instead of a popup (even though popup is actually what we need) and it did not event allow me to drag the DragCue into it.
Please Help!!!!
Thanks
Tsvyatko
Telerik team
 answered on 10 Feb 2011
4 answers
171 views
We started to use the Telerik version 2010 3.1314.40 dll's.
Now we get errormessages which we didn't have had before.
We just open a window with a RadMap connected to a mapsource.
After a bit paning, zooming and waiting we get this message: 

System.ArgumentNullException: Value cannot be null.
Parameter name: Children of 'System.Windows.Controls.UIElementCollection' cannot be null. Object derived from UIElement expected.
   at System.Windows.Controls.UIElementCollection.ValidateElement(UIElement element)
   at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element)
   at System.Windows.Controls.UIElementCollection.Add(UIElement element)
   at Telerik.Windows.Controls.Map.MultiScaleImage.ImageCanvas.AddImage(Image image, AsyncDownloader downloader)
   at Telerik.Windows.Controls.Map.MultiScaleImage.AssyncImageReaderComplete(Stream stream, AsyncDownloader downloader)
Source: mscorlib
Target: System.Object _InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeType)
Stacktrace:    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Andrey
Telerik team
 answered on 10 Feb 2011
1 answer
314 views
Hi,
i am using RadGridView  i have a toggle button in one of the grid column, my question is when window loaded i need to set the togglebutton.ischecked to true,  when i am trying to loop to the grid i am getting only the first page rows, how can i get all the grid rows.
i have 200 records

 IList<GridViewRow> rows = radGridView.ChildrenOfType<GridViewRow>();
            foreach (GridViewRow row in rows)
            {
                if (!(row is GridViewNewRow) && !(row is GridViewHeaderRow))
                {
                    GridViewToggleButton toggleButton = row.Cells[0].ChildrenOfType<GridViewToggleButton>().FirstOrDefault();
                    if (toggleButton != null )
                    {
                        toggleButton.IsChecked = true;
                    }
                }
            }

thanks
sarag.
Maya
Telerik team
 answered on 10 Feb 2011
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?