Telerik Forums
UI for WPF Forum
1 answer
132 views
Hi,

I have an app that loads any database and presents the data for the tables in a GridView. I do not define columns in the XAML since I load any database. I'd like to be able to determine when a column from the database contains images and display the images in the grid. Can you tell me how to do this? I see examples in the forms and KB but they all seem to create the columns in XAML since they know the database schema ahead of time.

Thanks,

Gord
Dimitrina
Telerik team
 answered on 04 Aug 2011
2 answers
144 views
Hi all
I am unable to drag an item from RadGallery. I am attaching the sample code. It works fine with image. but not within RadGak

<Window x:Class="RadControlsWpfApp1.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525" telerik:RadDragAndDropManager.DragQuery="Window_DragQuery">
        <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
            <telerik:RadGallery>
            <telerik:RadGalleryItem telerik:RadDragAndDropManager.AllowDrag="True" Image="/RadControlsWpfApp1;component/PDF-04.png"></telerik:RadGalleryItem>
        </telerik:RadGallery>
        <Image Source="/RadControlsWpfApp1;component/PDF-04.png" Grid.Row="1" telerik:RadDragAndDropManager.AllowDrag="True"/>
    </Grid>
</Window>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace RadControlsWpfApp1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void Window_DragQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e)
        {
            MessageBox.Show("draged");
        }
    }
}

Thanks
Deepak
deepak
Top achievements
Rank 1
 answered on 04 Aug 2011
2 answers
128 views
Hello! I'm working with the DataForm and I have what I would guess is a simple question. I'm using a DataForm to edit a single item and I'd like to bind the Commit button to an ICommand on my ViewModel. How do I go about doing that?

-Greg
Greg
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
629 views
Is there any easy way to ensure at least one Tab is selected? My tabs are dynamic, and hide and show themselves based on stuff. I want the first tab to be selected, if no tabs are selected... preferably without lots of work =/
Vladislav
Telerik team
 answered on 04 Aug 2011
0 answers
115 views
I just posted a new solution for implementing drag-drop between ListBox and other controls, and in case you are using WPF - other applications. You can find more information and a sample application here:
http://www.telerik.com/community/forums/silverlight/scheduleview/listbox-drag-drop-behavior.aspx

Best regards,
Valeri Hristov
Telerik
Valeri Hristov
Top achievements
Rank 1
 asked on 04 Aug 2011
0 answers
151 views
I just posted a new solution for implementing drag-drop between ListBox and other controls, and in case you are using WPF - other applications. You can find more information and a sample application here:
http://www.telerik.com/community/forums/silverlight/scheduleview/listbox-drag-drop-behavior.aspx

Best regards,
Valeri Hristov
Telerik
Valeri Hristov
Top achievements
Rank 1
 asked on 04 Aug 2011
1 answer
153 views
How do i find the selected timeslot or the clicked timeslot in the new radscheduleview control. I saw that i would be able to invoke the dialog and cancel it from showing and I get Occurence details there. However, there doesn't seem to be a straightforward way to get the selected timeslot. Could you please guide me in how I could get the selected slot.

Thanks
Bala
George
Telerik team
 answered on 04 Aug 2011
4 answers
252 views
Hi,

I need to style a few bits from the grid that only appear when the grid is grouped by a column. I am attaching an image with the parts that I need to change:

1. The square of Header that appears at the top (I need to change the colour to match the rest of the grid's header)
2. The background of the blank rows and columns that appear when the grid is grouped.
3. The grey squares beneath the expander (also need to change the background).

I tried following your instructions detailed here:

http://www.telerik.com/help/wpf/radgridview-styles-and-templates-styling-the-group-panel.html

But in Blend 4 I cannot generate the template (Edit Copy is disabled). I am also attaching a picture of this problem. Do I need to do something to enable this for the grid? It works fine with RadComboBox, for example.

How should I proceed?

P.S. I notice now I cannot add attachments to this post. Here are two links to the images:

http://www.gepsoft.com/telerik/GridGroupStyle.png
http://www.gepsoft.com/telerik/BlendProblem.png

Best Regards,
Jose
Jose Simas
Top achievements
Rank 2
 answered on 04 Aug 2011
1 answer
194 views

Hi All

I had implemented INotifyDataError for my project it works fine for all column except the one in DataTemplate.(Error add to collection but it doesn't show in GridView)

 <telerik:RadGridView x:Name="grvData"
                             ItemsSource="{Binding AllData, Mode=TwoWay}" 
                             SelectedItem="{Binding SelectedData, Mode=TwoWay}"
                             IsFilteringAllowed="False"
                             ShowGroupPanel="False"
                             AutoGenerateColumns="False"
                             ShowInsertRow="True"
                             CanUserDeleteRows="False" 
                             IsSynchronizedWithCurrentItem="True"
                             ActionOnLostFocus="None" BeginningEdit="grvData_BeginningEdit"
                             Helper:EventFocusAttachment.ElementToFocus="{Binding ElementName=grvDataMaster}"                            
                             Grid.Column="1">
                <telerik:RadGridView.Columns>
                    <telerikGrid:GridViewColumn Header="Ú©Ù„ تسعير ارز"  Width="150">
                        <telerik:GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <TextBlock>
                                 <TextBlock.Text>
                                        <MultiBinding Converter="{StaticResource NameConverter}" ConverterParameter="FormatNameValue">
                                          <Binding Path="ExchangeKolCode"/>
                                          <Binding Path="ExchangeKolName"/>
                                        </MultiBinding>
                                </TextBlock.Text>
                                </TextBlock>
                            </DataTemplate>
                        </telerik:GridViewColumn.CellTemplate>
                        <telerik:GridViewColumn.CellEditTemplate>
                            <DataTemplate>
                                <Controls:LookUp LookUpItemsSource="{Binding DataContext.KolLookUpItems, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"       
                                             LookUpId="{Binding ExchangeKol,Mode=TwoWay}"
                                             LookUpName="{Binding ExchangeKolName,Mode=TwoWay}"
                                             LookUpCode="{Binding ExchangeKolCode,Mode=TwoWay}" />

                            </DataTemplate>
                        </telerik:GridViewColumn.CellEditTemplate>
                    </telerikGrid:GridViewColumn> 
            </telerik:RadGridView>

Vanya Pavlova
Telerik team
 answered on 04 Aug 2011
9 answers
137 views
I have a chart with one basic line series with 3500 points. I am using data binding and set the ItemsSource to my list of objects. I have turned off the labels, pointmarks and tooltips but  It still takes up to 15 seconds to render. I have read that I can remove some things using a control template and that this would speed it up. I dont know how to do this. Does anyone have an example?
Thanks
Hristo
Telerik team
 answered on 04 Aug 2011
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?