Telerik Forums
UI for WPF Forum
3 answers
91 views
Hello,
I need to add a column to the left of the RowIndicator column, how can I do this?

Thanks
Vanya Pavlova
Telerik team
 answered on 14 Dec 2010
2 answers
152 views
I have the below xaml code. When I change drawers the radgrid always has the same data (from the initial load). How can I get the grid to refresh it's data?



   <telerik:RadTileView DataContext="{Binding Source={StaticResource DS}, PresentationTraceSources.TraceLevel=High}" ItemsSource="{Binding}" x:Name="mainTileView" Height="Auto" Width="Auto" Margin="0 0 7 0" MaximizeMode="One" TileStateChangeTrigger="SingleClick" MinimizedColumnWidth="180" TileStateChanged="TileView1_TileStateChanged">
            <telerik:RadTileView.ItemContainerStyle>
                <Style TargetType="telerik:RadTileViewItem">
                    <Setter Property="MinimizedHeight" Value="155" />
                </Style>
            </telerik:RadTileView.ItemContainerStyle>
            <telerik:RadTileView.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding UserLabel}" />
                </DataTemplate>
            </telerik:RadTileView.ItemTemplate>
            <telerik:RadTileView.ContentTemplate>
                <DataTemplate>
                    <Grid>
                        <telerik:RadFluidContentControl SmallToNormalThreshold="190, 140" NormalToSmallThreshold="190, 140" NormalToLargeThreshold="320, 320" LargeToNormalThreshold="320, 320">
                            <telerik:RadFluidContentControl.SmallContent>
                                <Grid>
                                    <Border Width="193" Height="130" RenderTransformOrigin="0.248,-1.288">
                                        <StackPanel>
                                            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="DS Storage System:" />
                                            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="{Binding UserLabel}" />
                                        </StackPanel>
                                    </Border>
                                </Grid>
                            </telerik:RadFluidContentControl.SmallContent>
                           <telerik:RadFluidContentControl.Content>
<Grid>
<StackPanel>
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="Drawers" />
</StackPanel>
</Grid>
</telerik:RadFluidContentControl.Content>
                            <telerik:RadFluidContentControl.LargeContent>
                                <telerik:RadTileView x:Name="drawerTileView" ItemsSource="{Binding Source={ StaticResource DrawersData}}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0 0 7 0" MaximizeMode="One" TileStateChangeTrigger="SingleClick" MinimizedColumnWidth="180" TileStateChanged="TileView1_TileStateChanged">
                                    <telerik:RadTileView.ItemContainerStyle>
                                        <Style TargetType="telerik:RadTileViewItem">
                                            <Setter Property="MinimizedHeight" Value="155" />
                                        </Style>
                                    </telerik:RadTileView.ItemContainerStyle>
                                    <telerik:RadTileView.ItemTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding DrawerNumber}" />
                                        </DataTemplate>
                                    </telerik:RadTileView.ItemTemplate>
                                    <telerik:RadTileView.ContentTemplate>
                                        <DataTemplate>
                                            <Grid>
                                                <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="Drives" />
                                                <telerik:RadGridView x:Name="gridDrives" ItemsSource="{Binding Source={ StaticResource DrivesData}}" />
                                            </Grid>
                                        </DataTemplate>
                                    </telerik:RadTileView.ContentTemplate>
                                </telerik:RadTileView>

                            </telerik:RadFluidContentControl.LargeContent>
                        </telerik:RadFluidContentControl>
                    </Grid>
                </DataTemplate>
            </telerik:RadTileView.ContentTemplate>
        </telerik:RadTileView>
<telerik:RadTileView DataContext="{Binding Source={StaticResource DS}, PresentationTraceSources.TraceLevel=High}" ItemsSource="{Binding}" x:Name="mainTileView" Height="Auto" Width="Auto" Margin="0 0 7 0" MaximizeMode="One" TileStateChangeTrigger="SingleClick" MinimizedColumnWidth="180" TileStateChanged="TileView1_TileStateChanged">
         <telerik:RadTileView.ItemContainerStyle>
             <Style TargetType="telerik:RadTileViewItem">
                 <Setter Property="MinimizedHeight" Value="155" />
             </Style>
         </telerik:RadTileView.ItemContainerStyle>
         <telerik:RadTileView.ItemTemplate>
             <DataTemplate>
                 <TextBlock Text="{Binding UserLabel}" />
             </DataTemplate>
         </telerik:RadTileView.ItemTemplate>
         <telerik:RadTileView.ContentTemplate>
             <DataTemplate>
                 <Grid>
                     <telerik:RadFluidContentControl SmallToNormalThreshold="190, 140" NormalToSmallThreshold="190, 140" NormalToLargeThreshold="320, 320" LargeToNormalThreshold="320, 320">
                         <telerik:RadFluidContentControl.SmallContent>
                             <Grid>
                                 <Border Width="193" Height="130" RenderTransformOrigin="0.248,-1.288">
                                     <StackPanel>
                                         <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="DS Storage System:" />
                                         <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="{Binding UserLabel}" />
                                     </StackPanel>
                                 </Border>
                             </Grid>
                         </telerik:RadFluidContentControl.SmallContent>
                        <telerik:RadFluidContentControl.Content>
                             <Grid>
                                 <StackPanel>
                                     <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="Drawers" />
                                      
                                 </StackPanel>
                             </Grid>
                         </telerik:RadFluidContentControl.Content>
                         <telerik:RadFluidContentControl.LargeContent>
                             <telerik:RadTileView x:Name="drawerTileView" ItemsSource="{Binding Source={ StaticResource DrawersData}}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0 0 7 0" MaximizeMode="One" TileStateChangeTrigger="SingleClick" MinimizedColumnWidth="180" TileStateChanged="TileView1_TileStateChanged">
                                 <telerik:RadTileView.ItemContainerStyle>
                                     <Style TargetType="telerik:RadTileViewItem">
                                         <Setter Property="MinimizedHeight" Value="155" />
                                     </Style>
                                 </telerik:RadTileView.ItemContainerStyle>
                                 <telerik:RadTileView.ItemTemplate>
                                     <DataTemplate>
                                         <TextBlock Text="{Binding DrawerNumber}" />
                                     </DataTemplate>
                                 </telerik:RadTileView.ItemTemplate>
                                 <telerik:RadTileView.ContentTemplate>
                                     <DataTemplate>
                                         <Grid>
                                             <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Text="Drives" />
                                             <telerik:RadGridView x:Name="gridDrives" ItemsSource="{Binding Source={ StaticResource DrivesData}}" />
                                         </Grid>
                                     </DataTemplate>
                                 </telerik:RadTileView.ContentTemplate>
                             </telerik:RadTileView>
 
                         </telerik:RadFluidContentControl.LargeContent>
                     </telerik:RadFluidContentControl>
                 </Grid>
             </DataTemplate>
         </telerik:RadTileView.ContentTemplate>
     </telerik:RadTileView>
David Bakker
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
78 views
hi
I need use FilterIsLessThanOrEqualTo and FilterIsGreaterThanOrEqualTo    for String Property
how can i do?
Rossen Hristov
Telerik team
 answered on 14 Dec 2010
5 answers
123 views
I am a RAD developer (emphasis on Rapid Application Development)

I've purchased Telerik suite for this purpose, but how can I do things 'quickly' when the documentation is so lacking.

I am trying to whip up a quick WPF application.

I've just spent the last hour trying to find out how to apply a theme to my application - I cant find any details about how to do this, and yet this is probably the simplest and most popular task to perform.

I still dont know how to do this.

The documentation is woefully lacking in every sense.

Im finding it difficult to justify to my manager why I begged him to buy these Telerik compnents when I cant even do anything without a deep and arcane knowledge of everyhting before I start.

So much for RAD (lol)

I still dont know how to do this.

Just closed Blend in frustration - will do this one without Telerik
Veselin Vasilev
Telerik team
 answered on 14 Dec 2010
3 answers
140 views
Hello Telerik Team,
                               First of all i should thank to telerik team.Becoz of read my thread.

We have one requirement in WPF using telerik rad control.here we have 10 fields.(model i will attached below)
In this project first i want to split two sections in rad grid.
The first 5 fields design in left section.another 5 fields designed  in Right section.

 we also have enable/disable option in every field in setting page.

Enter Name    (Label box)

Text Box

Address

Text Box

Standard

Combo Box

Pin code

Text Box

Section

Text Box

State

Combo Box

Age

Text Box

Country

Combo Box


if i disable left section any field mean after that the right side of top field will come into left section of bottom field.

The model i will attached below.if i disable standard mean the layout will come

Enter Name    (label box)

Text Box

Pin code

Text Box

Section

Text Box

State

Combo Box

Age

Text Box

Country

Combo Box

Address

Text Box

 

 


is it possible?

if possible mean pls give me some coding regard my thread?

if not possible mean also give some ideas?
Maya
Telerik team
 answered on 14 Dec 2010
2 answers
109 views
Hi telerik,

I just downloaded a trial version and fired up vs2010.

When selecting Create New Project, choosing C# RadControls WPF Application, the Project Configuration Wizard opens.

Components as well as Themes are empty lists.

Download shown an error message: Error retrieving latest version information. Please, try again later or contact the Telerik team.

Browse does not appear to find anything of relevance, I've tried some of the directories of the installation, but do not know what I should be looking for.

What do I need do to make the download working?

Regards,

Anders, Denmark
Anders
Top achievements
Rank 1
 answered on 14 Dec 2010
3 answers
120 views

Hello everybody, my name is Alvaro and I am having the following problem:

I am making a Radchart showing in Stacked Bar100 some information about some forms. Well, the problem comes in the instruction below.

            try
            {
                Stream imagen = RadChart1.Save(120, 120);
            }
            catch (Exception e) { throw e; }

++throws this error:

[System.ArgumentOutOfRangeException] = {"The parameter value must be greater than zero.\r\nParameter name: pixelWidth"}

And if I try directly to do the following:

            try
            {
                Stream imagen = RadChart1.Save();
            }
            catch (Exception e) { throw e; }

++throw this error:

[System.Security.SecurityException] = {"Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."}

Any idea of why is this happening?

Thanks.
Alvaro
Top achievements
Rank 1
 answered on 14 Dec 2010
3 answers
360 views

I'm using WPF RadGridView Q3-2010.

My purpose is to set the column template based on its data context while in edit mode. When not in edit mode the column will have triggers to customize the template.

I’m using CellEditTemplateSelector for switching templates according to the data context, but when I tried to enter triggers to the DataTemplate of the GridViewDataColumn.CellTemplate - I found that these triggers don’t work.

I read in this forum that in order to work with triggers on RadGridView, I need to set the ContentTemplate of the GridViewCell within the GridViewDataColumn.CellStyle attribute. After doing so, the triggers started to work, but the CellEditTemplateSelector Stopped working correctly. The Selector chooses the right template but the grid doesn’t use it, Moreover, the Data Context has been changed causing the grid to stop showing data after it enters the Edit Mode.

What do I need to do in order to make the triggers work with the edit template selector?

Maya
Telerik team
 answered on 14 Dec 2010
5 answers
269 views
I'm looking to add a custom control to each FilterCriteria in our RadDataFilter. Ideally, this would be a button to the right of the UserInput control. When pressed, it'll fetch unique values from the database and present them in a list of some sort. The user can then select a unique value and insert it into the UserInput control instead of having to type the value themselves.

I've looked at the documentation regarding custom FilterEditors. It looks like I could create the mapping from EditorTemplateRule to DataTemplate based on the PropertyInfo type instead of the PropertyInfo name. I would then need only a handful of DataTemplates (one per type) instead of hundreds of DataTemplates (we have hundreds of columns to search across).

However, it also seems I'd have to re-implement the stock functionality of the FilterEditors by providing a UserInput control that mimicks the current behavior. For instance, I'd have to handle DateTimes by providing a calendar selector. I'd like to not have to do that. I've been going through the Styles and Templates documentation to see if I can just add a template with a custom control to the right of the FilterEditor, but I'm not having much luck coming up with a solution.

Does anyone have ideas on the best way to approach this sort of customization?

Thanks.
Rossen Hristov
Telerik team
 answered on 14 Dec 2010
2 answers
377 views
I used a sample project from another post and have a RadGridView as the DropDownContent for a DropDownButton. The Content of the Button is bound to the SeletedItem of the GridView. And I created a ContentTemplate to display a piece of data from the SelectedItem.

How do I display something (a message that says "Select Source" or something similar) when no item is selected in the GridView. Would I use a TemplateSelector?  If so, How? I'm not sure and I've never used TemplateSelector.

Here is my scaled down code for my ddb:

<telerik:RadDropDownButton Width="180" Name="SourcesDropDown"
       Content="{Binding SelectedItem, ElementName=gridView}">
   <telerik:RadDropDownButton.ContentTemplate>
     <DataTemplate>
      <TextBlock Text="{Binding Name}" />
     </DataTemplate>
   </telerik:RadDropDownButton.ContentTemplate>
   <telerik:RadDropDownButton.DropDownContent>
     <telerik:RadGridView ShowGroupPanel="False"
        x:Name="gridView" AutoGenerateColumns="False"
        IsReadOnly="True" IsFilteringAllowed="True"  
        ItemsSource="{Binding Sources, Source={StaticResource References}}"
        Width="450" Height="150">
     <telerik:RadGridView.Columns>...</telerik:RadGridView.Columns>
   </telerik:RadGridView>
 </telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>


Thanks.
Tina Stancheva
Telerik team
 answered on 14 Dec 2010
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?