Telerik Forums
UI for WPF Forum
1 answer
122 views
Hi,
how can I change the icon related to Importance (=High) property of the appointment (in the AppointmentTemnplate)?

thanks, michele
Konstantina
Telerik team
 answered on 30 Mar 2012
3 answers
88 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
132 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
88 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
187 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
146 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
505 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
223 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
112 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
146 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?