Telerik Forums
UI for WPF Forum
15 answers
791 views
Using a datafilter.filteredsource(datatable.defaultview) as grid itemsource and adding column.AggregateFunctions at runtime is it possible to make the CountFunction count only distinct items (strings or numbers) or do you have to create a custom EnumerableSelectorAggregateFunction inherited class?

If you do have to create the custom aggregate function, how would one go about that in my conditions?
Daniel B.
Top achievements
Rank 1
 answered on 07 Apr 2016
1 answer
149 views

I'm trying to load xlsx document about 15MB size - spreadsheet is hung. All documents larger than 1 MB is very slow loaded.

Please tell me how to speed up downloading large documents (more that 1MB)?

Thanks.

Boby
Telerik team
 answered on 06 Apr 2016
2 answers
225 views

Hi,

We are currently using Telerik () RadGridview for our WPF client application. The data is displayed in ScheduleView format for users as Weeks/Days where user can create a block (Tile) on a specific day and time. Once the block is created on the grid user can select the block and edit the contents. The data that is binded to the grid is coming from SQL Server database which is common to all the users who are using this client application and Schedule Grid.

Our business requirement is, when a particular user has open this schedule grid on his screen, he see all the blocks created by different users including his own blocks. User should be able to edit his block and at the same time all other blocks on the screen inside the grid should be auto refreshed (may be after 1 min) to reflect the changes saved in DB by other users that too without restricting the user to edit his own block and without locking the UI. User should be still allowed to continue his edit operation when auto refresh is happening for other changed blocks...

Is it possible in Telerik Radgrid (any version) to auto refresh (every after 1 min) entire contents except the the one user is editing without locking the UI?

Any help is appreciated...

amrish
Top achievements
Rank 1
 answered on 06 Apr 2016
0 answers
165 views

Hello,

In a project I use RadDateTimePicker (InputMode="DatePicker", DateTimeWatermarkContent="Custom watermark") as a separate control and as a part of DataTemplate for items in ListBox (ItemsControl). Initially I used version 2013.3, then I tried to use version 2015.2. Separate controls work fine. But RadDateTimePicker in DataTemplate began to display "EnterDate" for watermark content. The only thing I changed was Telerik dlls of another version.

<Window x:Class="RadDateTimePickerDemo.MainWindow"
        xmlns:local="clr-namespace:RadDateTimePickerDemo"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="500">
     
    <Grid Margin="10">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="20"/>
            <ColumnDefinition Width="160"/>
        </Grid.ColumnDefinitions>
 
        <telerik:RadDateTimePicker VerticalAlignment="Top" Margin="0,2,0,0"
            InputMode="DatePicker"
            DateTimeWatermarkContent="Custom watermark"/>
 
        <ListBox x:Name="listBox" Grid.Column="2"
                 HorizontalContentAlignment="Stretch"
                 BorderThickness="0" Padding="0">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <telerik:RadDateTimePicker
                        InputMode="DatePicker"
                        DateTimeWatermarkContent="Custom watermark"/>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</Window>

I attached screenshots for different versions. Project's .net version - 4.6, Windows 10, 64bit.

Regards,
Andrey

Andrey
Top achievements
Rank 1
 asked on 06 Apr 2016
9 answers
202 views

Hey,

 I have a button that changes my appointment start and end times between UTC and Local to a slected Timezone. The button updates the appointments correctly but I cannot get the UI to update accordingly. I have noticed that a forum post from two years ago address' this problem but it did not look like a solution was found as I too am using MVVM. 

Any suggestions?

 Thanks,

Cameron

Andrey
Top achievements
Rank 1
 answered on 06 Apr 2016
1 answer
399 views

Hello

is it possible to display and edit numbers using a scientific notation in NumericUpDown? how can i do that?

Yana
Telerik team
 answered on 06 Apr 2016
1 answer
172 views

I created a some function inherited from the FunctionBase: 

public class MyFunc : FunctionBase

And i want to return result into two cells: 

return new ArrayExpression(new RadExpression[,] { { new StringExpression("123"), new StringExpression("321") } });

But when i use my function in spreadsheet, only one cell correctly filled. I expect that will be filled with a range of two cells "123" and "321".

How to correctly fill range of cells from MyFunc?

 

Thank you.

 

Deyan
Telerik team
 answered on 06 Apr 2016
3 answers
213 views
Found the issue: User settings was storing a layout with CanUserClose set to false

The XAML below does everything we want except the close button on a floating window is always disabled. We manage the IsHidden property from the menu but users still complain that the close button on a floating window does not do anything. I need to either hide it or make it do what they expect, which is hide the pane, or pin it.


<telerik:RadDocking x:Name="radAppointmentDocking" Grid.Row="0" Grid.Column="0">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadPane x:Name="AppointmentsPane" Header="    Appointments    " 
                                         Title="Appointments" CanUserClose="True"
                                         telerik:RadDocking.SerializationTag="AppointmentsPane"
                                         telerik:RadDocking.FloatingSize="1200, 800">
                            <telerik:RadPane.Content>
                                <ContentControl regions:RegionManager.RegionName="{x:Static inf:RegionNames.AppointmentsRegion}"> </ContentControl>
                            </telerik:RadPane.Content>
                        </telerik:RadPane>
                        <telerik:RadPane x:Name="WorkInProgressPane" Header="    Work In Progress    " 
                                         Title="Work In Progress" CanUserClose="True" 
                                         telerik:RadDocking.SerializationTag="WIPPane"
                                         telerik:RadDocking.FloatingSize="1200, 800">
                            <telerik:RadPane.Content>
                                <ContentControl regions:RegionManager.RegionName="{x:Static inf:RegionNames.WorkInProgressRegion}"> </ContentControl>
                            </telerik:RadPane.Content>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
        </telerik:RadDocking>
Kalin
Telerik team
 answered on 06 Apr 2016
0 answers
98 views
Hi, I'm trying to send an email while using the richtextbox as the body. I use a HtmlDataProvider and I've tried multiple imageexport options but the image still appears as an empty box. May I ask how do I properly export to html with inline images, MVVM.
Minh
Top achievements
Rank 1
 asked on 05 Apr 2016
1 answer
361 views

Hi Telerik,

I really like how the TimeSpanPicker has a "StringFormat" property on it, but I'm having challenges getting it to do what I want.

I want the selected timespan to show as:

"x Days and y Hours".

StringFormats like the following aren't working:

{0:d} Days and {0:h} Hours

Can you please help me out?  what do I need to do to make it show the way I want it to?

Nasko
Telerik team
 answered on 05 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?