Telerik Forums
UI for WPF Forum
3 answers
176 views
Hi,

I am using MVVM Architecture, When I tried to bind ClientID (int value) to X Axis, everything seems working fine, but when I tried to bind Client Name (String Value) to X Axis. I am getting Error saying "Input string is not in correct format".

How Can I bind Custom String Value to X Axis using XAML (no Code Behind)?


 

<telerik:RadChart x:Name="RadChart1" ItemsSource="{Binding Data}" Grid.Row="0" Grid.Column="0" Width="700" >

<telerik:RadChart.SeriesMappings>
<
telerik:SeriesMappingCollection>
<
telerik:SeriesMapping LegendLabel="CandleStick Series" >

 <telerik:SeriesMapping.SeriesDefinition >

<telerik:CandleStickSeriesDefinition /> 
</
telerik:SeriesMapping.SeriesDefinition>

<telerik:ItemMapping FieldName="High" DataPointMember="High" />

<telerik:ItemMapping FieldName="Low" DataPointMember="Low" />

<telerik:ItemMapping FieldName="Open" DataPointMember="Open" />

<telerik:ItemMapping FieldName="Close" DataPointMember="Close" />

<telerik:ItemMapping FieldName="CName" DataPointMember="XValue" />
</telerik:SeriesMapping>

</telerik:SeriesMappingCollection>

 </telerik:RadChart.SeriesMappings>

<telerik:RadChart.DefaultView>

<telerik:ChartDefaultView>

<telerik:ChartDefaultView.ChartArea>

<telerik:ChartArea>

<telerik:ChartArea.AxisX>

<telerik:AxisX LabelRotationAngle="90" Title="Client Name"> </telerik:AxisX>

</telerik:ChartArea.AxisX>

<telerik:ChartArea.AxisY> <telerik:AxisY ExtendDirection="Down" AutoRange="False" MinorTickPointMultiplier="5" Step="{Binding Interval}" MinValue="{Binding MinValue}" MaxValue="{Binding MaxValue}" Title="Blood Volume (mL)">

 </telerik:AxisY>

 </telerik:ChartArea.AxisY>

 <telerik:ChartArea.Legend>

 <telerik:ChartLegend Visibility="Collapsed" /> </telerik:ChartArea.Legend>

</telerik:ChartArea> </telerik:ChartDefaultView.ChartArea> </telerik:ChartDefaultView> </telerik:RadChart.DefaultView> 

</telerik:RadChart>

 

Evgenia
Telerik team
 answered on 21 Jul 2011
1 answer
66 views
Dear Team

After adding a new row in DataGrid, if we click on any other row than both rows are shown as selected. We want that row that is clicked lately only it should be shown as selected and SelectedItems must only containt one element.

Regards
Shahnawaz Babar
Maya
Telerik team
 answered on 21 Jul 2011
3 answers
120 views
Hi

I want to get last selected column when I select new column.

Regards
Vijay
Milan
Telerik team
 answered on 21 Jul 2011
0 answers
81 views
Hello,

I want to change background color to gridview column when user click in a cell. I have this code:

 

private void SelectColumn (string columnName)
{

  foreach (var column in GridViewNew.Columns)
                {
                    if (column == columnName)
                    {
                        ((GridViewDataColumn)column ).Background = new SolidColorBrush(Color.FromArgb(255, 165, 215, 241));                       

                    }
                    else
                    {                     
                        ((GridViewDataColumn) column ).Background = new SolidColorBrush(Colors.White);                       
                    }
                }
}

At first it works, but when i click over another cell, the column chages its color but column´s footer doesn´t.

Gerardo
Top achievements
Rank 1
 asked on 21 Jul 2011
0 answers
115 views
Hi,

is it posisble to disable drag and drop only on a certain row but not entirely disable the row?

thanks
ronald
Top achievements
Rank 1
 asked on 21 Jul 2011
6 answers
307 views
Hi,

I'm using VS2008 and Telerik V2010.3.1314.35 and I have a RadGridView with Date, Time and string column and I don't know why but when I try to copy cell content of cell type other that string, I have an error...

When I copy cell content of a data cell type other than string, "e.Value" always equal null....

How I can handle any cell data type when I try to copy a cell content???

Thank's

 

private void SignCtxVisitsGrid_CopyingCellClipboardContent(object sender, GridViewCellClipboardEventArgs e)

 

{

e.Cancel =

false;

 

 

if (mSelectedCell != null && mSelectedCell.Column == e.Cell.Column)

 

{

 

try

 

{

System.Windows.Forms.

Clipboard.SetText(e.Value as string);

 

}

 

catch (Exception exc)

 

{

}

}

 

else

 

{

e.Cancel =

true;

 

}

}

Oliver
Top achievements
Rank 1
 answered on 20 Jul 2011
1 answer
138 views
How does one style the Popup that appears when the RibbonGroup is in a collapsed state?

Thanks
Viktor Tsvetkov
Telerik team
 answered on 20 Jul 2011
1 answer
147 views
Basing my implementation on your RadRibbonView MVVM example I need to be able to set the variants. But this does not appear to be possible. If it is can you please supply an example where the groups are derrived from the ViewModel.

Thanks
Viktor Tsvetkov
Telerik team
 answered on 20 Jul 2011
11 answers
336 views
As the beta example is not that detailed, I have to ask:

Is it possible to set the initial height of the description panel and where can I switch on, that the user can change the height of the description panel?

Greets
Pavel Pavlov
Telerik team
 answered on 20 Jul 2011
2 answers
186 views
Edit: Title should be "Strange behaviour of minimized ITEMS" (not icons, but I can't change the Title)

Dear Support,

I'm just testing your controls because the Infragistics-Suite seems not to support MVVM in any way.
Your OutlookBar works great, but I have an issue/question about the "Caption/Header/Text" of minimizedItems.
Please take a look at following XAML
<telerik:RadOutlookBar QuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True" telerik:Theming.Theme="Office_Blue" ItemsSource="{Binding OutlookEntries}" Height="234" HorizontalAlignment="Stretch" Margin="211,6,160,31" Name="RadOutlookBar1" VerticalAlignment="Stretch" Width="229">
                     
     <telerik:RadOutlookBar.Resources>
            <Style TargetType="{x:Type telerik:RadOutlookBarItem}">
                  <Setter Property="Header" Value="{Binding Header}"/>                         
                  <Setter Property="SmallIcon"  Value="{Binding SmallImage}"/>
                  <Setter Property="Title" Value="{Binding Header}"/>
                  <Setter Property="Icon" Value="{Binding LargeImage}"/>
              </Style>
        </telerik:RadOutlookBar.Resources>
</telerik:RadOutlookBar>

The Items are shown correctly. But if I'm using the slider in order to minimize the Items, the SmallIcon together with the ClassName will be shown at each "minimizedItem" in the outlookbar at the bottom. I don't understand why. 

I have seen your MVVM-Binding-Sample in which you used ItemMinimizedTemplate
<telerik:RadOutlookBar.ItemMinimizedTemplate>
    <DataTemplate>
        <StackPanel Orientation="Horizontal">
                 <TextBlock Text={Binding Header}/>                              
        </StackPanel>
    </DataTemplate>
</telerik:RadOutlookBar.ItemMinimizedTemplate>

I could use this DataTemplage and delete the TextBlock inside the StackPanel. Then only the Icon will be shown within minimized Items.
But it seems more clean for me with my code above, instead of retemplating ItemMinimizedTemplate, ItemTemplate, HeaderTemplate etc.  The OutlookBar is bound to a CollectionView calles "OutlookEntries" which contains  a simple Class with Strings as Header and ImageSources as Icons.

Any hints would be appreciated.
Petar Mladenov
Telerik team
 answered on 20 Jul 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
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?