Telerik Forums
UI for WPF Forum
1 answer
88 views
How i can preview richtext? Thank
Boby
Telerik team
 answered on 16 Mar 2011
1 answer
93 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.3K+ 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
112 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
125 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
78 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
430 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
90 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
4 answers
191 views
Hello,

we have the following problem on a radgridview that is bound to an observable collection of entities (entities of EF class):

After binding the collection to the grid the date is shown with its time portion just as expected. Problem is, when setting / edting the date (either manual or via the picker) the time is being re-set to 00:00:00, which can't be changed. When manually trying to specify the time it is again re-set to 00:00:00. Is there a way to edit the time portion as well, i.e. to set the time somehow (this feature would be crucial for us!!!!).

Our xaml is pretty standard:

            <telerik:RadGridView x:Name="radBerthingSlots" 
                AutoGenerateColumns="False" 
                MaxHeight="500" 
                IsEnabled="True" 
                ItemsSource="{Binding BerthingSlots}">  
                <telerik:RadGridView.Columns> 
                    <telerik:GridViewDataColumn Header="High Tide Date" DataMemberBinding="{Binding HighTideDate}" />
                </telerik:RadGridView.Columns> 
            </telerik:RadGridView> 

I tried a couple of things including adding a timespan property to our EF class to circumvent the issue, but I have given up now (spend already 2 days on this).

Please advise....

Regards...

M
Joel Palmer
Top achievements
Rank 2
 answered on 15 Mar 2011
1 answer
113 views
Hi,

what I have: a simple gridview with list of patients.
what I need to do: export the selected patients to excel, with details that are not in the gridview, like their measurements, activities and a graph generated by the telerik chart control. 
so my question is: how should I do this, taking advantage of the export features of the gridview?

Thanks!
L
Ivan Ivanov
Telerik team
 answered on 15 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?