Telerik Forums
UI for WPF Forum
1 answer
165 views
In our TreeListView, we define only TreeListView part at design time. Columns are Auto Generated. We don't add columns from the code behind also. I need to have custom filter for few columns. 

From your demo example, I found that you need to define the filtering Column like this in XAML. 

<telerik:GridViewDataColumn.FilteringControl>
                        <local:FromDateToDateFilterControl FromDate="1/1/1863" ToDate="1/1/1933"/>
 </telerik:GridViewDataColumn.FilteringControl>

I want to know how can I define this when my columns are Autogenerated?

What if I want to have different Custom Filters for different columns? 

Could you please let me know to achieve this?



Rossen Hristov
Telerik team
 answered on 24 May 2012
5 answers
129 views
We have a requirement where we need the Filter Option Dialog/ filter functionality to behave differently from the default behavior. 

We don't want  to really FILTER the data, but to select/unselect the nodes that match the criteria. 

Would it be possible to do this?

Rossen Hristov
Telerik team
 answered on 24 May 2012
1 answer
305 views
I am doing drag & drop between two RadTreeListVIew, but I guess this question should not be limited only for this control. From what I have seen, most (if not all) list controls show a mouse over effect (border element) when we move mouse over a row. During the Drag&Drop operation, normal user experience would be to visually show user where an item will be dropped. It seems that for some reason, in case of drag&dop, mouse over border around the row is not applied. Why is this the case, was this necessary by design, and how can we show user the same visual experience during drag&drop, just like with mouse over.

Regards,
Goran
Nick
Telerik team
 answered on 24 May 2012
1 answer
159 views
I'm trying to print a RadPane using the following code:
public static void PrintHeaderedContentControl(HeaderedContentControl VisualToPrint)
        {
            PrintDialog myPrintDialog = new PrintDialog();
 
            if (myPrintDialog.ShowDialog() == true)
            {
                myPrintDialog.PrintVisual(VisualToPrint, VisualToPrint.Header.ToString());
            }
 
        } // PrintHeaderedContentControl

If I try this with PrintHeaderedContentControl(myRadPane) I just get an empty page with only the header text.
Any Ideas what I can do get this to work?
the following the following

 

It turned out the control was printed but outside the printer paper. So we need to resize and transform the control to get it on paper with code like this:

 

Transform transOld = ControlToPrint.RenderTransform;
                TransformGroup myTransforms = new TransformGroup();
                myTransforms.Children.Add(new ScaleTransform(dScale, dScale));
                myTransforms.Children.Add(new TranslateTransform((myPrintDialog.PrintableAreaWidth - 20) / 20, (myPrintDialog.PrintableAreaHeight - 20) / 20));
 
                ControlToPrint.LayoutTransform = myTransforms;
 
                Size pageSize = new Size(myPrintDialog.PrintableAreaWidth - 20, myPrintDialog.PrintableAreaHeight - 20);
                ControlToPrint.Measure(pageSize);
                ControlToPrint.Arrange(new Rect(10, 10, pageSize.Width - 10, pageSize.Height - 10));
 
                myPrintDialog.PrintVisual(ControlToPrint, Title);
 
                ControlToPrint.LayoutTransform = transOld;

 

Lancelot
Top achievements
Rank 1
 answered on 23 May 2012
0 answers
94 views
Hi,

When I drag/drop an item from one listbox to a second, I want to put up a confirmation that the item has been saved to the second.

However, when I put up a dialog on DropComplete (done in the code-behind) to indicate that the item has been saved, I can still see the dropped item hovering over the second listbox.

Do I need to explicitly change the item's Visibility to Hidden (based on a custom event trigger... I'm using MVVM Light) so that it 'disappears' on DropComplete, or is there something I'm missing?

Thanks
Scott
Top achievements
Rank 1
 asked on 23 May 2012
1 answer
167 views
Hi

I'm using the WPF rad control as a print server type application for our silverlight solution (i.e a windows service that prints all completed reports!)

Anyway what I cant workout is how to print a a device other than the default using native printing

I want to open up my report from the DB, check which printer this particular report is to go to and print to it (and a specific tray) without any user intervention

We did this previously with the winforms control txtextcontrol and wonder if you could advice the best way to do with telerik controls

Thanks in Advance
Iva Toteva
Telerik team
 answered on 23 May 2012
1 answer
190 views
Good evening,

Why does the following code force the caret to the line beneath? (obviously you must have multiple paragraphs in your document for this to happen).

In short I'm inserting a Annotation into an empty paragraph. The annotation when inserted does not encapsulate any content (spans etc), it will be filled with content at a later time.

RadRichTextBox radRichTextBox = ((RadRichTextBoxAutoComplete)currentPane).radRichTextBox;
 
//Set Custom Annotation
ItemGroupRangeEnd rangeEnd = new ItemGroupRangeEnd();
ItemGroupRangeStart rangeStart = (ItemGroupRangeStart)rangeEnd.CreatePairedStart();
rangeStart.Name = "GroupItem " + count++;
 
//Place annotation around newly inserted text
radRichTextBox.Document.InsertCustomAnnotationRange(radRichTextBox.Document.CaretPosition, radRichTextBox.Document.CaretPosition, rangeStart, rangeEnd);
 
//Referesh editor
radRichTextBox.UpdateEditorLayout();


It only does it if the following FieldRangeEnd property is set to "false".

public override bool SkipPositionBefore
{
    get
    {
        return false;
    }
}

If I set the return value to "true" then the caret does drop to the paragraph beneath but I don't get other behaviors that I want.

Thank you for your time,

Rob

Iva Toteva
Telerik team
 answered on 23 May 2012
0 answers
126 views
Hello, 

There seems to be a problem with RadGridView styling when it is placed in a Popup.

I have a Project where I have a RadGridView which has the Items and SelectedItem properties bound to a ViewModel.  I create a list of items in the code-behind and put them on the ViewModel, as well as selecting one of those items at random and putting that on the ViewModel to act as the SelectedItem.  At run time, everything is bound correctly, and the RadGridView is displayed with the list of items, with the SelectedItem row coloured using the default styling of the orange background. 

However, if I put the same RadGridView into a Popup, and introduce a Button which when pressed will allow the Popup to become visible, the orange styling doesn't appear.  The RadGridView is still bound correctly to both Items and SelectedItem, but the SelectedItem doesn't get the orange styling, and from a users point of view it looks like nothing is selected.  

This only happens the first time the Popup is shown.  Assuming the Popup disappears by some event (such as MouseLeave the Popup area), then the next time the Button is pressed, the SelectedItem of the RadGridView will be styled correctly.  It seems to be only the first time the Popup is shown, that the orange styling doesn't appear.  

I can provide a Project that illustrates this behaviour if required.

Stuart
Stuart
Top achievements
Rank 1
 asked on 23 May 2012
1 answer
138 views
Hi,

I'm unable to get the checkboxes working for my treeview.
I even used the example found in the latest demos, but without result. This is my code;

<telerik:RadTreeView telerik:StyleManager.Theme="Metro" 
SelectedItem="{Binding SelectedNomenclatuurnummer, Mode=OneWayToSource}"  Margin="10,5" 
IsTriStateMode="True" IsOptionElementsEnabled="True" SelectionMode="Multiple" ItemsOptionListType="CheckList" ItemsSource="{Binding Nomenclatuurnummers}" 
HorizontalAlignment="Stretch" Grid.RowSpan="4" Grid.Column="1">
</telerik:RadTreeView>

I'm using the Metro-theme. When I change the theme to e.g. Transparent or Office_Black, the checkboxes work

My telerik version is 2012.1.215.35

Any ideas on this?
Tina Stancheva
Telerik team
 answered on 23 May 2012
1 answer
74 views
I have a chart with DateTimes along the x-axis. I'd like to have those dates respond to application wide time zone changes. I've been implementing this in other places with a multibinding and multivalue converter. I bind the date and the timezone in the multibinding and the converter adds and removes the timezone offset.

Is it possible to do something simlar with the values in the x-axis labels?
Rosko
Telerik team
 answered on 23 May 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?