Telerik Forums
UI for WPF Forum
2 answers
199 views
Hi there,

If im using 100% the Width of the Grid  <telerik:GridViewDataColumn Header="FirstName" Width="*" /> and wrapping with the scroll bar. Why the column goes out of the frame horizontally. but if i takeout the scroll bar everything seems perfect. And I want the scroll bar to be there.

Example:
<ScrollViewer BorderBrush="Transparent" BorderThickness="0" HorizontalScrollBarVisibility="Auto" >
         <telerik:RadGridView Grid.Row="1" ScrollMode="Deferred"    ShowGroupPanel="False"  AutoGenerateColumns="False">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn Header="First Name" Width="200" />
                        <telerik:GridViewDataColumn Header="Last Name" Width="*" />
                        <telerik:GridViewDataColumn Header="Title" Width="200" />
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>
            </Grid>
</ScrollViewer>
sam Aryan
Top achievements
Rank 1
 answered on 16 Mar 2011
3 answers
202 views
Hi there,

Currently the Rad Pie Chart (seems) to start at the 3 o'clock position, and draws each slice in a counter-clockwise direction.

Is it possible to change the direction to clockwise?

Is it possible to start at the 12 o'clock position?

Some background:  We are displaying data in our application, and representing it in a Telerik Rad PieChart, and then exporting the data to Microsoft Excel 2010 via OpenXml, and creating a pie chart in Excel.  Because Excel starts drawing its pie chart at the 12 o'clock position (which can be changed by adjusting the angle of the first slice), and draws the slices clockwise, it looks different than the Telerik Rad PieChart in our application, which isn't a very good user experience.  So, we're hoping we can change the direction that the Telerik Rad PieChart draws its pie slices, and where it starts drawing its first slice.

Thanks!
Sia
Telerik team
 answered on 16 Mar 2011
1 answer
113 views
How i can preview richtext? Thank
Boby
Telerik team
 answered on 16 Mar 2011
1 answer
120 views
I'm using a RadGridView with SelectionUnit=FullRow. When I press the up/down arrow keys, the selected row moves to the new row that I've navigated to. When I press PageUp or PageDown, the grid scrolls, but the selection isn't updated. I've tried using a CustomKeyboardCommandProvider, but it seems like the PageUp/PageDown keys are handled specially by the grid: even when I return an empty List of ICommands, the grid still scrolls up and down. 

Any ideas on how to handle this?
Yordanka
Telerik team
 answered on 16 Mar 2011
1 answer
1.4K+ views
Hi!


I would like to know how to enable a button when items.count > 0 and disable it when items.count == 0 but into XAML using binding. I did this:

<Button x:Name="btnAceptar" Content="Aceptar" Command="{Binding GrabarCommand}" IsEnabled="{Binding ElementName=grdGrid, Path=Items.Count, Converter={StaticResource ConvertidorHabilitacionItemsGrid}, Mode=OneWay}" >

converter is:

public class ConvertidorHabilitacionItemsGrid : IValueConverter
 {
     public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
     {
         return !((int)value == 0);
     }
 
     public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
     {
         throw new NotImplementedException();
     }
 }


But it not works

thanks
Maya
Telerik team
 answered on 16 Mar 2011
2 answers
152 views

For the selected items I do not see the selected color for the columns that have a background color.  here is how i am setting them

<telerik:GridViewDataColumn Header="QTR" UniqueName="Quarter" Background="Silver" DataMemberBinding="{Binding Quarter}" Width="50" />
John Giblin
Top achievements
Rank 1
 answered on 16 Mar 2011
2 answers
157 views


I have 3 radio buttons that will do the following
1) rbAll: Get all the values
2) rbMapped: Get all the values where the program column is not blank
3) rbUnMapped: Get all the values where the program column is blank
I have all the button clicks go to the below method
I am getting a blank results for all them.  Any ideas

Telerik.Windows.Controls.GridView.FieldFilterDescriptor columnDescriptor = new Telerik.Windows.Controls.GridView.FieldFilterDescriptor("Program", typeof(System.String));
 
if (rbAll.IsChecked.Value)
{
    columnDescriptor.Filter1.Operator = Telerik.Windows.Data.FilterOperator.IsGreaterThan;
    columnDescriptor.Filter1.Value = "0";
    return;
}
if (rbMapped.IsChecked.Value)
{
    columnDescriptor.Filter1.Operator = Telerik.Windows.Data.FilterOperator.IsNotEqualTo;
    columnDescriptor.Filter1.Value = "";
}
else if (rbUnmapped.IsChecked.Value)
{
    columnDescriptor.Filter1.Operator = Telerik.Windows.Data.FilterOperator.IsEqualTo;
    columnDescriptor.Filter1.Value = "";
}
rgvSellingTitles.FilterDescriptors.Add(columnDescriptor);
John Giblin
Top achievements
Rank 1
 answered on 16 Mar 2011
1 answer
108 views
Hello! Recently found bug with RadTileView. In my project I have several modeless windows that have RadTileView inside them. Inside my main window TileView is working good, but inside all other windows item dragging inside RadTileView is buggy, when I start drag - there is no animation there and RadTileViewItems are not repositioned during drag operation. Only when I release mouse button I can see a result. And also if I spend some time dragging items in that TileViews, app often crashes with stack overflow in Telerik.Windows.Controls.Navigation.dll. Finally I've found the solution for that - always set Application.Current.MainWindow to window that is active at the moment. But this is not very convenient. Can you help me to solve that issue?

Best regards,
Ivan Petroff
Zarko
Telerik team
 answered on 16 Mar 2011
4 answers
485 views
I created a context menu for each row in a gridview following this example - http://blogs.telerik.com/vladimirenchev/posts/09-04-09/how_to_radgridview_for_silverlight_row_context_menu_in_three_simple_steps.aspx and it works fine without the SelectionChanged event.
Now, the problem is that I want a user to be able to left-click a row and it will take them to another page:
private void radGVInspectionForm_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e) 
        { 
             
            ////Get the reference to the selected item 
            object mySelectedRow = radGVInspectionForm.SelectedItem; 
 
            ////Get the id of the form 
            string id = ((InspectionFormDS.InspectionFormTableRow)mySelectedRow).Id; 
             
            ////Navigate to the edit form page 
            this.NavigationService.Navigate(new DisplayInspectionFormPage(Convert.ToInt32(id))); 
        } 
But this code fires when I try to right-click a row to get to the context menu. So the SelectionChanged event fires for both left and right clicks.
How can I figure out which mouse button was clicked in the SlectionChanged event so if a right button is clicked, then show context menu, if a left button is clicked, then navigate to other page?
Rossen Hristov
Telerik team
 answered on 16 Mar 2011
1 answer
110 views
Hi,

1) Could you please provide an example code for the Treelistview UI Virtualization code? Also, should it be "LINQ-Based Data Engine" always to avail the UI Virtualization feature? If yes then provide an example with LINQ based.

2) UI Virtualization still should work even if my Treelistview control has some editable columns?


Thanks,
Suman
Vlad
Telerik team
 answered on 16 Mar 2011
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?