Telerik Forums
UI for WPF Forum
1 answer
249 views
Hi there,

I have a dynamic collection which I bind to the tab control, however, I would also like to be able to enable / disable the tabs based on some criteria, however, I am unsure of what to  bind to so I Can disable tabbing to the control.

I followed your basic demo for binding to a collection please see code below

<Grid>
        <Grid.DataContext>
            <WpfApplication3:MainWindowViewModel/>
        </Grid.DataContext>
        <telerik:RadTabControl ItemsSource="{Binding People}" >
            <telerik:RadTabControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}"/>
                </DataTemplate>
               
            </telerik:RadTabControl.ItemTemplate>
            <telerik:RadTabControl.ContentTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Age}"/>
                </DataTemplate>
            </telerik:RadTabControl.ContentTemplate>
        </telerik:RadTabControl>
    </Grid>

Thanks
Petar Mladenov
Telerik team
 answered on 11 Oct 2011
4 answers
222 views
Hi there,

I am using RadScheduleView version 2011.2.920.40 with ViewModel style.

XAML:
AppointmentsSource="{Binding StaffAppointments}" ResourceTypesSource="{Binding StaffResourcesTypes}"

The appointments are not updated on the view when AppointmentsSource is updated. Unless I click on WeeklyView then back to TimelineView, and the appointments are updated on the UI.

I thought this problem has been addressed?
http://www.telerik.com/community/forums/preview-thread/wpf/scheduleview/appointments-not-update-on-view-when-source-is-updated.aspx

Please advise.
Rosi
Telerik team
 answered on 11 Oct 2011
2 answers
102 views
Hello,
I have a Hierarchy RadGridView that works fine.

But there are 2 things I can'y achieve :
1. There can't be more than one row selected => if for example a user selects a row in the child Grid, no other row in the parent Grid must be selected. The same if the user selects a row in the parent Grid....
2. I want to retrieve the ID of the selected Row. It works if the user selects a row in the parent Grid, but not if the user selectd a row in th child Grid. In the SelectionChanged event, I cast e to GridViewDataControl, to be able to test ParentRow, but it's not working...

Thanks a lot for your help.
Xavier
Xavier
Top achievements
Rank 1
 answered on 11 Oct 2011
5 answers
161 views
I'm currently evaluating the GridView control for a project and am trying to determine if it supports a feature I would like to have. I've searched for this and found nothing, but I'm not sure if there's a common name for the feature I'm unaware of.

What I would like is the ability to show the editor template for a cell on a certain trigger, but without the row/cell entering edit mode; it'd be a sort of 'preview edit' mode. Then, when the control gains focus it would enter 'true' edit mode.

This might make more sense in context. Say I have a column displaying dates, and the editor I want to use is a standard .NET DatePicker. To edit this value I would like it to work like this: when I mouse-over a cell in that column, the editor template appears for that cell. Then, I can click into the editor textbox or click on the button that launches the popup; either of these would enter edit mode. This would allow me to edit the value with one fewer click than I'm currently able to.

Is this supported and I'm missing it, or is it possible to write myself, or just completely unsupported? Thanks.
Pavel Pavlov
Telerik team
 answered on 11 Oct 2011
0 answers
94 views
Hi telerik,

I'd like to write code that dynamically binds the Header to different properties on the DataContext depending on a bool.
I've found below code, but 'Header' is not the object to use in code - can you help me?

Thanks,

Anders, Denmark

 

 

 

 

 

Binding myBinding = _isPropertyEditor ? new Binding("DisplayNameEditor") : new Binding("DisplayNamePropertyEditor");

 

myBinding.Source = DataContext;

Header.

 

SetBinding(TextBlock.TextProperty, myBinding);

 

Anders
Top achievements
Rank 1
 asked on 11 Oct 2011
1 answer
122 views

Hi,

I have used the below code to make the parent and child gird (self reference) column with as same.

this.binder = new ColumnWidthBinder(this.RadGridView1);

if (

 

 

dataControl.ParentOfType<RadGridView>() != null)
{
for(int i = 0; i < dataControl.Columns.Count; i++)
{
this.binder.RegisterColumn(dataControl.Columns[i], i);
}
}

all the column widths of parent and child coming correctly. the self reference hierarchy is also find but its like all left aligned. If I want to maintain the width as same and also the child items should indent from the parent (tree view hierarchy), what I have to do?

Any help appreciated?

Thanks,
Ramasamy

 

Dimitrina
Telerik team
 answered on 11 Oct 2011
1 answer
157 views
Hi Telerik team,

I have a requirement in which focus should move to next cell using arrow keys.

When cell is in edit mode, use arrow key to move right. After reaching to the extreme right, focus should move to next cell on further pressing right arrow key.

Please let me know the work around. If possible, a sample would be helpful.

Thanks
Bala
Maya
Telerik team
 answered on 11 Oct 2011
0 answers
56 views
hi Team,

we are using telerik reporting for generating reports and saving the reports in different formats such as ms-word, excel, cvs etc.,
one scenario is failing for us when user saves a file name as filename.x (x be any character). for example when he select a report and exports it as word and in the save dialog box if he gives the name as 'report.1' it is not saving as word format and user unable to open this. please let me know how to handle this. following is the code snippet :

 

private void CbSelectionChanged(object sender, SelectionChangedEventArgs e)
  
{
  
if (e.AddedItems.Count == 1)
  
{
  
var selection = e.Audited[0] as ExtensionInfo;
  
  
if (selection != null )
  
_telerikReportViewerModel.SelectedRenderingExtension = selection;
  
//clear selection
  
((ComboBox) sender).SelectedItem = null;
  
}

 

 

 

 

 

Sharan
Top achievements
Rank 1
 asked on 10 Oct 2011
2 answers
90 views
Hey Guys,

I seem to be having a lot of trouble getting the Persistence Framework to work at all.  No matter whether I try to use IsolatedStorage or a stream, I get the following exception when I try to load the persisted data:

"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"

Has anyone see this before, or know what I might possible be missing?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 10 Oct 2011
3 answers
118 views
We are databinding the ItemsSource property of the RadPivotMap to a property in our viewmodel of type ObservableCollection<> 
If we set this property to a new value, the propertychanged event is triggered and the pivotmap is updated.
However adding/deleting items to/from the ObservableCollection does not trigger an update of the pivotmap.

This seems like a bug in the pivotmap-control as everything works correctly if we bind another control to the same collection.
Yavor
Telerik team
 answered on 10 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?