Telerik Forums
UI for WPF Forum
1 answer
394 views
In Java Swing, there is a TreeTable component. Is it possible to implement something similar by integrating RadTreeView and RadGrid?
Petar Mladenov
Telerik team
 answered on 12 Mar 2012
2 answers
103 views
Hello,

I appologise if this has been asked before, but my search yielded no results.

In my application I have a ListBox which has a basic ItemTemplateSelector. This works perfectly fine without any themes, and with Summer theme, but it no longer works when the Metro theme is applied. The Template Selector does not get fired at all. I have narrowed the issue down to the following line of code in my resource dictionary:

<Style TargetType="{x:Type ListBoxItem}">
     <Setter Property="telerik:StyleManager.Theme" Value="Metro"/>
</Style>

If I take the Style out, or change it to Summer theme, everything works fine. The issue seems to lie with the Metro theme, but I can not narrow down the issue any further. I have not posted the Tempate Selector code since it works with other themes, therefore I do not think that is where the issue lies. If you want me to post that code as well, please let me know.

VS2010
.NET 4.0
Telerik v2011.3.1220.40

Thank you,
Aleks
Aleks
Top achievements
Rank 1
 answered on 12 Mar 2012
0 answers
110 views
Hi,

I am using RadGridView in WPF application and binding it to a DataTable view. For my RadGridView I have set AutoGenerateColumns as "True" (to get my columns automatically).
 
Problem: In DataTable object (which I am binding to RadDataGridView) I have one DateTime column. In RadDataGridView it only shows Date calender in the dropdown for picking date, but no time. More over I want to change date format for DateTime column. As AutoGenerateColumns  is true, I don't have any control over the columns. Can anyone please show me how to show RadDateTimePicker in RadGridView column when AutoGenerateColumns is True?

My XAML code for RadGridView  is as below:

<telerik:RadGridView Grid.Row="1" AutoGenerateColumns="True" ItemsSource="{Binding ManualDataTable}" IsReadOnly="False" CanUserDeleteRows="True"  Name="radGridViewManualData" ShowInsertRow="True" />

Any help will be highly appreciated.


Regards,
Moon
Moon
Top achievements
Rank 1
 asked on 12 Mar 2012
0 answers
113 views
Hi Telerik Team,

Is it possible to add a checkbox inside a RadGridView's GroupDescriptor? so when user click on it, all checkboxes for sub-items inside the grouping will be checked as well.

Thanks,
Andy
Andy
Top achievements
Rank 1
 asked on 12 Mar 2012
1 answer
165 views

Hello Telerik

I have the following problem:

When I use docking and I use a single pane at the buttom Capture1.PNG  then maximize the Window, then maximize the buttom pane Capture2.png, then restore down the Window, the pane will stay the same (maximized) size Capture3.png. The buttom pane will make the tabs disappear and if I use AutoHide Option it will exced the Window size Capture4.png.

Albert
Top achievements
Rank 1
 answered on 12 Mar 2012
1 answer
156 views

Hello,

I have 2 questions about RADTreeView for WPF:

1) I need to store a value alongside header in my tree nodes. Every tree node will have the follwoing information:
Name
Record #

However, only Name will be visible in the tree (stored as Header). Record # will not be visible but should be stored for background processing. Other tools typically have a Value property alongside Header (or Text). Does Telerik's TreeView allow for storing other data elements in a node?

2: I have a ContextMenu in my tree. Here is the code for the menu's click event:
        private void TreeContextMenu_ItemClick(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            // Get the clicked context menu item
            RadMenuItem menuItem = ((RadRoutedEventArgs)e).OriginalSource as RadMenuItem;
            string header = menuItem.Header as string;
            switch (header)
            {
                case "Add":
                    // code to insert a new node below the highlighted node.
                    break;
                case "Delete":
                    // code to delete the highlighted node in the tree.
                    break;
            }
        }

A) How can I insert a new node below the currently selected node in the tree?
B) How can I delete the currently selected node?

Thanks,
Hamid

Tina Stancheva
Telerik team
 answered on 12 Mar 2012
1 answer
65 views
Hello

    I believe I am seeing the the same issue brought up here http://www.telerik.com/community/forums/wpf/window/radwindow-binding-error.aspx -  is there any workaround or fix for this?  We are in the trial phase using version 2011.3.1220.40. 

Thank you,
Patrick Brown
Yana
Telerik team
 answered on 12 Mar 2012
4 answers
194 views

Hello,

I have an old project containing a GridView with a
GridViewCheckBoxColumn binded to a bool type data property. With 2011-Q3 the application works. The checkbox state is set accordingly to the property value.

Yesterday I have installed 2012-Q1 and I have noted that this column does not work anymore. Although the data property has a value of "true", the checkbox is unchecked. If I try to manually check the checkbox, when the cell loses focus the checkbox is automatically unchecked.

Also, when the cell loses focus and the checkbox is checked, in the Output window the following message is recorded:

"A first chance exception of type 'System.ArgumentException' occurred in System.ComponentModel.DataAnnotations.dll"

Perhaps you can take a look into this problem.

Thank you.

 

<telerik:RadGridView Name="gridFields" Grid.Row="7" Grid.ColumnSpan="4" ItemsSource="{Binding Path=FieldsConfig}" CanUserReorderColumns="False" AutoGenerateColumns="False" ShowInsertRow="True" RowEditEnded="gridFields_RowEditEnded" AddingNewDataItem="gridFields_AddingNewDataItem" ShowGroupPanel="False" CellValidating="gridFields_CellValidating" Deleting="gridFields_Deleting" IsFilteringAllowed="False" CanUserFreezeColumns="False" CanUserSortColumns="True">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="Nume camp" UniqueName="Name" DataMemberBinding="{Binding Path=Name}" />
        <telerik:GridViewDataColumn Header="Col.CSV" UniqueName="CSVColumn" DataMemberBinding="{Binding Path=CSVColumn}" TextAlignment="Right" />
        <telerik:GridViewDataColumn Header="Camp formular web" UniqueName="WebFormFieldName" DataMemberBinding="{Binding Path=FormDataFieldName}" />
        <telerik:GridViewCheckBoxColumn Header="Specifica fis.continut" UniqueName="ContainsFilename" DataMemberBinding="{Binding Path=ContainsFilename}" AutoSelectOnEdit="True" EditTriggers="CellClick" />
        <telerik:GridViewDataColumn Header="Valoare implicita" UniqueName="DefaultValue" DataMemberBinding="{Binding Path=DefaultValue}" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

public static readonly DependencyProperty ContainsFilenameProperty = DependencyProperty.Register("ContainsFilename", typeof(bool), typeof(FieldConfigData),
                                                            new FrameworkPropertyMetadata(false));
[XmlIgnore]
public bool ContainsFilename
{
    get { return (bool)GetValue(ContainsFilenameProperty); }
    set { SetValue(ContainsFilenameProperty, value); }
}
[XmlAttribute(AttributeName = "is_content_filename")]
public byte IsContentFilename
{
    get { return ContainsFilename ? (byte)1 : (byte)0; }
    set { ContainsFilename = ((byte)value == 1); }
}

Yordanka
Telerik team
 answered on 12 Mar 2012
1 answer
55 views
Hi,

I want to create a custom filter to select a quantity of matching items. That is, the user has a list of 1,000 items but wants the first (say) 500 that match. I want to use this to allow the user to allocate work items to team members.

I can see how to filter individual items but can I use a custom filter to filter how many items are displayed?

Thx

Rob
Rossen Hristov
Telerik team
 answered on 12 Mar 2012
2 answers
55 views

Hello

I added columns in code and try to order the columns by using

Display Index it not works.

Is there way to control the index of the columns in the grid?

Best regards

Ehud

 

 

Avi Avni
Top achievements
Rank 1
 answered on 12 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?