Telerik Forums
UI for WPF Forum
3 answers
128 views
Hello

I have found bug. When you set isEditable propery to false, entire control shoundt be editable anymore. If you focus inner textbox in this state, you cannot change value using num keys or buttons as expected, but you can still change value using up and down keys. I have resolved this unwanted behavior by preventing user to focus control in readonly state.

Is it also possible to  add selection opaticity property, which is accessible for textbox, or create new property which would make text unselectable (look and feel reason) ?

Thanks for your time. 

Sav
Boyan
Telerik team
 answered on 13 Apr 2012
9 answers
172 views
Do you have any example of filtering a gridview with an unbound data filter?
Guru
Top achievements
Rank 2
 answered on 13 Apr 2012
0 answers
132 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
105 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
754 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
203 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
115 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
851 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
127 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
208 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?