Telerik Forums
UI for WPF Forum
0 answers
151 views
Hello,

In my project i use a RadGridView, this grid display only GridViewColumn. There's no rows displayed.

The  GridViewColumn are created dynamically by code and bind on the RadGridView . 
 
The creation :
 TWC.GridViewColumn collHeader = new TWC.GridViewColumn();
collHeader.IsSortable =
true;<br>           
collHeader.IsReorderable =
true;<br>           
collHeader.DataContext =
this;<br>           
collHeader.MinWidth = 100;<br>           
collHeader.UniqueName = resultItem.label;<br>           
ButtonHeaderResult buttonHeader =
new ButtonHeaderResult();<br>           
buttonHeader.DataContext =
this;<br>           
buttonHeader.btnDelete.Tag = collHeader;<br>           
buttonHeader.LabelContent.Text = resultItem.label;<br>           
buttonHeader.ToolTip = resultItem.label;<br>           
collHeader.Header = buttonHeader;<br>           
collHeader.Tag = resultItem;<br>           
return collHeader;

(For example) When i have 10 columns, my headers are well displayed, the header bar is full, when i have 11 columns only 10 columns are displayed correctly, the last one is not visible.
If i move a headercolumn, the progress bar appear (a resize is launch)

Have you an idea please.

How can i force to recalculate the grid Width and the scrollviewer to be displayed.

Thank you
Michel
Top achievements
Rank 1
 asked on 13 Apr 2012
4 answers
127 views
Hy,

I Hooked up the RadTileView with the Events LayoutChangeStarted(Animation Beginn) and LayoutChangeEnded(Animation End),
but they are not fired, even i Maximize a TileViewItem.

Wha'ts  wrong?

Greetings

Alfred
SPARE GmbH
Top achievements
Rank 2
 answered on 13 Apr 2012
9 answers
819 views
In the default configuration, combobox columns do not show an arrow to indicate that they are, in fact, comboboxes.  Our users find this confusing, and we would like to know how to make comboboxes always show an arrow, regardless of their focus state.

Would you please provide an example of how to do this?

Thanks,
-Lynne W
Dimitrina
Telerik team
 answered on 13 Apr 2012
4 answers
238 views
I have a problem with the bar chart - when label is wider then the bar, then part of the label is clipped. Please see screenshot attached. Also in a pie chart labels are almost always clipped on the right and left sides
Sia
Telerik team
 answered on 13 Apr 2012
2 answers
158 views
Hi,

i tried your ColorEditor Example. But it's not working like your wpf example. There is nor error but the car.png will not
change the color. Ist there any example ?!

Thanks
Regards
Rene
ITA
Top achievements
Rank 1
 answered on 13 Apr 2012
2 answers
943 views
Hi,

I'm having difficulty resizing my RadGridView (within a UserControl) to fit within the bounds of the window. My RGV consists of several fixed columns and a few other columns that I'd like to be each a set fraction of the remaining width available. Using the help given in this post, this is my current xaml (simplified):
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <telerik:RadGridView ItemsSource="{Binding Source={StaticResource MainRepo}, Path=DvFocusControl}"
                         Name="rgvGrid"
                         AutoGenerateColumns="False"
                         RowLoaded="rgvGrid_RowLoaded"
                         ShowGroupPanel="False"
                         MouseDoubleClick="rgvGrid_MouseDoubleClick"
                         Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="1" Grid.RowSpan="1"
                         HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                         ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                         EnableColumnVirtualization="False">
         
        <telerik:RadGridView.Columns>
             
            <telerik:GridViewDataColumn Name="ColAutoNum" Header="#" IsReadOnly="True" MinWidth="50" Width="50" />
            <telerik:GridViewDataColumn Name="ColType" Header="Type" IsReadOnly="True" MinWidth="30" Width="50" />
            <telerik:GridViewDataColumn Name="ColRequest" Header="Request" IsReadOnly="True" MinWidth="80" Width="80" />
            <telerik:GridViewDataColumn Name="ColSubject" DataMemberBinding="{Binding Subject}" Header="Subject" IsReadOnly="True" MinWidth="50" Width="2*" TextWrapping="Wrap"/>
            <telerik:GridViewDataColumn Name="ColAssignedTo" DataMemberBinding="{Binding AssignedTo}" Header="Assigned To" IsReadOnly="True" MinWidth="50" Width="*" MaxWidth="200"/>
            <telerik:GridViewDataColumn Name="ColNotes" DataMemberBinding="{Binding Notes}" Header="Notes" IsReadOnly="True" MinWidth="50" Width="3*" TextWrapping="Wrap"/>
            <telerik:GridViewDataColumn Name="ColDate" DataMemberBinding="{Binding DateAdded}" DataFormatString="dd/MM/yy hh:mm tt" Header="Date" IsReadOnly="True" MinWidth="50" Width="70"/>
            <telerik:GridViewDataColumn Name="ColSite" DataMemberBinding="{Binding Site_Name}" Header="Site" IsReadOnly="True" MinWidth="50" Width="50" />
            <telerik:GridViewDataColumn Name="ColT" Header="T" IsReadOnly="True" MinWidth="70" Width="*" MinWidth="50" Width="50"/>
            <telerik:GridViewDataColumn Name="ColAssignedToFullAbbr" DataMemberBinding="{Binding FullAbbr}" Header="Assigned To" IsReadOnly="True" MinWidth="70" Width="1*"/>
            <telerik:GridViewDataColumn Name="ColReceived" DataMemberBinding="{Binding NotifiedOn}" DataFormatString="dd/MM/yy hh:mm tt" Header="Received" IsReadOnly="True" MinWidth="70" Width="70"/>
            <telerik:GridViewDataColumn Name="ColR" Header="R" IsReadOnly="True" MinWidth="50" Width="50"/>
             
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>
</Grid>

Currently when the RGV is filled the columns expand past the edge of the window. I'd like them to fit to the window.

Because this is likely related to fitting the RGV to the window, here are further details about the columns:
Columns ColSubject, ColNotes, and ColAssignedToFullAbbr are the variable width columns, with ColNotes taking up the most space, followed by ColSubject, then ColAssignedToFullAbbr. I'm not sure whether functionality exists for this, but I've also put minimum widths for the other columns so that should the variable width columns require more space, space up to a certain amount can be given to them from the other columns. Finally, should the variable width columns still require more space, I'd like the text to wrap, hence I've added TextWrapping="Wrap".

If it matters, I've tried setting a fixed size to the window containing this UserControl, and a similar result occurs.

Any help is appreciated.
Peter
Top achievements
Rank 1
 answered on 12 Apr 2012
1 answer
172 views
I have a GridVIew that I want to populate with the results of a StoredQuery that returns a list of string.
I have the following
public DataTable GetLoadedTransactionFiles()
       {
           using (FamilyOfficeDataContext db = new FamilyOfficeDataContext())
           {
               var query = db.GetTransactionFileLoad();
                
               DataTable dt = new DataTable();
               dt.Columns.Add("FileLoaded", typeof(string));
 
               foreach (var file in query)
               {
                   DataRow newRow = dt.NewRow();
                   newRow["FileLoaded"] = file.LoadedFile;
                   dt.Rows.Add(newRow);
               }
               return dt;
           }
       }

When I set the grivview itemsource like so

FilesLoadedGrid.ItemsSource = gl.GetLoadedTransactionFiles().DefaultView;


I see the grid has two rows but the filename is not displayed.
the  xaml is as follows
<telerik:RadGridView HorizontalAlignment="Left" Margin="153,26,0,0" Name="FilesLoadedGrid" VerticalAlignment="Top" Height="233" Width="439" AutoGenerateColumns="False"
                             CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False"  RowIndicatorVisibility="Collapsed" ShowGroupPanel="False"
                              AlternationCount="2"  AlternateRowBackground="Cornsilk"  Deleting="FileDeleted" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewColumn >
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <telerik:RadButton Content="Delete" Command="telerikGrid:RadGridViewCommands.Delete" CommandParameter="{Binding }" />
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
                <telerik:GridViewDataColumn Header="Loaded File" Name="FileLoaded" DataMemberBinding="{Binding Path= LoadedFile}"  Width="*"  IsReadOnly="true">
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

What am I missing?

Eric Klein
Top achievements
Rank 1
 answered on 12 Apr 2012
1 answer
281 views

Hello,

I'm using RadGridView.I need to format the cells of grid like "###,###".Moreover as long as my ItemSource is totally arbitrary, I can not define the columns in xaml or code. However, I know the first column is of string type and the rest are double
I need something like :

public void radGridView1_Loading(e) // or formatting
{
        if(e.ColumnIndex>1)
            e.Cell.Format = "###,###";
}

Thanks in advance
StevenDale
Top achievements
Rank 2
 answered on 12 Apr 2012
1 answer
94 views

As we have seen Telerik Image Editor,It is working same as we required,but we want two additional functionalites in it.

 

1:- We want to record the changes that we have performed on a particular image so that we can save these steps to regenerate image .

 

2:- We want Image layering functionlity,So that we can add a layer(Background Image and Frame on our original Image) and also want to change position of my original Image.

 

Please have a look of attached  image

Ivailo Karamanolev
Telerik team
 answered on 12 Apr 2012
3 answers
139 views
Hi,

I am using Visual Studio 2008 SP1 for development and i want to check sample applications of WPF on my machine.
I downloaded "RadControlsForWpfSetup_2012_1_0215.exe" and installed it. But i am not able to build the application samples available with this exe.
Could you please let me know from where i can get the setup which will build on Visual Studio 2008 SP1?
Yordanka
Telerik team
 answered on 12 Apr 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?