Telerik Forums
UI for WPF Forum
3 answers
136 views
Hi,

I'm trying to add an appointment to my ScheduleView using:

var appointments = new ObservableCollection<Appointment>();
Appointment myAppointment = 
new Appointment();
myAppointment.Subject = "Appointment Here";
myAppointment.Start = new DateTime(2012, 7, 31, 00, 00, 00);
myAppointment.End = new DateTime(2012, 7, 31, 2, 00, 00);
appointments.Add(myAppointment);
 
scheduleView.AppointmentsSource = appointments;

The above code works, but when I change the End date of myAppointment to  myAppointment.End = new DateTime(2012, 7, 31, 24, 00, 00); I'm getting a XamlParseException.

How should I be adding a 24hour appointment? Should it be just myAppointment.End = new DateTime(2012, 7, 31, 23, 59, 00);?


Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 03 Aug 2012
2 answers
182 views
I am using RadDataFilter in the following manner:
Just to build a list of conditions that users can query the database.

Our data is huge and thus we cannot bring all data and let the RadDataFilter control filter it. Rather, we are just using this control to get the list of conditions from the user, and then we query database to get the result set.

So, for example, if an element (column in the database) is of type "string (varchar)", I do not want to see all the options in the operator dropdown. Depending on what element is being filtered, I would want to display only certain operators.

Also, it would be nice to name the operators the way we want to. For example, I want to change the "is equal to" operator to something like "equals", and so on..
Shankar
Top achievements
Rank 1
 answered on 02 Aug 2012
2 answers
193 views
I am trying to store the "state" of the RadDataFilter in a database, so that the object can be persisted and the users can add/remove more filter expressions to it.

How is it possible? I tried to serialize the "FilterDescriptors" object, but is it the right way to do it? Is there a better solution than this?

Please let me know.
Shankar
Top achievements
Rank 1
 answered on 02 Aug 2012
2 answers
82 views
Hi all,

Is it possible to inset a row in the RadGridView which behaves the same way as the clicking on the insert row. 

I also have a context menu with an "Add Row" feature. For consistency I would like it to behave in the same way.

Thanks in advance

Arthur
Dimitrina
Telerik team
 answered on 02 Aug 2012
3 answers
152 views
Hello,

i have a GridView which has a Gridview as HierarchyChildTemplate. How can I get a reference to the SelectedItems of the child GridView?

Thanks

Dimitrina
Telerik team
 answered on 02 Aug 2012
5 answers
464 views
Hell out there!
Maybe sbd. out the can help me. I want to implement a drag and drop operation from RadGridView to RadTreeView. But I am too silly.
So, in GridView DragQuery event, I fill the payload:
private void grdSessions_DragQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e)
{
    e.QueryResult = true;
    if (e.Options.Status != DragStatus.DragQuery)
        return;           
    var sessionToDrag = (XTSession)grdSessions.SelectedItem;
    if (sessionToDrag != null)
    {
        e.Options.Payload = sessionToDrag;
        e.Options.DragCue = RadDragAndDropManager.GenerateVisualCue();
        e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue();               
    }           
}


I also implemented the DropQuery and DropInfo of the TreeView:

private void tvwNodes_DropQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e)
        {
            if (e.Options.Payload is XTSession)
            {
                e.QueryResult = true;
            }           
        }
 
private void tvwNodes_DropInfo(object sender, DragDropEventArgs e)
        {           
            if (e.Options.Status == DragStatus.DropComplete)
            {
                if (e.Options.Payload is XTSession)
                {
                        // Do the stuff
                }
            }
        }


My Problem is now, that I have no Idea how to higlight and track the target treeviewitem? When I move the mouse cursor over a treenode in drop mode, I want this treenode to be highlighted. How can this be done? And how can I find out on which node the the drop was done in DropInfo event? The destination object contains the whole treeview. Also, I should disable drop if the mouse cursor is not over a treeviewitem. How can this be done?
Can anybody help me out?

Thanks in advance.

brgds
Sven Weiberg
Sven
Top achievements
Rank 1
 answered on 02 Aug 2012
3 answers
191 views
Hi,
I see "Click here to add new item" , but it doesnt work. It's not enabled(clickable). Where i messed up? =)
<
telerik:RadGridView Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" ItemsSource="{Binding Path=Step.Outputs,Mode=TwoWay}" ShowInsertRow="True" IsReadOnly="False" EditTriggers="CellClick" CanUserInsertRows="True" CanUserDeleteRows="True" AutoGenerateColumns="False" CanUserSortColumns="False" ShowGroupPanel="False" ShowGroupFooters="False">
    <telerik:RadGridView.Columns>
        <telerik:GridViewComboBoxColumn Width="Auto" Header="Typ">
            <telerik:GridViewComboBoxColumn.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Image Source="{Binding Path=OutputType.IconId, Mode=TwoWay, Converter={StaticResource imageConverter}, ConverterParameter='png'}" Grid.Column="0" VerticalAlignment="Center"/>
                        <TextBlock Text="{Binding Path=OutputType.Name, Mode=TwoWay}" Grid.Column="1"></TextBlock>
                    </Grid>
                </DataTemplate>
            </telerik:GridViewComboBoxColumn.ItemTemplate>
        </telerik:GridViewComboBoxColumn>
        <telerik:GridViewDataColumn Width="*"  Header="Text" DataMemberBinding="{Binding Path=CurrentText, Mode=TwoWay}">
        </telerik:GridViewDataColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>
Step.Outputs - ObserverableCollection

Dimitrina
Telerik team
 answered on 02 Aug 2012
3 answers
93 views
Hi,
We had a List page in which Shows a list of items in RadGrid, It works fine but when we scroll down and back to up then different blank areas are visible in grid area. We are using 2011.2.920.40 version of WPF controls.

I have attached screen shots before and after scrolling back.
Thanks
Dimitrina
Telerik team
 answered on 02 Aug 2012
6 answers
139 views
Hello,

When I try to extract a default template of any telerik control in Expression Blend I have only the option "Create Empty" available.
I don't install telerik libraries on my dev computer, but copy the dll's directly into a 3rdParty folder in my solution and use them from there.

Why Blend is not fining the templates, how to fix it?

Thanks,
Tina
Tina
Top achievements
Rank 1
 answered on 02 Aug 2012
3 answers
146 views

Hi There,

when using Timespan as a datatype for filter , listed operator's are only "Equal To" and "Not Equal To". could we customize it to include say "Greater Than","Less Than" etc. similarly while using string as the datatype could we cut down on the operators.

Any help/comments would be appreciated.


Regards
DEE
Rossen Hristov
Telerik team
 answered on 02 Aug 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?