Telerik Forums
UI for WPF Forum
9 answers
403 views

I have a radgridview and a Command to save changes to that view on a button next to it

 

<Button Content="Save" Margin="0, 0, 8, 0" Command="{Binding Path=SaveAndNewCommand}">
                <Button.CommandParameter>
                    <Binding ElementName="Registrations" />
                </Button.CommandParameter>
            </Button>

 

When I save I want to clear any filters on this RadGridView

So in my Command I fire this in my UI thread when I am done

 

radGridView.FilterDescriptors.SuspendNotifications();
                         
                        foreach (GridViewColumn column in radGridView.Columns)
                        {
                            column.ClearFilters();
                        }
                        radGridView.FilterDescriptors.ResumeNotifications();

 

I also tried

radGridView.FilterDescriptors.Clear();

 

but nothing seems to work, the lines aint filtered, but the filter button still shows the filtered state, and if I click on the filter icon, any settings I had before are still set.

Stefan Nenchev
Telerik team
 answered on 11 Apr 2016
3 answers
189 views
Is it possible to add a place holder tag to a rich text document? As for example, it might look like this
<t:section>
                <t:paragraph>
                </t:paragraph>
                <custom:Placeholder />
                <t:paragraph>
                </t:paragraph>
</t:section>

And in this case, telerik will just ignore the place holder tag and load the document ignoring them. All the document operation will be performed ignoring the place holder tag. 
This is kind of feature or behaviour available or possible?
Anand
Top achievements
Rank 1
 answered on 11 Apr 2016
1 answer
96 views

Hi All,

We've successfully customised the filter control when using the Popup filter mode, however we now have a requirement for certain grids to have the FilterRow filter mode.

We are struggling to get any customisations when it comes to using a distinct list of filters.

Using the Telerik sample project CustomColumnFilterDescriptor_WPF and setting the Filter Mode to FilterRow demonstrates the problem.

Any guidance please on how we can best approach getting custom filters with FilterRow

Many thanks

 

Stefan
Telerik team
 answered on 11 Apr 2016
1 answer
190 views

Hi, I have a problem with the zooming and scrolling in a simple chart application. My screen has multiple charts (line charts in this particular example), and a Scrollviewer that contains them all. The problem is that when I want to zoom in in a chart it scrolls up and when I zoom out it scrolls down in the same time. I have tried to resolve this problem by checking when the mouse is inside the chart zone and disable the scrollviewer but it didn't work because that disabled my mouse wheel for good..

This is the code I used to disable the mouse wheel for the scrollviewer and pass it to the chart control:

private UIElement chart;
 
private void MouseLeaveChart(LineChartView lineChartView)
{
    // this is triggered when the mouse leaves the chart area
    chart = null;
}
 
private void MouseEnterChart(RadCartesianChart radCartesianChart)
{
    // this is triggered when the mouse enters the chart area
    chart = radCartesianChart;
}
 
private void ScrollViewer_OnPreviewMouseWheel(object sender, MouseWheelEventArgs e)
{
    if (chart != null)
    {
        e.Handled = true;
        var e2 = new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta);
        e2.RoutedEvent = UIElement.MouseWheelEvent;
        chart.RaiseEvent(e2);
    }
}

Any kind of help is highly appreciated, thank you in advance! 

 

Peshito
Telerik team
 answered on 11 Apr 2016
3 answers
280 views

 

Hi,

I've a floating RadSplitContainer (labeled as B in the photo ) and I need to customize it to make it looks like the panel A, hide the close button, blue background on header, thickness border to 1px... I've tried with sytlesheets and templates but I cannot make it possible.

 

Code RadDocking:

 

<telerik:RadDocking>
    <telerik:RadSplitContainer telerik:RadDocking.FloatingLocation="500,50"  InitialPosition="FloatingDockable">
        <telerik:RadPaneGroup>
            <telerik:RadPane x:Name="TooltipHeader" CanDockInDocumentHost="False" CanUserClose="False">
                <StackPanel x:Name="TooltipFloat">
 
                </StackPanel>
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking>

 

Regards,

Gerard.

Hello, I have a floating RadSplitContainer (labeled A in the photo ) and I need to customize it to make it as the stack panel (labeled B)
Hello, I have a floating RadSplitContainer (labeled A in the photo ) and I need to customize it to make it as the stack panel (labeled B)
Hello, I have a floating RadSplitContainer (labeled A in the photo ) and I need to customize it to make it as the stack panel (labeled B)
Hello, I have a floating RadSplitContainer (labeled A in the photo ) and I need to customize it to make it as the stack panel (labeled B)
Hello, I have a floating RadSplitContainer (labeled A in the photo ) and I need to customize it to make it as the stack panel (labeled B)
Nasko
Telerik team
 answered on 11 Apr 2016
1 answer
180 views

Hi,

I cannot use Chinese IME with RadMaskedTextInput. I tried Microsoft Pinyin as well as Microsoft Quick with no good results. OnLostFocus the control is cleared and ArgumentOutOfRangeException is thrown...

at System.Text.StringBuilder.Insert(Int32 index, String value)

When the control regains focus the Chinese characters are show again but the Value property is never updated...

 

Are there any workarounds? Any suggestions would great.

Thanks!

 

Milena
Telerik team
 answered on 11 Apr 2016
3 answers
575 views

I am trying to format the header of the RadGreidView

 

I

 

            <telerik:RadGridView Margin="10" 
                                 x:Name="safeDataGridView" 
                                 HorizontalAlignment="Stretch" 
                                 VerticalAlignment="Stretch" 
                                 ItemsSource="{Binding QueryTable}" 
                                 ScrollViewer.VerticalScrollBarVisibility="Visible" 
                                 ScrollViewer.HorizontalScrollBarVisibility="Visible" 
                                 RowLoaded="safeDataGridView_RowLoaded" 
                                 Loaded="safeDataGridView_Loaded" >
                <telerik:RadGridView.HeaderRowStyle>
                    <Style TargetType="telerik:HeaderRowStyle">
                        <Setter Property="Background">
                            <Setter.Value>
                                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                    <GradientStop Offset="0.0" Color="#373638" />
                                    <GradientStop Offset="1.0" Color="#77797B" />
                                </LinearGradientBrush>
                            </Setter.Value>

                        </Setter>
                    </Style>                 
                </telerik:RadGridView.HeaderRowStyle>
            </telerik:RadGridView>

 

I am fcoming unstuck with the line <Style TargetType="telerik:HeaderRowStyle">.  Am I going in the right direction with this and if not could I have a similar simple example of how it is done correctly please.  

 

Martin
Telerik team
 answered on 11 Apr 2016
5 answers
457 views
I am trying to use RadWindow as a Dialog window with XAML similar to this:

  <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="100"/>
        </Grid.RowDefinitions>

        <ContentControl x:Name="DialogPresenter" Content="{Binding}" Grid.Row="0" />
        <Grid Grid.Row="1"> ... some grid with OK and Cancel buttons</Grid>
</Grid>

But RadWindow was never resized from its initial size (MinWidth and MinHeight were set on window), I tried to move min width and height to first grid, but that did not help either. Why this is not working, and what am I doing wrong here?
Nasko
Telerik team
 answered on 11 Apr 2016
1 answer
108 views

I want to put a little picture on the  RadBarcodeQR;

like attach file

 

Martin Ivanov
Telerik team
 answered on 10 Apr 2016
1 answer
187 views

Hi,

can I use PanelBar as a simple container without selection options?

I want use it as a navigator control that help to organize informations and inputs.

Is possible to disable background changes on mouse over, selections...?

Thank's,

marc.

 

 

Martin Ivanov
Telerik team
 answered on 10 Apr 2016
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?