Telerik Forums
UI for WPF Forum
3 answers
103 views
Hello, 
is it possible to view the details for the two rows at the same time?
Rossen Hristov
Telerik team
 answered on 30 Mar 2012
3 answers
145 views
1.  I don't see this control in your list of wpf controls below; is it still available? 
(oddly I was recently told by someone at support that you had nothing like it--maybe it's new or in beta?)
http://www.telerik.com/products/wpf/controls.aspx
2.  Does it or will it support Entity Framework 5.0?
3.  Does it or will it support dbcontext (4.x and higher)?

Thanks.
Rossen Hristov
Telerik team
 answered on 30 Mar 2012
1 answer
108 views
Nowdays, .NET 3.5 assemblies is rarely used,But the installer/setup auto install them and cannot deselect by user.This is very annoying.I hope the next release will resolve this problem.
Chavdar Dimitrov
Telerik team
 answered on 30 Mar 2012
1 answer
208 views
I tried to set the new added row as the selected row, but have some strange effects.
In the grid I have set IsSynchronizedWithCurrentItem to true, because I want the arrow to follow the selected row (currentItem).
Also set the ShowInsertRow to true.

After the user has clicked on that row, filled in his information and presses the Enter key, I'd like to set this newly added row as the selected row with the Arrow (IsSynchronizedWithCurrentItem) also set to this row.

With AddingNewDataItem I create the new item with default values.

In the RowEditEnded I add this new object to the ObjectContext, save the changes in the context and do the following check:
if (e.Row is GridViewNewRow)
{
  ScrollIntoView(grdDataGrid, e.Row.Item);
}

Then I have the ScrollIntoView function:
private void ScrollIntoView(RadGridView grd, object itmSel)
{
  grd.SelectedItem = itmSel;
  grd.ScrollIntoViewAsync(grd.SelectedItem, r =>
  {
    var row = r as GridViewRow;
    if (row != null)
    {
      row.IsCurrent = true;
      row.IsSelected = true;
      row.Focus();
    }
    grd.CurrentItem = itmSel;
    grd.CurrentCellInfo = new GridViewCellInfo(grd.SelectedItem, grd.Columns[0]);
  });
 
}


It looks like it's working, but I still have the previous selected row ALSO having the Arrow mark. When I select a different row the newly selected row get the arrow mark, but my new added row keeps also having the arrow mark. 
I need to select the new added row then select a different row to have it all working. 

What's wrong here? Using WPF Q1 2012.





Dimitrina
Telerik team
 answered on 30 Mar 2012
2 answers
171 views
I have null reference exception with just simple code of charts components (components version 2011.2.920.35)

System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.Charting
  StackTrace:
       at Telerik.Windows.Controls.Charting.AxisX.CalculateItemRange(DataSeries dataSeries, Int32 index, Boolean shouldSubtractItemWidth) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Chart\ChartArea\Axis\AxisX.cs:line 384
  InnerException:

Code example
      
<telerik:RadChart Name="MonitoringChart" />
 
private void UserControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
{
       MonitoringChart.SeriesMappings.Clear();
 
        var lineSeriesDefinition = new LineSeriesDefinition();
        lineSeriesDefinition.ShowItemLabels = true;
        lineSeriesDefinition.ShowItemToolTips = true;
        lineSeriesDefinition.ItemToolTipFormat = "#Y at #X{dd-MMM-yy HH:mm:ss}";
        lineSeriesDefinition.AxisName = item.Name;
 
        var items = new List<DataPoint<object>>();
        items.Add(new DataPoint<object>() { Time = DateTime.Now.AddMinutes(0), Value = 1 });
        items.Add(new DataPoint<object>() { Time = DateTime.Now.AddMinutes(1), Value = 2 });
        items.Add(new DataPoint<object>() { Time = DateTime.Now.AddMinutes(2), Value = 3 });
        items.Add(new DataPoint<object>() { Time = DateTime.Now.AddMinutes(3), Value = 4 });
 
        var seriesMapping = new SeriesMapping();
        seriesMapping.ItemsSource = items; //item.Values;
        seriesMapping.LegendLabel = item.Name;
        seriesMapping.SeriesDefinition = lineSeriesDefinition;
        seriesMapping.ItemMappings.Add(new ItemMapping() { FieldName = "Time", DataPointMember = DataPointMember.XValue });
        seriesMapping.ItemMappings.Add(new ItemMapping() { FieldName = "Value", DataPointMember = DataPointMember.YValue });
 
        MonitoringChart.SeriesMappings.Add(seriesMapping);
}

public class DataPoint<T>
{
    public DataPoint()
    {
    }
 
    public DataPoint(T value, DateTime time)
    {
        Value = value;
        Time = time;
    }
 
    public T Value { get; set; }
    public DateTime Time { get; set; }
}



Aaron
Top achievements
Rank 1
 answered on 29 Mar 2012
5 answers
549 views
Hi All,

I was able to put checkbox for all combobox items. Now I need to have a SelectAll checkbox as the first option inside the combobox. I was successful in that as well. But I would like to know the currently selected checkbox item from the Method bounded to the Command of the checkbox otherwise the SelectAll option will not work as expected.

<

 

DataTemplate x:Key="RowItemDataTemplate">

 

 

 

<CheckBox x:Name="rowCheckbox" Margin="2,2"

 

 

Command="{Binding Path=DataContext.RowCheckCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}"

 

 

Content="{Binding Path=RowName}"

 

 

IsChecked="{Binding Path=IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />

 

 

 

</DataTemplate>

 


<

 

ComboBox Grid.Row="0" Grid.Column="2" x:Name="cboRows" Style="{DynamicResource ValidatingComboBox}"

 

 

ItemsSource="{Binding RowItems}"

 

 

ItemTemplate="{StaticResource RowItemDataTemplate}"

 

 

Text="{Binding SelectedRowsText}"

 

 

IsEditable="True" Margin="5,0,0,0"

 

 

IsReadOnly="True"

 

 

MaxDropDownHeight="140"/>

 


public

 

ICommand RowCheckCommand

 

{

 

get

 

{

 

if (_rowCheckCommand == null)

 

{

_rowCheckCommand =

new RelayCommand(

 

param => RowCheckBoxChanged(),

param =>

true

 

);

}

 

return _rowCheckCommand;

 

}

}


public

 

void RowCheckBoxChanged()

 

{

NotifySelectedRowsText();

}


Is there a way, that i can pass the currently selected checkbox item to RowCheckBoxChanged() method?
I had been doing this in wpf combobox. Since i can't find any solution to my problem, i was thinking to shift to Telerik combobox, if it can solve my problem.

Any idea/suggestion will be greatly appreciated.

Regards

SVP
gans
Top achievements
Rank 1
 answered on 29 Mar 2012
1 answer
246 views
I have a grid on a screen that ShowInsertRow is set to true.  When the user can add data and when they leave that row I have a RowEditEnded method that inserts the data into the database.  If the insert fails or they do not add any new data  nothing new is inserted into the database, but the row on the screen is still there.  Is there a way to remove that new row if no data was entered.
Frank
Top achievements
Rank 1
 answered on 29 Mar 2012
2 answers
125 views
Hello All,

I have a RadGridView with two columns of Checkboxes.  If the user Checks the Checkbox in Column B, I would like to also have the Checkbox in Column A automatically check itself.  Is this possible?  I've been playing around in the code for the Checkbox_Click event, but have not had much success.  Any help would be much appreciated. 

Thanks in advance,
Kiet
Kiet
Top achievements
Rank 1
 answered on 29 Mar 2012
2 answers
159 views
Hi all,

I have a problem with custom headercellstyle and applied theme.
I generate grid columns in runtime, and affect a style on header cell to set tooltip property.

var headerStyle = new Style(typeof(GridViewHeaderCell));
headerStyle.Setters.Add(new Setter(GridViewHeaderCell.ToolTipProperty,
new Binding("HeaderToolTip") { Source = columnModel }));
column.HeaderCellStyle = headerStyle;

My grid use the metro theme but header are using the default theme (office black). If I comment previous code snippet, header use the metro theme.
What am I doing wrong?

Aurélien
Top achievements
Rank 1
 answered on 29 Mar 2012
3 answers
156 views
With the RadChart control, it is possible to get hold of the plot area and enable disable custom grid lines to identify mouse cursor position.

I want to acheive the same thing with the RadChartView.  Is it possible.  I know you have the "ChartTrackBallBehavior" facility, but I want to be able to control how it works.  e.g. I want it to remain when mouse not over the chart, and would prefer its operation to run a mouse action such as RightMouseDown.

Thanks
Craig

Evgenia
Telerik team
 answered on 29 Mar 2012
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?