Telerik Forums
UI for WPF Forum
1 answer
109 views
Hello,

I see that RadPropertyGrid does not support multiselection feature as "SelectedObjects" property in Winform propertygrid, as I can only find 'Item' property, and not 'Items' property. "SelectedObjects" property finds multiple objects' shared properties and displays them, allowing them to be edited at one go. Does RadPropertyGrid have any supports for this, or do you have plans to develop it? This functionality seems crucial for Property Grid controls, so please include it in the nearing internal build.
Maya
Telerik team
 answered on 30 May 2013
1 answer
141 views
I am trying to set my x axis as a date. When I do that it seems to generate a random number of labels where only one has a value associated with it.

For example, if i had these two items:

measures.Add(new RandomItem{ Date = DateTime.Now.AddDays(-3).Date, ValOne= 5, ValTwo = 4, ValThree = 3, ValFour = 2, ValFive = 1 });
measures.Add(new RandomItem{ Date = DateTime.Now.AddDays(-2).Date, ValOne= 5, ValTwo = 7, ValThree = 3, ValFour = 2, ValFive = 1 });

The graph has the x-axis set to autocalculate and I get 13 values on the x-axis but only two distinct and only two are populated with the values above
           
<telerik:ChartArea.AxisX>
 <telerik:AxisX  LabelRotationAngle="90" Title="Day of Month"   IsDateTime="True"    />
 </telerik:ChartArea.AxisX>

What am I doing wrong? How can i get the graph to only show distinct values? I have a series set up for each val where the date is the XValue. This is an MVVM project.
Petar Kirov
Telerik team
 answered on 29 May 2013
6 answers
445 views
Hi, we're evaluating the Telerik suite for Wpf and Silverlight. If we decide to buy a license, we'll need the source code as our release schedule is pretty busy and we can't always wait for possible bugs to be officially fixed.

Looking at the License Agreement:

"1.5 .... (1) year update subscription that will provide you with Minor
and Major Updates for the Software as well as access to certain source
code for the Software"

What does exactly "CERTAIN" source code for the software means? We'll need the source code for the whole suite we're buying. Can you please clarify?

Regards,

Alessandro
Dimitrina
Telerik team
 answered on 29 May 2013
3 answers
287 views
Since our last upgrade (from Q3 2012 to Q1 2013 (2013.1.403.40)) we have some strange behavior in the grid context menu.
You right click on the grid and it always shows up but when you hover the mouse over a sub-menu it doesn't show.
We allow the user to change themes and I have seen it happen in a couple of them so I don't think it is a particular theme issue.
If you right click again to the right or left of where you clicked before and try again the sub menus start working but I can't find a sequence that is consistent.

I have tried but am unable to reproduce the issue on a development computer.
Is this a known issue at all?
Rosen Vladimirov
Telerik team
 answered on 29 May 2013
11 answers
343 views
I have several shape files that define different levels of detail of UK postcodes. They are

Postcode Area (124 polygons)
Postcode District (2833 polygons)
Postcode Sector (9505 polygons)

If I load them into an InformationLayer then we start to get problems with speed especially on the Postcode Sectors.  I have decided that probably the best approach is to use a Dynamic Layer, and then choose which of the polygons to show.

I have a couple of questions

1. Can I instantiate a MapShapeReader on its own without associating it with a layer, and if so, how do I then get the polygons?
2. Once I have the polygons, is there an easy way to work out which polygons should be displayed?

I am currently using the beta software with shp files, but I think the basic principal would work with kml files too

Thanks
Simon
Gaurav
Top achievements
Rank 1
 answered on 29 May 2013
1 answer
86 views
The RadDatePicker is really cool and useful. We would like to add additional supported string formats for when the user types a date manually. This does not affect how dates are displayed, only how edit mode is treated.

I tried to do this by assigning a Converter, but that doesn't trigger until after the RadDatePicker has already converted the string into a date. :(

Is there any way I can override a property or implement an event or something that lets me help the RadDatePicker decode strings to dates of my choice?

* A real example: User types "20130524" without hyphens and I return todays date; "2013-05-24".
* Another (silly) example: User types "in three days" and I return today + 3 days; "2013-05-27".
Kalin
Telerik team
 answered on 29 May 2013
2 answers
367 views
Hi,

I need to disable expand/collapse animations on RadComboBoxes, GridViewFiltering popups etc, because it disturbs the end user.

Using of telerik:AnimationManager.IsAnimationEnabled="False" (on a single control) or AnimationManager.IsGlobalAnimationEnabled = false (globally) have no effect.

The application uses implicit themes.

Thank you for any help.

Björn
Björn
Top achievements
Rank 2
 answered on 29 May 2013
1 answer
138 views
Like many developers who are using Prism in their application, I am using a UserControl inherited from a RadPane as my view. This breaks the designer in VS (same issue in Blend for VS).

I see this issue in PITS, Creating RadPane as a UserControl breaks design time and no matter what you try to put as content it doesn't show, is marked as resolved, but there is no indication of any solution.

I can accept that it might be an issue in VS itself, rather than with the control suite. If this is the case, are there any issues on Microsoft's Connect site that I can reference? If not, and it is an issue in the Telerik controls, is there any word of a solution or workaround?
Vladi
Telerik team
 answered on 28 May 2013
2 answers
144 views
Hello,
I want to use multiple Dataset on my Telerik Editor (RichTextBox). Let me explain in steps, Firstly i created another "Insert Merge Filed" button and populate 2nd Dataset data. In the second step, drop Merge fields related to both Dataset (Insert Merge Filed and Insert Merge Filed 2) on letter and then simply save. Now problem get started when i open saved letter and wanna to view the Merge fields data on load not on click Preview results. When I put  this line of code  "this.radRichTextBox.ChangeAllFieldsDisplayMode(FieldDisplayMode.Result)"  on letter load, Merge fields related to one data set  load not other Dataset.
Here is my code 

void Page1_Loaded(object sender, RoutedEventArgs e)
 {
ds = letterservice.ExecuteTag("SearchPatient", new System.Collections.Generic.KeyValuePair<string, object>[] { new  System.Collections.Generic.KeyValuePair<string, object>("@0", 135) });
AddMergeFieldsInDropDownContent(this.btnModule, ds);                   
ds = letterservice.ExecuteTag("SearchPatientImmunization", new System.Collections.Generic.KeyValuePair<string, object>[] { new  System.Collections.Generic.KeyValuePair<string, object>("@0", 8) });
 
AddMergeFieldsInDropDownContent(this.btnSubModule, ds);
this.radRichTextBox.ChangeAllFieldsDisplayMode(FieldDisplayMode.Result);
}
 
private void AddMergeFieldsInDropDownContent(RadRibbonDropDownButton radRibbonDropDownButton, DataSet ds)
        {
            Grid grid = new Grid();
            int count = 200;
            //grid.Height = 400;
 
            ScrollViewer scrollViewer = new ScrollViewer();
            scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
            StackPanel stackPanel = new StackPanel();
            //
            this.DataContext = this;
            this.radRichTextBox.Document.MailMergeDataSource.ItemsSource = ds.Tables[0].DefaultView;
 
            foreach (string fieldName in this.radRichTextBox.Document.MailMergeDataSource.GetColumnNames())
            {
                RadRibbonButton fieldButton = new RadRibbonButton
                {
                    Text = fieldName,
                    Size = ButtonSize.Medium,
                    HorizontalAlignment = HorizontalAlignment.Stretch,
                    HorizontalContentAlignment = HorizontalAlignment.Left
                };
                count++;
                fieldButton.Command = this.radRichTextBox.Commands.InsertFieldCommand;
                fieldButton.CommandParameter = new MergeField { PropertyPath = fieldName };
                stackPanel.Children.Add(fieldButton);
            }
            grid.Height = count;
            stackPanel.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            scrollViewer.Content = stackPanel;
            grid.Children.Add(scrollViewer);
            radRibbonDropDownButton.DropDownContent = grid;
        }
Petya
Telerik team
 answered on 28 May 2013
3 answers
175 views
Hi,

Overview:-
We are using RadMaskedNumericInput control embedded in a RadGridView Cell for allowing user to edit the existing decimal values. Also, the Foreground property of the RadMaskedNumericInput control is bound to a decimal value and a converter (named ValueToColorConvertor) is applied which turns the foreground red for negative numbers and keep it black for non-negative number.
Problem:-
Now the problem that on refreshing the data source of the GridView (in whoes cell RadMaskedNumericInput control is embedded) RadMask control's foreground behave's awkwardly and for few of the cells sometime a positive number is shown red and sometimes a negative number is shown black (see the attached snapshot)

Analysis:-
I have verified that when data is refreshed for parent RadGridView then ValueToColor foreground converter is not invoked for all the radmaskednumericInput control instances. this converter is invoked randomly for 7-8 instances out of 13 instances shown in the controls attached snapshot.

Converter and Behavior applie are :-
1) ValueToColorConverter:- converts decimal value to Red/Black colour brush during  first time load/refresh of the data.
2) TargetExposureConverter:- which is a multivalue converter to attach parameters to the RadMaskedNumericInput valuechanging command
3) RadMaskedInputValueChangingBehavior:- This behaviour changes the foreground of the RadMaskedNumericInput control's text on value changed.

 

public class ValueToColorConverter : IValueConverter

{

 

public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

{

 

var brush = new SolidColorBrush(Colors.Black);

 

Double doubleValue = 0.0;

 

Double.TryParse(value.ToString(), out doubleValue);

 

if (doubleValue < 0)

brush =

 

new SolidColorBrush(Colors.Red);

 

return brush;

}

 

public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

{

 

throw new NotImplementedException();

}

}


-----------------------------------------------

 

public class TargetExposureConverter : IMultiValueConverter

{

 

public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)

{

 

if (values == null)

 

return null;

 

if (values.Length != 2)

 

throw new ApplicationException("Expecting 2 parameters in TargetExposureConverter");

 

var targetExposureCmdParameter = new TargetExposureEditedCmdParam();

 

decimal value;

 

decimal.TryParse(System.Convert.ToString(values[0]), out value);

targetExposureCmdParameter.TargetExposure = value;

 

var targetExposureCell = values[1] as GridViewCell;

 

if (targetExposureCell != null && targetExposureCell.ParentRow != null)

{

targetExposureCmdParameter.CurrentRow = targetExposureCell.ParentRow.Item

 

as CcyExposureCurrencySummary;

}

 

return targetExposureCmdParameter;

}

 

public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)

{

 

throw new NotImplementedException();

}

}


-----------------------------------

 

public class RadMaskedInputValueChangingBehavior : Behavior<RadMaskedInputBase>

{

 

protected override void OnAttached()

{

 

base.OnAttached();

AssociatedObject.ValueChanging += OnValueChanging;

}

 

protected override void OnDetaching()

{

 

base.OnDetaching();

AssociatedObject.ValueChanging -= OnValueChanging;

}

 

void OnValueChanging(object sender, RadMaskedInputValueChangingEventArgs e)

{

 

var maskedInputControl = sender as RadMaskedNumericInput;

 

if (maskedInputControl == null)

 

return;

 

if (e.NewValue == null)

 

return;

 

double newVal;

 

if (!double.TryParse(Convert.ToString(e.NewValue), out newVal))

 

return;

maskedInputControl.Foreground = newVal < 0

?

 

Brushes.Red

:

 

Brushes.Black;

}

}

Petar Mladenov
Telerik team
 answered on 28 May 2013
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?