Telerik Forums
UI for WPF Forum
2 answers
84 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
157 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
467 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
202 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
99 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
143 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
150 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
103 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
136 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
49 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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?