Telerik Forums
UI for WPF Forum
2 answers
67 views
Hello,
I have simple  question.
How to change the the tool tip  for all buttons in the DataForm?
Thanks
hiwa
Hiwa
Top achievements
Rank 2
 answered on 05 Jun 2013
0 answers
103 views
I have an wpf page with radgridview control and some radmaskednumericinput controls.the question is  whille Selection changed event of radgridview of every row i need to enter new data radmaskednumericinput control on every row and the data should not change till closing the page .
Ramki
Top achievements
Rank 1
 asked on 05 Jun 2013
1 answer
94 views

I found this article without answer. I have the same problem can anybody help me?

I am using Telerik's WPF controls. In particular the DataForm control. I am trying to bind it to an object that has the following make up.

public class FrequencyMap : BindableBase
{
    private Guid id;

    public Guid ID
    {
        get { return id; }
        set
        {
            id = value;
            OnPropertyChanged();
        }
    }

    private string procedureCodeId;

    public string ProcedureCodeId
    {
        get { return procedureCodeId; }
        set
        {
            procedureCodeId = value;
            OnPropertyChanged();
        }
    }

    private FrequencyChoice frequency;

    public FrequencyChoice Frequency
    {
        get { return frequency; }
        set
        {
            frequency = value;
            OnPropertyChanged();
        }
    }

    private DateTime effectiveDate;

    public DateTime EffectiveDate
    {
        get { return effectiveDate; }
        set
        {
            effectiveDate = value;
            OnPropertyChanged();
        }
    }

    private DateTime? terminateDate;

    public DateTime? TerminateDate
    {
        get { return terminateDate; }
        set
        {
            terminateDate = value;
            OnPropertyChanged();
        }
    }
}

and then the FrequencyChoice object looks like this:

    public class FrequencyChoice : BindableBase
{
    private int id;

    private string modifiedUser;

    public int ID
    {
        get { return id; }
        set
        {
            id = value; OnPropertyChanged();
        }
    }

    private string code;

    public string Code
    {
        get { return code; }
        set
        {
            code = value; OnPropertyChanged();
        }
    }

    private string name;

    public string Name
    {
        get { return name; }
        set
        {
            name = value; OnPropertyChanged();
        }
    }

    private string description;

    public string Description
    {
        get { return description; }
        set
        {
            description = value; OnPropertyChanged();
        }
    }

    private string calculationDescription;

    public string CalculationDescription
    {
        get { return calculationDescription; }
        set
        {
            calculationDescription = value; OnPropertyChanged();
        }
    }

    private DateTime inactiveDate;

    public DateTime InactiveDate
    {
        get { return inactiveDate; }
        set
        {
            inactiveDate = value; OnPropertyChanged();
        }
    }

    public string ModifiedUser
    {
        get
        {
            return this.modifiedUser;
        }
        set
        {
            this.modifiedUser = value;
            OnPropertyChanged();
        }
    }

}

This works quite well except for the Frequency property. How do I get that to work properly(I need name property to be in drop down list box for choose). Do I have to use an Enum like this article? Data Forms in your XAML If so how would I link the two?

Thank you for your help.
Ondrej

Maya
Telerik team
 answered on 05 Jun 2013
1 answer
49 views
I am raising this concern as the Context Menu present in WPF does not work for web browser control.
Does the RadContextMenu help us in achieving custum context menu in WPF web browser control?
Rosen Vladimirov
Telerik team
 answered on 05 Jun 2013
1 answer
87 views
Telerik,

I have a WPF RadGridView that allows filtering and grouping of columns.  After grouping a column, I no longer see the filter icon, nor can I access the filtering of that grouped column.  I would like to see the same auto-filtering icon/functionality on the grouped column as the non-grouped columns.  How can I accomplish this task?

I have included a picture of my scenario.  There is a column on my grid with the title "From Plant" that is filterable and groupable.  Before grouping, I placed a filter on the column.  After applying the filter, I grouped the column.  Problem:  I don't see the filter icon after grouping "From Plant", nor can I access the filter popup.

Thanks,
Yoan
Telerik team
 answered on 04 Jun 2013
2 answers
134 views
Hi everyone,

I'm using the RadGridview component to display some data.
This grid is using the self-reference feature, some lines have children displayed in rows détails.

I added a screenshot example in attachment to expose my problem :
- The ID line 5 have 2 children in diferent cities (Paris and Bordeaux) ;
- I want to display (automatically via XAML) in the cell of the parent all children values for the column City, like this : "Paris, Bordeaux".

Is it possible ? If yes, how to do ?

Thanks for your help !

Regards,
Guillaume
Yoan
Telerik team
 answered on 04 Jun 2013
8 answers
287 views
When selecting a node, a dashed border is painted around it. How can I customize this border?
Zarko
Telerik team
 answered on 04 Jun 2013
9 answers
564 views
Hi there

I've a usercontrol with a gridview that is part of a Radpane. Now I want to disable touch scrolling in a specific situation. 
Is it possible to disable scrolling with your finger on a touchdevice? I tried Scrollviewer.panningmode="None", but this did not work. I'm using the latest version of the WPF Trial.

My gridview XAML code:
<telerik:RadGridView Grid.Row="1"
HorizontalAlignment="Stretch"
ItemsSource="{Binding Articles}"
AutoGenerateColumns="False"
ShowGroupPanel="False"
RowIndicatorVisibility="Collapsed"
CanUserDeleteRows="False"
CanUserInsertRows="False"
CanUserReorderColumns="False"
GridLinesVisibility="None"
BorderBrush="{x:Null}"
AllowDrop="{Binding CanReOrderRows}"
IsReadOnly="True"
IsFilteringAllowed="False"
CanUserFreezeColumns="False"
SelectionMode="{Binding GridViewSelectionMode}"
SelectedItem="{Binding ArticleModel, Mode=TwoWay}"
b:RowReorderBehavior.IsEnabled="{Binding CanReOrderRows, Mode=TwoWay}"
telerik:ScrollingSettingsBehavior.IsEnabled="True"
telerik:ScrollingSettingsBehavior.ScrollAreaPadding="30"
telerik:ScrollingSettingsBehavior.ScrollStep="24"
telerik:ScrollingSettingsBehavior.ScrollStepTime="00:00:00.05">
                <i:Interaction.Behaviors>
                    <b:ScrollIntoViewBehavior />
                </i:Interaction.Behaviors>
                <telerik:RadGridView.Columns>
                    <telerik:GridViewColumn IsVisible="{Binding IsGridViewDragDropColumnVisible}">
                        <telerik:GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <Image>
                                        <Image.Style>
                                            <Style TargetType="{x:Type Image}">
                                                <Style.Triggers>
                                                    <DataTrigger Binding="{Binding IsTotal}"
                                                                 Value="False">
                                                        <Setter Property="Source"
                                                                Value="../Images/draggable-icon.gif" />
                                                    </DataTrigger>
                                                </Style.Triggers>
                                            </Style>
                                        </Image.Style>
                                    </Image>
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewColumn.CellTemplate>
                    </telerik:GridViewColumn>
                    <telerik:GridViewSelectColumn IsVisible="{Binding IsGridViewCheckBoxColumnVisible}" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Article.Name}"
                                                Header="Article"
                                                IsSortable="False"
                                                Width="*" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Article.Price, Converter={StaticResource ZeroPriceConverter}}"
                                                Header="ArticlePrice"
                                                IsSortable="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Count}"
                                                Header="Count"
                                                IsSortable="False" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding TotalPrice}"
                                                Header="Total"
                                                IsSortable="False" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>


Thanks in advance!

Greetings
Lowie
Lowie
Top achievements
Rank 1
 answered on 04 Jun 2013
9 answers
152 views
Hi,

 Pleasr help me to add a custom button to navigate after 10 pages at a strech.

Thanks,
Henry
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2013
1 answer
92 views
Steps to reproduce:
1. Add to project telerik controls v2011.3.1220.40
2. Create DataView and bind to grid:
           
DataTable dt = new DataTable("test");
for (int i = 0; i < 10; i++)
{
    dt.Columns.Add("column" + i);
}
for (int i = 0; i < 10; i++)
{
    var row = dt.NewRow();
    for (int j = 0; j < 10; j++)
    {
        row[j] = j + i;
    }
    dt.Rows.Add(row);
}
dt.AcceptChanges();
 
Items = dt.AsDataView();

<Grid>   
     <
Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="253*" />
    </Grid.RowDefinitions>
    <Button Command="{Binding UndoAllChanges}" Content="Undo all changes" Margin="10" HorizontalAlignment="Left" Padding="5,2" />
    <telerik:RadGridView ItemsSource="{Binding Items}" CanUserInsertRows="True" ShowInsertRow="True" Grid.Row="1" />
</Grid>


3. Add Undo function:
private ICommand _undoAllChanges;
public ICommand UndoAllChanges
{
    get
    {
        if (_undoAllChanges == null)
        {
            _undoAllChanges = new DelegateCommand(obj =>
            {
                Items.Table.RejectChanges();
                OnPropertyChanged("Items");
            });
        }
        return _undoAllChanges;
    }
}
4. To reproduce bug need to run application, sort by column1, add new item, set cell [ newRow, column1 ] to "1", click enter and then undo button.

P.S. I can't upload zip file because it's not allowed.
Yordanka
Telerik team
 answered on 04 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?