Telerik Forums
UI for WPF Forum
3 answers
385 views


Hi
I need to change the background color of a cell based on its value while using AutoGenerateColumns="True
Without using code behind (attach property is acceptable solution) 
The data context is  System.Data.DataTable

 Thanks in advance.

Dimitrina
Telerik team
 answered on 02 Jan 2013
2 answers
280 views

Is there any reason when executing either of the following two commands I should get the following error?

Command Executing:
//Loop Through Document Sections
foreach (Section sectionLayoutBox in radRichTextBox.Document.Children)
{
    //Loop Through Section Paragraphs
    foreach (Paragraph paragraph in sectionLayoutBox.EnumerateChildrenOfType<Paragraph>().ToList<Paragraph>())
    {
        //Remove Paragraph From Document
        //paragraph.Parent.Children.Remove(paragraph);
        sectionLayoutBox.Children.Remove(paragraph);
    }
}


Error Message: inline does not belong to this document.

I know my initial post is a little vague, I can elaborate in more detail if you require.

Thanks,

Rob
Petya
Telerik team
 answered on 02 Jan 2013
2 answers
142 views
Hi, after dragging the RadCombobox from the toolbox, the following exception are generated when the applicaiton runs.


Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.

{"Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception."}

{"Type reference cannot find type named '{clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls}MetroTouchTheme'."}


Have tried to re-add the reference but still no luck. we are using RadControls for WPF Q3 2012 binaries.

If I use a normal combobox, it works.

Anything else I can do?
Georgi
Telerik team
 answered on 02 Jan 2013
3 answers
110 views
Is this possible?
If not, will it be possible on first release?
Any suggestion or example on dynamic drill-down?

Best reguards
Mauro
Pana
Telerik team
 answered on 02 Jan 2013
1 answer
145 views
When I hit the Add button in the DataForm, all other buttons are disabled except the Save and Cancel.  At this point there are fields that are not valid (required for instance), but the user can still hit Save.  Validation kicks in, but I would prefer that the Save button would remain disabled until all fields are valid.

When the Edit button is hit, only the Edit button is disabled.  If the user edits the form, the record is now dirty, but the user is able to hit any of the other buttons (Add, Delete, or the Navigation buttons).  Now granted if you navigate to another record and then come back your changes are still there, but the Save and Cancel buttons are disabled until you hit edit again.  At this point Cancel does not remove any changes.  I am not using AutoCommit.

I would prefer that Edit would disable all the other commands, and Save would only become enabled when the user actually makes a change, and as with the Add button, Save would remain disabled until all fields are valid.

I assume you have valid reasons for the current implementation; however I would like to be able to override this behavior with the aboved described behavior.  Can you provide any guidance?

What I'd really like is to have control over the CanExecute method of the commands.  Is there any way to acheive this?

Thanks in advance,
Steve
Maya
Telerik team
 answered on 02 Jan 2013
1 answer
213 views
Hi,

I just want to use Telerik's "RadWindow".

<Window x:Class="_3DGraph.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="600" Width="800">
    <Grid>
        <telerik:RadWindow x:Name="radWindow1" Width="300" Height="300"></telerik:RadWindow>
    </Grid>
</Window>

using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Navigation;

When I just click any of three buttons(minimize, maximize, close), I got this error... (I'm sending a screenshot)
What may be the problem?

And to move any RadWindow, do I have to write any code or it perceives movement behaviours automatically?

George
Telerik team
 answered on 02 Jan 2013
8 answers
230 views
Hello,

I styled the FilteringControl on a RadGrid to include a converter on the list of distinct values to filter by.

I am using this code in the converter,

            var filter = value as FilteringViewModel;
            if (filter != null)
            {
                foreach (DistinctValueViewModel distinctValue in filter.DistinctValues)
                {
                    
                }
                return filter.DistinctValues;
            }

            return null;

But when I put a breakpoint on the code it says that DistinctValues.Count = 0 and the loop will not trigger.

However, after the converter returns it's value, it shows the distinct values correctly.

I am wondering why I cannot access the distinct list inside the converter because I know it returns the right value.

Thank you,
Rossen Hristov
Telerik team
 answered on 02 Jan 2013
1 answer
129 views
Warning: wall of text to follow....

I've read through the performance section of the help for the RadGridView and see where it says not to add a RadGridView as a child to something like a StackPanel or anything else where the children could grow to infinity because it will turn virtualization off for the grid. It further states that you should only add the grid to a container with a limited number of children.

That's a fairly huge design restriction, in my opinion. For example, I want to place a grid within a dockable/pinnable/unpinnable pane and include a RadExpander above it to allow the user to modify some options for that grid. The only way I can see of successfully getting everything to size/resize appropriately when the expander is expanded/collasped is to place it in a StackPanel with the Grid. However, doing so kills the perfomance.

So, I've had to resort to placing the options for the grid and the grid itself within two separate tabs in a RadTabControl. This, to me, is simply going to be confusing and combuersome for most of my users as the user will only be able to see either the options for the grid or the grid itself, not both.

I can't even force the grid to use virtualization nor can I get it to load its data asynchronously using the DataLoadMode property.... As a result, I feel I am being forced into providing a poor UI design for my users because the RadGridView's performance seems to drop off exponentially with the number of rows...

I just can't fathom why it's not possible to specify HorizontalAlignment="Stretch" and VerticalAlignment="Stretch" to give you the same "bounds" for the grid you would have otherwise within a container control that allows only one child to preserve the virtualization capabilities. That, or why it's not possible to improve the performance of the non-virtualized grid so it doesn't "hang" an application with a few thousand or more rows....
Vlad
Telerik team
 answered on 02 Jan 2013
3 answers
130 views
I need to hide some adorners during the selection change animation on the RadCarousel (and unhide them after).

I tried intercepting the SelectionChanging and SelectionChanged events, and hiding the elements there, but they don't hide!

So I thought maybe the system won't update the UI while an animation is running...so I then tried creating a simple animation to hide the adorner (again on the above mentioned events).  Still the UI changes don't change until after the selection animation has completed.

Is there a way to get around this?

Many thanks!
Chris
Maya
Telerik team
 answered on 02 Jan 2013
1 answer
87 views
Vertical scrolling is so slow with GridViewDataColumn.CellTemplate.
You should improve performance with GridViewDataColumn.CellTemplate.
(It's fine with DataMemberBinding :)
Unace
Top achievements
Rank 1
 answered on 02 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?