Telerik Forums
UI for WPF Forum
5 answers
427 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
174 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
84 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
116 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
133 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
2 answers
86 views
Hello there!

I display the schedule view only in Month view and I have requirement to open a another view when user clicks on any of the day cell header. Which event is triggered? I also want to understand which date's header is clicked so I can process it further.

Any help in this regard would be greatly appreciated!
Kshamesh
Top achievements
Rank 1
 answered on 02 Aug 2012
2 answers
105 views
Hi, Is it possible to split an appointment when I add a new one which intersects an existing appointment? Please check my attached images, Appointment1.png is the existing appointment, when I add a new appointment which intersects with first appointment, I don't want the second appointment to be added below the first appointment, I want it to look like AppointmentSplit.png.

Is this possible?
Mark
Top achievements
Rank 1
 answered on 02 Aug 2012
0 answers
40 views
Hello,

we have a Grid with automatic data binding to DataTable object. One of the columns calles "Image URL" contains urls of images on the web. Instead of printing the URLs I would like to load and display images that correspond to it. Here is the code we use

@(Html.Telerik().Grid(Model.dt)
        .Name("TheGrid")
                        .Scrollable(s => { s.Enabled(true); s.Height(600); })
        .Columns(col => col.AutoGenerate(c => { c.Width = "150px"; })))
        .Sortable(sorting => sorting.Enabled(true))
        .Filterable(filtering => filtering.Enabled(true))
        .Pageable(paging => paging.PageSize(int.MaxValue).Style(GridPagerStyles.Status))
        .ClientEvents(events =>
            {
                events.OnDataBinding("onResultsGridDataBinding");
            })
        )

Model.dt is a DataTable object. Please help.
Pavel
Top achievements
Rank 1
 asked on 01 Aug 2012
2 answers
93 views
Hey Everyone

I need help deciding which control would be best for a design I've been given.  I need a control similar to a combo box or drop down in that a button on the right will be used to expand the control.  However, the content of the control will have multiple items on each line.  The attached images should explain a little better.  The expanded contents should float over the other controls on the screen; not push them down.

Help!

Thanks
Mark
Mark
Top achievements
Rank 1
 answered on 01 Aug 2012
2 answers
148 views
I know there must be a way to set the font of the page numbers generated by PageField, but I can't figure it out.  Also, there are 3 formatting strings, but I can't find any documentation on how they are used.
Thanks,
Steve
Steve
Top achievements
Rank 1
 answered on 01 Aug 2012
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?