Telerik Forums
UI for WPF Forum
2 answers
133 views
Hi,

I am using RadGanttView control with Q3 SP1 Version.
When i am register to OpeningContextMenu event on the GanttView and press right click on a Task its not working :(.
When i am press right click on other area like TimeRulerLines the OpeningContextMenu works fine.
I remember that before Q3 SP1 version the OpeningContextMenu event works fine, so can you please check this issue and tell me what i need to fix in my code to make this event works ?

Thanks.
surreal
Top achievements
Rank 1
 answered on 03 Nov 2015
8 answers
606 views

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.

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Nov 2015
6 answers
978 views

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!

Stefan Nenchev
Telerik team
 answered on 02 Nov 2015
4 answers
186 views

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.

Sarif
Top achievements
Rank 1
 answered on 02 Nov 2015
4 answers
188 views

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>​

Nasko
Telerik team
 answered on 02 Nov 2015
2 answers
152 views

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?

 

Nasko
Telerik team
 answered on 02 Nov 2015
2 answers
97 views

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?

Stefan
Telerik team
 answered on 02 Nov 2015
1 answer
141 views

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

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Nov 2015
3 answers
87 views

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?

 

Kalin
Telerik team
 answered on 02 Nov 2015
2 answers
276 views

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

Maciej
Top achievements
Rank 1
 answered on 30 Oct 2015
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?