When i use vertical scroll bar to scroll the page,radtabItem are hiding. How i can make the radtabcontrol position fixed to top and i should be able to scroll only the content of the page.
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<telerik:RadTabControl Width="Auto">
<telerik:RadTabItem Header="General"
IsSelected="{Binding IsGeneralTabSelected}">
<Grid>
<Grid.Resources>
<DataTemplate x:Key="PaletteTemplate">
<Ellipse Width="10"
Height="10"
ToolTipService.ToolTip="{Binding ToolTipString}">
<Ellipse.Fill>
<SolidColorBrush Color="{Binding CustomColor}" />
</Ellipse.Fill>
</Ellipse>
</DataTemplate>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
.
.
</telerik:RadTabItem>
</telerik:RadTabControl>
</Grid>
</Grid>
Thank you.
Currently i have the problem, that i need to know how much visible rows are in the grid. For this, i use the following code:
return
this
.ChildrenOfType<GridViewRow>().Where(item => item.IsVisible).Count();
But this always returns more columns (about 2 - 5) than i can really see. So what am i doing wrong?
Thank you very much!
Hello,
in ASP you have this method:
protected void TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
where you can use this:
int count = e.TimeSlot.Appointments.Count
Ideal scenario:
1. Press on a Slot >> check Resource.Name + Appointments.Count >> if (Appointments.Count >= 5) >> you cannot add a new appointment in this Slot.
Thanks in advanced.
Hi,
I have attempted to add a RadContextMenu to a RadAutoCompleteBox but the context menu does not open when the RadAutoCompleteBox is clicked! Can you see what my problem is please?
Regards,
Joe
<telerik:RadAutoCompleteBox x:Name="ColDriverAutoBox" Grid.Column="3" Grid.Row="0" Padding="6,0,0,4" AutoCompleteMode="SuggestAppend" DropDownWidth="240" WatermarkContent="Enter Collection Driver name" TextSearchPath="Name" SelectionMode="Multiple"
DisplayMemberPath="Code" SelectedItems="{Binding ColDrivers, Source={StaticResource ViewModel}}"
DropDownItemTemplate="{StaticResource CustomDropDownItemTemplate}" IsTabStop="True" TabIndex="141" ContextMenu="{x:Null}" >
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu >
<telerik:RadMenuItem Header="Copy" />
<telerik:RadMenuItem Header="Paste" />
<telerik:RadMenuItem Header="Cut" />
<telerik:RadMenuItem IsSeparator="True" />
<telerik:RadMenuItem Header="Select All" />
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>
</telerik:RadAutoCompleteBox>
I need to have more than one appointment type, let's them be AppX and AppY, both derived from your Appointment class. One may have properties that the other does not, but at a minimum both have a subject, a start time and end time.
The AppointmentsSource property being bound to a Collection of Appointment objects, I can thus add AppX and AppY objects to it.
So far, so good. Each appointment type is displayed in the schedule the way I want (I use a different template for each type).
Now I want to be able to show a create/edit dialog that is customized to each type of appointment. DialogX and DialogY would be associated to AppX and AppY, respectively. And if the user double-clicks on an empty slot, I want to create an appointment of type AppX through DialogX.
This is where I'm stuck.
I thought of hooking to the AppointmentCreating and AppointmentEditing events, and show the appropriate dialog there. Is this the correct technique?
Or would you not happen by any chance to have a sample that illustrates how this could be done?
I've just updated the Telerik controls and now I am trying to find a new way to apply my filtering.
Previously I had a FilterDescriptor defined in the XAML for my grid, that allowed me to filter on a Data Member without including that member as a column. The grid is bound to a child collection of a parent object (which is the data context for the User control). But I need to filter the child collection so that items marked IsDeleted are never shown to the user.
What is the easiest, quickest way to do this now that FilterDescriptors are no more?
Hi,
I'm using binding sampling threshold in chartview, everything is ok until i'm going to another view. It throws NullReferenceException in Telerik.Windows.controls.Chart.dll in method SampleThresholdData because internalView is null.
Is this a bug, or i am doing something wrong?
Thanks
What is the purpose of this property?
I was under the impression that it might be used to indicate that an event extends across the whole day, that is, from 00:00 to 23:59 (or from the open hour up to the close hour).
But if I don't supply a start time and end time, nothing is shown (if I leave out the end time, the duration is that of a single slot located at the specified start time). And if I have to supply a start time and an end time, that kind of defeats the purpose.
What am I missing?
Hello,
I wonder if it is possible to work with lists and arrays in RadPropertyGrid in the same way. Maybe some example will clarify my problem:
At runtime I bind object of type shown below to RadPropertyGrid.Item:
public class SampleType
{
public int Id { get; set; }
public string Content { get; set; }
public int[] array { get; set; }
public List<int> list { get; set; }
}
List is initialized but empty, the same in the case of the array.
In GUI I can modify list property (add/remove items and modify their content), but array property cannot be modified in any way. I understand more static nature of arrays in .NET, but maybe it is possible to enable 'dynamic arrays' in RadPropertyGrid using some property or custom made extension method.
I would be most grateful if you would look into this matter as soon as possible and at least tell me if it is possible :).
Best Regards,
Maciej Nowicki