Telerik Forums
UI for WPF Forum
2 answers
112 views
Hi.

Is there any solution to avoid heaviest redraw and flickering during form resize operations in cases when charting control placed on form?
I noticed this strange behaviour only on chart control.  Issues easily reproduced on your demo sample (zoom.zip). Launch it and try to resize form with mouse. 
You can notice here not painted background appears on new form rectangle till the moment when chart drawn. This is very noticeable even if to use core i7 with 32Gb ram and video card with 1gb ram, and that effect had very bad impact on presentation charts when intensive using it. 

I hope that there is some solution to avoid that behaviour. Please help to find solution. 
Thank you in advance. 
Alex.
Peshito
Telerik team
 answered on 25 Mar 2014
4 answers
249 views
I am getting binding errors in the debug log when I use GroupRenderMode="Flat" with styles that depend on the ItemsSource item values. It looks as if each row is trying to bind to the RadGridView's DataContext in addition to the actual items. The style is applying correctly, the only difference I can see is the new errors in the debug log.

Below is a small example showing the problem. Note the binding error for every line in the grid:

System.Windows.Data Error: 40 : BindingExpression path error: 'IsComplete' property not found on 'object' ''MainWindow' (Name='')'. BindingExpression:Path=IsComplete; DataItem='MainWindow' (Name=''); target element is 'GridViewRow' (Name=''); target property is 'NoTarget' (type 'Object')

which does not occur if GroupRenderMode="Nested". It's trying to bind to MainWindow object instead of an Item.

Is this a bug or have I done something wrong somewhere?

Thanks,
Louis


<telerik:RadGridView ItemsSource="{Binding Path=Items}" AutoGenerateColumns="False" GroupRenderMode="Flat">
    <telerik:RadGridView.Resources>
        <Style TargetType="{x:Type telerik:GridViewRow}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=IsComplete}" Value="False">
                    <Setter Property="Background" Value="Red"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </telerik:RadGridView.Resources>
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="ItemName" DataMemberBinding="{Binding Path=ItemName}" Width="*" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

public class Item
{
    public string ItemName { get; set; }
    public bool IsComplete { get; set; }
}
public partial class MainWindow : Window
{
    public ObservableCollection<Item> Items { get; set; }
    public MainWindow()
    {
        InitializeComponent();
        Items = new ObservableCollection<Item>();
        for (int i = 0; i < 5; i++)
            Items.Add(new Item()
            {
                ItemName = "Object " + i,
                IsComplete = (i % 2 == 1 ? true : false)
            });
        DataContext = this;
    }
}
Yoan
Telerik team
 answered on 25 Mar 2014
7 answers
231 views
I am using the Arrow5Filled and Arrow5 SourceCapType's to differentiate between 2 different join types in my diagram. When a user double clicks the join line I throw up a popup and allow them to enter/edit information about the join. The problem I am facing is that the Arrow5 SourceCapType is not clickable unless you get right on the line (very fiddly), opposed to the Arrow5Filled which is clickable anywhere in the shape. How can I make the Arrow5 SourceCapType to have the same behavior as the Arrow5Filled SourceCapType?
Zarko
Telerik team
 answered on 24 Mar 2014
1 answer
65 views
I understand you are not supporting WPF 3.5 officially,  but if I buy a license, can I still get a hold of the latest WPF .NET 3.5 build without support?  I'm in a bind here, and I know from experience that Telerik is the best thing out there.  Our company can only develop with .NET 3.5 for customer deployment reasons with various clients.  Currently I'm stuck modifying the plain vanilla .NET 3.5 WPFToolkit DataGrid and open source codeplex files such as TreeViewEx.  Although they do the job, I don't completely trust them as much as I trust a third party tool such as Telerik, and have already run into hurdles with them that are eating up my time fixing them.

best,

-Mike Gold
Dimitrina
Telerik team
 answered on 24 Mar 2014
3 answers
151 views
I love the examples you have showing how you can group by a category.  Is it possible to add multiple categories to an appointment and group by it?  For example, lets say using your TV Schedule example, a show might be Sports and Documentary.   So when Grouping, I would like to see the Appointment come up in both Sports and Documentary.   Obviously, I have to be able to select multiple categories.  But how to group by them as well?  Would be a HUGE Help if you could give me some direction.
Rosi
Telerik team
 answered on 24 Mar 2014
1 answer
162 views
Hi,

I tried to create a schedule view grid with recursive block feature.

For Radscheduleview - EnableSimpleReccurrenceRendering="True" RecurringSelectionModifier="Shift"
Active view definition - <telerik:WeekViewDefinition Orientation="Vertical" GroupHeaderDateStringFormat="{}{0:yyyy MMMM dd}" TimerulerMajorTickStringFormat="{}{0:%h t}" DayStartTime="05:00" DayEndTime="05:00"  VisibleDays="30"/>

I am able to create recursive blocks in all the areas, except last row 04 30 to 05 00 AM in the grid.
If i set grid start and end as 05 00 AM to 04:59 AM then it is working fine.

Pls suggest me the way to achieve this.

-Sugumar Panner selvam
Konstantina
Telerik team
 answered on 24 Mar 2014
2 answers
299 views
The problem that I'm encountering is the xhtml that I'm passing in to the telerik RadRichTextBox is being modified by removing parts of the <a> anchor tag.  Specifically, the href and a custom property (not shown in my example).  I've include the xhtml that I send into the editor and what I get out from the editor.  The links in the editor do not work so I know that the link tag is being stripped when I set the xhtml to the document.

Here is the Get/Set that I use.
public string HtmlText
{
            get
            {
                 string xhtml = new HtmlFormatProvider().Export(Document);
                 return xhtml;
             }
             set
             {
                  Trace.WriteLine(xhtml);               
                  Document = new HtmlFormatProvider().Import(xhtml);
                  Trace.WriteLine(new HtmlFormatProvider().Export(Document));
             }
}


xhmtl from the first Trace output (href="http://www.google.com" is there)
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body style="FONT-SIZE: 14pt; FONT-FAMILY: Terminal; COLOR: #000000; DIRECTION: ltr">
<span style="FONT-SIZE: 14pt; FONT-FAMILY: Terminal"> </span>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
<a id="BC3BE1011F754A44B7BE22BA0208FB21" name="BC3BE1011F754A44B7BE22BA0208FB21" href="http://www.google.com" style="cursor:pointer;">test link to google</a>fdsa
</p>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
&nbsp;
</p>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
<a name="98E8EC0711AA4508BDAE5A97A4FDA86F" href="http://www.google.com" style="cursor:pointer;">test link to google</a>
</p>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
&nbsp;
</p>
<p style="MARGIN-BOTTOM: 0px; DIRECTION: ltr; MARGIN-TOP: 0px">
<a name="3C42D11201D24B7E8848383B02A7F119" href="http://www.google.com" style="cursor:pointer;">test link to google</a>
</p>
</body>
</html>

xhtml out of the editor, the href is missing

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
p { margin-top: 0px;margin-bottom: 0px;line-height: 1.15; }
body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; }
.Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; }
.TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; }
.NormalWeb { telerik-style-type: paragraph;telerik-style-name: NormalWeb;margin-top: 6.66px;margin-bottom: 6.66px;border-collapse: collapse; }
.s_9397EFD2 { telerik-style-type: local;font-family: 'Arial';font-size: 18.6666666666667px;color: #000000; }
.p_C499D8E6 { telerik-style-type: local;margin-top: 0px;margin-bottom: 0px; }
.s_24B402CC { telerik-style-type: local;font-family: 'Arial';font-size: 18.6666666666667px;color: #0000FF; } </style></head><body><p class="NormalWeb "><span class="s_9397EFD2">&nbsp; </span></p><p class="NormalWeb p_C499D8E6"><a name="BC3BE1011F754A44B7BE22BA0208FB21"><span class="s_24B402CC">test link to google</span></a><span class="s_9397EFD2">fdsa </span></p><p class="NormalWeb p_C499D8E6"><span class="s_9397EFD2">&nbsp; </span></p><p class="NormalWeb p_C499D8E6"><a name="98E8EC0711AA4508BDAE5A97A4FDA86F"><span class="s_24B402CC">test link to google</span></a><span class="s_9397EFD2"> </span></p><p class="NormalWeb p_C499D8E6"><span class="s_9397EFD2">&nbsp; </span></p><p class="NormalWeb p_C499D8E6"><a name="3C42D11201D24B7E8848383B02A7F119"><span class="s_24B402CC">test link to google</span></a><span class="s_9397EFD2"> </span></p></body></html>
Mihail
Telerik team
 answered on 24 Mar 2014
2 answers
76 views
I have a RadMaskedDateTimeInput for DateTime where I am displaying Time. Now when I click on inbuilt Clear Button, the focus stays on right most side.
Is there a way to get focus on left most side, as it was in the previous version (2013.2.724.40), but my current installed version is  2013.3.1204.40.
Any help will be much more appreciated.

Thanks
Bharat Mendapara
Top achievements
Rank 1
 answered on 24 Mar 2014
1 answer
242 views
Let's suppose I have a RadPaneGroup in a WPF view.

Now I want to do this:   

var x = new RadPane();

myRadPaneGroup.AddItem(x);

This must be done in the ViewModel NOT code behind.

How do we accomplish that?
Vladi
Telerik team
 answered on 24 Mar 2014
1 answer
174 views
Hi,

I'm pretty new to Telerik WPF programming, so please forgive me any dumb questions.

I have a GridView control which displays its data through a ValueConverter which retrieves the data from a complex data structure in memory. I use a DataTemplate which displays additional information from the complex data structure using the same ValueConverter.
This works just fine.
If I now edit a cell value in my GridView, the data gets correctly updated in my data structure, but the value displayed in RowDetails still shows the old value. Even if I close and reopen the RowDetails, the old value remains visible.
I guess this is because of this:
www.telerik.com/help/wpf/radgridview-row-details-programming.html
LoadingRowDetails - the LoadingRowDetails event is raised immediately after the FrameworkElement has been loaded from the Row DetailsDataTemplate. It is raised the very first time the row details are about to be shown. Once this event has been fired, it will never fire again for that row. However, if the row is recycled and then realized, it starts its "life" again, this event will be fired again the first time the details are about to be shown.

Do I need to manually fire the LoadingRowDetails event to get the data updated in the RowDetails? Any other thoughts how to do this? Any code examples or internet pointers how to do this?

Thanks for your help.

Best regards,
Markus
Dimitrina
Telerik team
 answered on 24 Mar 2014
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
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?