Telerik Forums
UI for WPF Forum
1 answer
87 views

Hi,


I have an object which I use in Mail Merge.  Under "Insert Mail Merge" drop down ribbon button, all of these fields appear and I can use them just fine.  However, I don't need all properties to be displayed there.  Is there a way to specify which properties show and should not be included as part of the Mail Merge fields?



Also, is it possible to give a different name to the Mail Merge item in the drop down ribbon button?  For example, if I have a property FirstName, I want it to display as "First Name".



Thank you in advance.



Petya
Telerik team
 answered on 05 Dec 2013
12 answers
387 views
I need to be able to color each task on the gantt view independently.  meaning the first item in a series should be blue if it meet a criteria, or red, or green, depending on conditions.  I only see the theming option, which wont accomplish my goal.
is it possible to color each task seperately?
Yana
Telerik team
 answered on 05 Dec 2013
1 answer
100 views
Some api naming issues that tend to make working with charting more difficult:

RadChart is in the Telerik.Windows.Charting.dll and is referred to as "Chart" in the documentation and RadChart in code.

However, RadChartView is in the Telerik.Windows.Controls.Chart.dll (where you would think to look for RadChart), is referred to in the documentation as "ChartView" and the even less obvious "RadCartesianChart" in code.

I'm sure as new assemblies and controls get created a need for backward compatibility must be maintained, so the Charting.dll reference is likely a product of that since it appears like new controls get added to the Controls namespace. But something should be considered for Chartview, either correcting the code name (which hurts upgrade-ability) or correcting the documentation (which is always a pain).

Also, on a related note, the link in the Chart documentation that says "We encourage you to review our new control RadChartView for super-fast visualization of your data." links back to the Chart documentation instead of the ChartView documentation.


Tina Stancheva
Telerik team
 answered on 05 Dec 2013
0 answers
116 views
I have simple TreeListView and GrdiView. With drag-drop Telerik behaiviars move data between components. The problem is that GrdiItemTemplate work only from GridView, but not for TreeListView.  See image ba.png for more information.                                                                                                                                                                                                                                                                                                                                          And please fix forum editor. Cannot press enter, cannot paste text, paste image or paste from Word. I use lattes IE browser.  See atached image for more info.
kity
Top achievements
Rank 2
 asked on 05 Dec 2013
13 answers
108 views
Hi,

I'm a little bit confused and I need help to select the proper conponent for what I'm trying to do... Image enclosed...

Thank's
Alain
Kalin
Telerik team
 answered on 05 Dec 2013
1 answer
81 views
Hi. I have a very simple for with 2 grids:

<Grid Margin="0,165,0,0">
    <telerik:RadGridView Margin="0,-155,0,307" x:Name="Grid1"/>
    <telerik:RadGridView Height="293" VerticalAlignment="Bottom" x:Name="Grid2"/>
</Grid>


I bound both grids to the same ListViewCollection:

private readonly ObservableCollection<Tuple<string, string>> _data = new ObservableCollection<Tuple<string, string>>();
private ListCollectionView _dataView;
....
    this.Loaded += (sender, args) =>
    {
        for (int i = 0; i < 10; i++)
        {
            _data.Add(Tuple.Create("row" + i, "value" + i));   
        }
 
        _dataView = new ListCollectionView(_data);
 
        Grid1.ItemsSource = _dataView;
        Grid2.ItemsSource = _dataView;
    };

When I select a row on one of the grid, the matching row gets selected on the 2nd grid. Why is this happening? This behavior does not happen when setting ItemsSource property to the underlying collection, only when using ListViewCollection. This is a very simple example that shows the basic issue I am trying to figure out in a much larger application where using underlying collection is not possible. If anyone knows why this is happening I would love to understand (and hopefully fix).

You can download the project showing a problem here WpfApplication1

Thanks
   
Dimitrina
Telerik team
 answered on 05 Dec 2013
1 answer
78 views
Hi,
I currently have an issue where the trackball overflows the chart when there are many series on the chart. Trackball shows the information until the chart height and then is cut off. Is there a way to still display the trackerball but sort of overlay on top of chart? The users still want to see the complete trackball information.

Thanks
Avneesh
Yavor
Telerik team
 answered on 05 Dec 2013
7 answers
115 views
Hello,
I am using a grid view where the item source is a VirtualQueryableCollectionView and have created a DataTempalteSelector to supply the row details template.  I have my LoadSize  for the collection set to 200, but currently only dealing with about 20 items in my small test data set.   If all 20 items fit in view at the same time I have no problems and everything looks great; however if I shrink my window so only a few fit on the grid at a time an exception is thrown when I scroll.  The exception text reads something like:

Exception Message: 'BlockDataIntegrityTemplate' resource not found.

BlockDataIntegrityTemplate is the data template that is being returned from my simple template selector.  Most of the records in the list are of this type. My resource dictionary contains two data templates that are located in separate files and merged into the UserControls resources like so:

<UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Dashboard;component/View/AudioDataIntegrityTemplate.xaml"/>
                <ResourceDictionary Source="/Dashboard;component/View/BlockDataIntegrityTemplate.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <model:IntegrityDataTemplateSelector x:Key="IntegrityDataTemplateSelector"/>
        </ResourceDictionary>
    </UserControl.Resources>

Has anyone run into this situation before, or help me think of what I may be missing?
Dimitrina
Telerik team
 answered on 05 Dec 2013
1 answer
139 views
Hello,

Is it possible to show initial letters instead of numbers in the RadDataPager?

I have a RadGridView where I show a list of contacts (with properties like FirstName, LastName, FullName, Company, etc...).

I would like to paginate the contacts based on the first letter of the last name instead of a fixed page size and show the initial letter in the data pager instead of page numbers.
So basically I want to group the contacts by the first letter of the LastName property and be able to select a group in the data pager and then show the contacts of that group in the grid view.
So all contacts with the same initial letter in the first name should appear on the same "page".

It would be very nice to also be able to only show those initial letters for which contacts actually exists.

BTW: I am using a QueryableEntityCollectionView to connect the pager and grid view to a entity framework data context.

Thank you!

Sincerely yours,
David
David Liebeherr - rent-a-developer
Top achievements
Rank 1
 answered on 05 Dec 2013
4 answers
144 views

Hello,

I have some questions about how the GridViewComboBoxColumn binds to a lookup list in a Hierarchical  scenario.

I have a WPF window that has a RadGridView on it that is displaying the following schema correctly with no comboboxes in any columns, just the integer that binds to the property (SecurityLevel) (relevant columns only)

Application1      SecurityLevel
--------------------------------------------------
   Client1           SecurityLevel
   Module1        SecurityLevel


Application2      SecurityLevel
--------------------------------------------------
        Client1                   SecurityLevel
        Client2                  SecurityLevel
        Module1                SecurityLevel

So the main grid's ItemSource is sourced from the "ApplicationAccess" property of the main view model  That object is a List<> of UserApplicationAccessViewModel  objects.  That view model has two nested properties, "ClientAccess" and "ModuleAccess". Each are  List<> members containing their respective ViewModel types, UserClientAccessViewModel and UserToolModuleAccessViewModel.

Each view model, including the primary application view model, UserApplicationAccessViewModel  contains this "SecurityLevel" property which is an integer.  The list that contains those SecurityLevel objects is an adjacent member of each viewModel class.  So my intent is to bind that list to the GridViewComboBoxColumn of each row at each level.  So the user selects a value from the combobox lookup which sets the SecurityLevel property.

{relevant members of each view model}
public List<SecurityLevel> SecurityLevels { get; set; }
public int SecurityLevel { get; set; }

I have found some posts here that have demos for this funtionality at the single level but have not found any that demonstrate it at a Hierarchical level.

This is the markup for the GridViewComboBoxColumn at the top level.

<telerik:GridViewComboBoxColumn x:Name="Application_SecurityLevelSelection_ComboBox"
      DataMemberBinding="{Binding SecurityLevels}"
      Width="100"
      Header="SecurityLevel"
      DisplayMemberPath="FriendlyName"
      SelectedValueMemberPath="SecurityLevel"
      />

I am tapped into the DataLoading event of the grid to format some behaviour of the child grids.  Is this event the key to building and binding this list?

I can databind the column above by name to the list in the main view model and it displays the list correctly but is not binding to each row.  No SecurityLevel is selected in the dropdown list when the record shows, and when you select one and move to another row (another application) the selection dissapears.    Which seems normal because it has to be bound to each row.

If anyone can offer some suggestions here I would appreciate it.

Thanks,
Reid









Reid
Top achievements
Rank 2
 answered on 05 Dec 2013
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?