Telerik Forums
UI for WPF Forum
6 answers
140 views
is it possible to show Two different SeriesItemLabel in RangeBarSeriesDefinition for High/Low value?

Martin Ivanov
Telerik team
 answered on 26 Sep 2014
3 answers
626 views
I have a muliple hierarchy Gridview with a context menu and I would like to pass the current row from the grid when clicking a particular item from grid, however when I do check check for the method handler in the VM, the parameter is always null.
What I would like to do is get access to the Row datacontext in the grid when a user clicks on the menu.
XAML code:
<telerik:RadGridView RowIndicatorVisibility="Hidden" SelectionMode="Single" SelectionUnit="FullRow" SelectedCellsChanged="RadGridView_OnSelectedCellsChanged" x:Name="radGridView" Margin="10" ItemsSource="{Binding Enquiries}" ShowGroupPanel="False" AutoGenerateColumns="False" Height="380" IsFilteringAllowed="False" DataLoaded="RadGridView1_OnDataLoaded">
          <i:Interaction.Triggers>
            <i:EventTrigger EventName="Sorting">
              <cmd:EventToCommand Command="{Binding SortingCommand}" PassEventArgsToCommand="True"></cmd:EventToCommand>
            </i:EventTrigger>
          </i:Interaction.Triggers>
          <telerik:RadContextMenu.ContextMenu>
              <telerik:RadContextMenu>
                    <i:Interaction.Triggers>
                      <i:EventTrigger EventName="ItemClick">
                        <cmd:EventToCommand Command="{Binding GetEnquiryCommand}" CommandParameter="{Binding ElementName=radGridView, Path=SelectedRow}"></cmd:EventToCommand>
                      </i:EventTrigger>
                    </i:Interaction.Triggers>                <telerik:RadMenuGroupItem Background="LightSkyBlue">
                  <telerik:RadMenuItem Header="Mark as Complete"></telerik:RadMenuItem>
                  <telerik:RadMenuItem Header="Link to UW Reference"></telerik:RadMenuItem>
                </telerik:RadMenuGroupItem>
                <telerik:RadMenuGroupItem Background="LightSkyBlue">
                  <telerik:RadMenuItem Header="Edit Enquiry">
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem Header="View Enquiry">
                  </telerik:RadMenuItem>
                </telerik:RadMenuGroupItem>
              </telerik:RadContextMenu>
          </telerik:RadContextMenu.ContextMenu>
          <telerik:RadGridView.ChildTableDefinitions>
            <telerik:GridViewTableDefinition/>
          </telerik:RadGridView.ChildTableDefinitions>
          <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding EnquiryId}" Header="ID" IsCustomSortingEnabled="True" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding AssuredName}" Header="Assured" IsCustomSortingEnabled="True" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding RaterModelVersion.RaterModel.RaterModelName}" Header="Product" IsCustomSortingEnabled="True" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding BrokerName}" Header="Broker Name" IsCustomSortingEnabled="True" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding EnquiryStatus}" Header="Status"  IsSortable="False" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Underwriter}" Header="UW"  IsSortable="False" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding ChangedDate}" Header="Modified Date" IsCustomSortingEnabled="True" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding ChangedBy}" Header="Modified By"  IsSortable="False" HeaderCellStyle="{StaticResource HeaderCellStyle}"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Comments}" Header="UW Comments"  IsSortable="False" HeaderCellStyle="{StaticResource HeaderCellStyle}" Width="*"/>
          </telerik:RadGridView.Columns>
          <telerik:RadGridView.SortDescriptors>
            <telerik:ColumnSortDescriptor  Column="{Binding Columns[\AssuredName\], ElementName=radGridView}"
                             SortDirection="Ascending" />
          </telerik:RadGridView.SortDescriptors>
          <telerik:RadGridView.HierarchyChildTemplate>
            <DataTemplate>
              <telerik:RadGridView RowIndicatorVisibility="Hidden" ItemsSource="{Binding SectionLayers}" AutoGenerateColumns="False" ShowGroupPanel="False" CanUserSortColumns="False" IsFilteringAllowed="False" DataLoaded="RadGridView1_OnDataLoaded" Width="Auto">
                <telerik:RadGridView.Columns>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding PolicyReference}" Header="UW Reference" />
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding SegmentSectionLayer}" Header="Identifiers"/>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding LimitAt100Percent}" Header="Limits"/>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding ExcessAt100Percent}" Header="Excess"/>
                </telerik:RadGridView.Columns>
                <telerik:RadGridView.ChildTableDefinitions>
                  <telerik:GridViewTableDefinition/>
                </telerik:RadGridView.ChildTableDefinitions>
                <telerik:RadGridView.HierarchyChildTemplate>
                  <DataTemplate>
                    <telerik:RadGridView RowIndicatorVisibility="Hidden" ItemsSource="{Binding PremiumCurrencySplits}" AutoGenerateColumns="False" CanUserSortColumns="False" ShowGroupPanel="False" IsFilteringAllowed="False">
                      <telerik:RadGridView.Columns>
                          <telerik:GridViewDataColumn DataMemberBinding="{Binding PremiumCurrency}" Header="Premium Currency"/>
                          <telerik:GridViewDataColumn DataMemberBinding="{Binding ModelPrice}" Header="Model Price"/>
                          <telerik:GridViewDataColumn DataMemberBinding="{Binding TechnicalPrice}" Header="Tech Price"/>
                          <telerik:GridViewDataColumn DataMemberBinding="{Binding GrossGrossWrittenPremiumAt100Percentage}" Header="100% WRT Premium"/>
                          <telerik:GridViewDataColumn DataMemberBinding="{Binding ProjectedNetLossRatio}" Header="PLR"/>
                       </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                  </DataTemplate>
                </telerik:RadGridView.HierarchyChildTemplate>
              </telerik:RadGridView>
            </DataTemplate>
          </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>


Any ideas ?  Here's my VM code:

private async void GetEnquiry(object enquiry) { }
Kalin
Telerik team
 answered on 26 Sep 2014
2 answers
134 views
Hello,

So I have a GridView in which I can add new rows and within the columns I can select some combo boxes and a date Picker.

This is how it looks before anything is changed


When I change one row at a time and click save it works, the problem is when I multiple rows and combo boxes and I don't click away From the Final Combo Box. It doesn't register the Final Combo Box changed. Pictures below will illustrate what's happening.


Notice the second "Maintained" is currently showing within a combobox, that means it won't register the change until it's clicked away.


You can see here that after the save button is clicked, it reverts back to the value it was before because it wasn't "Registered"



But if I click away such that the ComboBox stops appearing and click save, it works. Image Below.


May I ask How to fix this? 




































Dimitrina
Telerik team
 answered on 26 Sep 2014
7 answers
261 views
Hi,

actually with the control I have a FilteringBehavior which display only the items in the dropdown that contain what I typed. When I have a lot of items in the dropdown the control take some time to display the dropdown even of the MaxDropDownHeight property is set to 250 and I would like to know if it's possible to increase the speed of the popup display?!?

Thank's
Alain
Kalin
Telerik team
 answered on 26 Sep 2014
2 answers
234 views
Hello there,

I do believe this question has an answer on this forum, however I could find it for now. Could you please point me in a right direction.

We have requirement to organise grid columns in 2 rows, please see attached image. How this can be achieved with GridView for wpf ?


Thanks in advance.
Roman
Top achievements
Rank 1
 answered on 26 Sep 2014
1 answer
153 views
The email was rejected somehow, so I post the reply here.

And you http://feedback.telerik.com/ can NOT upload any file!

Alex,
I have still evaluated the UI for WPF.

I found the component is not so compatible with Chinese which it is addressed as following snapshot:

1) Define some Chinese menu in XAML(Use one of demo example you provided)
(snapshot 1)

2) compile error: Invalid character specified, line 31, position 54, .'' XML invalid.
(snapshot 2)

3) If the menu is changed to ASCII, it compile successful.

Platform:
  • VS2013 Chinese version
  • Win 7 Chinese version


I hope the problem will be solved A.S.A.P before I make a decision.

Regards,
--
Steven Zou


在 2014-09-20 10:09:39,"Alex Zinn" <Alex.Zinn@telerik.com> 写道:

Hi Sun,

To follow up on my previous email, I was curious how your evaluation is going?

I also wanted to check in to see which resources (support tickets, forums, blogs, Telerik TV) you found the most useful during your evaluation, and if you encountered anything that would prevent you from recommending Telerik?

Your feedback is greatly appreciated.
Alex Zinn
Product Specialist, ALM Tools
Telerik Inc.
p: (888) 365-2779 x3223
e: Alex.Zinn@telerik.com

Are you enjoying Telerik products? Why not join our fan page on Facebook and follow us on Twitter.
Dimitrina
Telerik team
 answered on 26 Sep 2014
2 answers
328 views
After upgrading to WPF Q2 2014, the StrokeDashArray property stopped working for me.  I confirmed with the same project linking to Q1 2014 that the property is working.

Here is the XAML that reproduces the issue.  Any ideas?  Note that the Stroke and StrokeThickness properties are being updated correctly to Red and thickness 2.  It's just the StrokeDashArray that stopped working.

<chartView:ScatterLineSeries ItemsSource="{Binding LineData}" XValueBinding="XValue" YValueBinding="YValue">
     <chartView:ScatterLineSeries.StrokeShapeStyle>
          <Style TargetType="Path">
               <Setter Property="Stroke" Value="Red"/>
               <Setter Property="StrokeDashArray" Value="10 5"/>
               <Setter Property="StrokeThickness" Value="2"/>
          </Style>
     </chartView:ScatterLineSeries.StrokeShapeStyle>
</chartView:ScatterLineSeries>
Martin Ivanov
Telerik team
 answered on 26 Sep 2014
1 answer
205 views
I'm implementing a wpf application with rad control 2014 to export radreport to Rtf and save as byte to database then retrieve the data from database and display in RadRichTextBox.

here's my code:

Export to rtf format and save to database
System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
Telerik.Reporting.TypeReportSource typeReportSource = new Telerik.Reporting.TypeReportSource();
 Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = report;
Telerik.Reporting.Processing.RenderingResult renderedReport = reportProcessor.RenderReport("RTF", instanceReportSource, null);

and save the output of renderedReport.DocumentBytes to database. 

Load the byte[] and bind to RadRichTextBox
RadDocument document = null;
IDocumentFormatProvider provider = new RtfFormatProvider();
using (Stream stream = new MemoryStream(viewDocumentsCore.DocumentContent))
{
    document = provider.Import(stream);
}
 
radRichTextBox.Document = document;

But it causes error.

I would appreciate for any help.

Hassan
Regards
Petya
Telerik team
 answered on 25 Sep 2014
1 answer
603 views
Is there a simple way to change the Input box border color on focus and on mouse over without overwriting the entire style.
Kalin
Telerik team
 answered on 25 Sep 2014
1 answer
167 views
I have WPF application and 2 RadCartesianChart (please see my screenshot attach)

This is the code of one of them (they both identical):

<telerik:RadCartesianChart x:Name="ccPacketsPerSeconds" Margin="145,392,53,-119">
<telerik:RadCartesianChart.Grid>
<telerik:CartesianChartGrid MajorXLineDashArray="5, 5" MajorYLineDashArray="5, 5" MajorLinesVisibility="None">
<telerik:CartesianChartGrid.MajorYLineStyle>
<Style TargetType="{x:Type Line}">
<Setter Property="Stroke" Value="Gray"/>
</Style>
</telerik:CartesianChartGrid.MajorYLineStyle>
<telerik:CartesianChartGrid.MajorXLineStyle>
<Style TargetType="{x:Type Line}">
<Setter Property="Stroke" Value="Gray"/>
</Style>
</telerik:CartesianChartGrid.MajorXLineStyle>
</telerik:CartesianChartGrid>
</telerik:RadCartesianChart.Grid>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis ShowLabels="False" IsEnabled="False" Minimum="-5"/>
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.HorizontalAxis >
<telerik:CategoricalAxis ShowLabels="False" IsEnabled="False"/>
</telerik:RadCartesianChart.HorizontalAxis>
</telerik:RadCartesianChart>

And i want to change 2 things:

1. the color of the line
2. remove the y axis that remained.

I try to change almost all the properties and it still the same so i will glad for some help.



Martin Ivanov
Telerik team
 answered on 25 Sep 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
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?