Telerik Forums
UI for WPF Forum
1 answer
155 views
Hi,

I have two questions

1. Is it possible to bind the tileview header colour?
2. Can I seet the size of the maximised tile?

Regards,
Joe
Pavel R. Pavlov
Telerik team
 answered on 21 Jul 2014
5 answers
339 views
Hello,

I have a view with RadGridView and RadDataPager. Grid´s source is PagedSource of data pager. Data pager is bound to IQueryable of items so Data pager manages data reading itself. Paging is working well but I don´t know how to refresh grid if user pressed a button for manual refresh. I have tried to use Grid.Rebind() but it didn' t work. Is there any method I could call to explicitly cause Data pager to reads data from database? And is there any event triggered during it? Because I would like to use busy indicator during the refresh.

Thanks,
Karel Bem
Yoan
Telerik team
 answered on 18 Jul 2014
2 answers
95 views
Hi support,

I am adding a AggregateFunction to a gridcolumn with the following code:

bool showFooter = false;
foreach (var col in radGridView.Columns)
{
    if (col.UniqueName == "dauer") // Column with double-values
    {
        col.AggregateFunctions.Add(new SumFunction() { ResultFormatString = strFormat, SourceField = col.UniqueName });
        showFooter = true;
    }
}
radGridView.ShowColumnFooters = showFooter;

Adding a footer should only happens if my table has a column of data-type double named "dauer" otherwise columnfooters should not been shown. After doing this the footer has correctly been show but the first time the sum of the column is displayed when I sort a column of the grid via clicking on a column header.

You can reproduce this behavior in your sample-program "persistence framework / gridview serialization" when you put these lines of code in function "OnLoad" of Example.xaml.cs after calling this.EnsureLoadState() (of course you have to add a new column "dauer" to your dataset)

What do I have to do to show the results of the aggregate-function directly.

Thanks in advance

Marcus
Marcus
Top achievements
Rank 1
 answered on 18 Jul 2014
1 answer
91 views
Hello, is there a possibility to place a custom text defined in EventContainerTemplate
outside from gantbar i.e. startdate and enddate at upper left or upper right corner? 

Greetings, Robert
Polya
Telerik team
 answered on 18 Jul 2014
4 answers
90 views
Hi

I need to give to the user the possibility to build filter not only between a Member and a value (like Column1 = 10) but also between two members (like Column1 >= Column2).

How could I do?

Dimitrina
Telerik team
 answered on 18 Jul 2014
1 answer
142 views
how to get current selected row without select row. only when change combobox item.
how to get current grid row according selected combobox?

I want when I select only last combobox to get last grid row item? Hot to do that?

See attached image for more info.

<telerik:GridViewDataColumn Header="NASA - NSSDC ID: ASTRO-1 " Width="350" IsReadOnly="True">
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal"  >                                      
                                        <telerikInput:RadComboBox Width="342" ItemTemplate="{StaticResource dtE}" x:Name="rcbEvent"
                                                    ItemsSource="{Binding Path=DataContext.EvCollection, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}} }"                                                                                                      
                                                    SelectedValuePath="ID"
                                                    SelectedValue="{Binding Path=EvField.ID, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay }"
                                                    SelectedItem="{Binding Path=EvField, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay }" SelectionChanged="rcbSo_SelectionChanged" />
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>
kity
Top achievements
Rank 2
 answered on 18 Jul 2014
11 answers
300 views
Hi everyone,

I'm creating RadWindow in separate thread, but when I reopen window after closing it , I'm getting System.Threading.Tasks.TaskCanceledException and don't know why. Here is my code

private void OnCreateNewWindow( object sender,  RoutedEventArgs e)
{
 
Thread thread = new Thread(() =>
                    {
 RadWindow win = new RadWindow();
 
 win.Show();
 
                            win.Closed += (sender2, e2) =>
                                {
                                    win.Dispatcher.InvokeShutdown();
                                };  
 
System.Windows.Threading.Dispatcher.Run();
});
 
thread.SetApartmentState(ApartmentState.STA);
                thread.IsBackground = true;
                thread.Start();
}
Tigran
Top achievements
Rank 1
 answered on 18 Jul 2014
4 answers
134 views
Hi,

my approach is to make sure that an appointment has a TimeMarker and a Category.

The TimeMarker is set by code - so I want to remove the TimeMarker Combobox from the edit / create dialog.

The Category on the other hand MUST selected in the "create dialog"...
BUT:
a.) The "Clear" Button in the category combobox should be removed
--NO clear - just mandatory select
b.) The category Combobox should be disabled if the appointment is edited (not newly created)

How can this be done? (Pleas no "Code behind event handlers" if possible)

Manfred
Kalin
Telerik team
 answered on 18 Jul 2014
1 answer
140 views
I have a grid view
<telerik:RadGridView x:Name="SizingGridView" 
                ItemsSource="{Binding Model.SizingUpchargeModels}"
                Style="{StaticResource BaseGrid}"
                ValidatesOnDataErrors="InViewMode"
                IsSynchronizedWithCurrentItem="True"
                ColumnWidth="*" >
                <telerik:RadGridView.Columns>
                    <telerik:GridViewCheckBoxColumn IsSortable="False" Header="Selected" DataMemberBinding="{Binding Selected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" EditTriggers="CellClick" AutoSelectOnEdit="True"/><telerik:GridViewDataColumn Header="Size" IsReadOnly="True" DataMemberBinding="{Binding Size}" IsSortable="False" />
                    <telerik:GridViewDataColumn Header="Upcharge" DataFormatString="C3" 
                                            DataMemberBinding="{Binding UpchargeAmount, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=False, TargetNullValue={x:Static sys:String.Empty}}"
                                            Style="{StaticResource GridErrorDisplay}" EditTriggers="CellClick" IsSortable="False" >
                        <telerik:GridViewDataColumn.CellEditTemplate>
                            <DataTemplate>
                                <commonControls:RadGridMaskedNumericInput Style="{StaticResource GridThreeDecimalAmountTwoDigitsNumericTextEntry}"  IsReadOnly="{Binding Selected,Converter={StaticResource InverseBooleanConverter}}"
                                Value="{Binding Path=UpchargeAmount, TargetNullValue={x:Static sys:String.Empty}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, NotifyOnValidationError=False}"/>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellEditTemplate>
                    </telerik:GridViewDataColumn>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
I need to display only show rows Selected = true on initial load. When I click the filter option it should have the checkbox next to true selected. Now the user can unselect true/ select false or clear filter etc.
How can I achieve this? 


Dimitrina
Telerik team
 answered on 18 Jul 2014
3 answers
192 views
Hi,
I'm using Telerik version 2014.2.617.40. The MaskedtextInput control in Masked Input Text Input Demo has an unexpected behavior.
Here is the configuration I have.
  Mask: (empty)
  Text Mode: MaskedText.
  Input Behavior: Replace
  Selection On Focus: SelectAll
  Update Value Event: PropertyChanged.

Replication Steps:
  1. Type ABC in text input.
  2. Select A. Copy A using Ctrl + C.
  3. Select B. Paste using Ctrl + V.
What I expect: ABC becomes AAC.
Actual result: ABA.

Is it a bug? or should I modify the control properties?
Thanks.

Regards,
Gong
Martin Ivanov
Telerik team
 answered on 18 Jul 2014
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?