Telerik Forums
UI for WPF Forum
1 answer
83 views
I have a GridView where the GridViewColumns are created dynamically. We now have data in a column that can sometimes be null. I have kind of figured out how to use the Converter from the binding to change the value based on the value coming in - but this did not fix it. When I click on the filter It throws the error that must be of type Int64.

Here is the code that builds the column:
GridViewDataColumn col = new GridViewDataColumn();               
                col.Header = column.Name;               
                col.DataMemberBinding = binding;               
                col.DataType = column.DataType;                               
                col.IsSortable = true;
 
                if (column.DataType == typeof(Int64))
                {
                    col.DataMemberBinding.Converter = new LongConverter();
                }
 Here is the converter: 
public class LongConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            //Int64? convertedValue = (Int64)value;
            //if (convertedValue.HasValue)
            //{
            //    return convertedValue.Value;
            //}
            //else
            //{
            //    return "";
            //}
 
            return "N/A";
        }
 
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value.ToString().ToUpper() == string.Empty)
            {
                return new Int64();
            }
            else
            {
                return Int64.Parse(value.ToString());
            }
        }
    }
You can see I commented all most of the code out on the converter. I was just trying to get it to work. The value was coming back as the type - so I'm not sure whats going on there.

So I really have to issues here:
1) How to properly set the converter on the column datamember binding.
2) Why does the filter still recognize the null value even though I set the value to "N/A"
Dimitrina
Telerik team
 answered on 01 Oct 2013
3 answers
90 views

I have a grid that we need to bold the text when the value changes...the code Im using is in the CellEditEnded event handler:

void GridView_CellEditEnded(object sender, GridViewCellEditEndedEventArgs)
{
if(e.NewData != e.OldData)
{
e.Cell.FontWeight = FontWeights.Bold;
}



This works fine...BUT when I switch rows the style goes back to its original style. My use case requires that ALL changed values remain bolded.

How can I achieve this?

Thanks,
Ron
Dimitrina
Telerik team
 answered on 01 Oct 2013
1 answer
178 views
Hey guys,

I have functionality to dynamically change themes via StyleManager.ApplicationTheme. Whenever the user changes themes, there is a roughly 20~30mb spike in memory usage that never seems to get garbage collected. Any idea on what would cause this?

The following code is used to dynamically change the theme:
public Theme ThisApplicationTheme
{
   get { return StyleManager.ApplicationTheme; }
   set
   {
      StyleManager.ApplicationTheme = value;
      var binding = new Binding("ThisApplicationTheme") { Source = this, Mode = BindingMode.OneWay };
       foreach (Window window in Application.Current.Windows)
       {
            foreach (var element in GetWindow(window).ChildrenOfType<FrameworkElement>().ToList())
            {
                 element.SetBinding(StyleManager.ThemeProperty, binding);
            }
       }
       Application.Current.MainWindow.SetBinding(StyleManager.ThemeProperty, binding);
   }
}

Thanks.
Pana
Telerik team
 answered on 01 Oct 2013
1 answer
143 views
Hi,

I have a chart like the one in the image,the code is the next:

<telerik:RadChart Name="RadChartDemo" Grid.ColumnSpan="3" Content="" Margin="10" Grid.Row="2" BorderThickness="0">
           <telerik:RadChart.DefaultView>
               <telerik:ChartDefaultView>
                   <telerik:ChartDefaultView.ChartArea>
                       <telerik:ChartArea>
                           <telerik:ChartArea.ZoomScrollSettingsY>
                               <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                           </telerik:ChartArea.ZoomScrollSettingsY>
                           <telerik:ChartArea.ZoomScrollSettingsX>
                               <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                           </telerik:ChartArea.ZoomScrollSettingsX>
                       </telerik:ChartArea>
                   </telerik:ChartDefaultView.ChartArea>
                   <telerik:ChartDefaultView.ChartTitle>
                       <telerik:ChartTitle Content="Tons Per Day" HorizontalAlignment="Center"/>
                   </telerik:ChartDefaultView.ChartTitle>
               </telerik:ChartDefaultView>
           </telerik:RadChart.DefaultView>
       </telerik:RadChart>

And I create the series using SeriesMapping and ItemMapping. When I run the application I can see both scroll bars but it seems to be disable, I can't scroll nor zoom the chart.

Do I have something missing?

Regards,

Alberto
Petar Kirov
Telerik team
 answered on 01 Oct 2013
0 answers
98 views
Hi
Is there any way to assign tool-tip to text in RadRichTextBox.

I had tried by assigning Cross-reference bookmark by using editor.InsertBookmark(...) and editor.InsertCrossReferenceToBookmark(... , ... , ..) method. Bookmark is implemented but there is tool-tip is missing.

So how to enable tool-tip which normally shows in MS word.

Any alternate ways?

Regards
Sopan Vaidya
Sopan
Top achievements
Rank 1
 asked on 01 Oct 2013
4 answers
187 views
Hi,

I have a RadPropertyGrid with several lines.
I Looks somehow like this:
<telerik:RadPropertyGrid Item="{Binding TheSetting}" SearchBoxVisibility="Hidden" AutoGeneratePropertyDefinitions="False" SortAndGroupButtonsVisibility="Collapsed" SearchInNestedProperties="False">
    <telerik:RadPropertyGrid.PropertyDefinitions>
        <telerik:PropertyDefinition GroupName="Allgemein" OrderIndex="0" Binding="{Binding BaseSearchPath, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" Description="Basispfad zur Suche der CSV Dateien" DisplayName="Basispfad" />
        <telerik:PropertyDefinition GroupName="Allgemein" OrderIndex="1" Binding="{Binding Map_FZeit, ValidatesOnDataErrors=True}" Description="Zuordnung Messwertzeit" DisplayName="Messwertzeit" />
        <telerik:PropertyDefinition GroupName="Allgemein" OrderIndex="2" Binding="{Binding Map_ZNr, ValidatesOnDataErrors=True}" Description="Zuordnung Messwertzeile" DisplayName="Messwertzeilennummer" />


When I select a TextBox with the mouse the row is not selected.
This results in a strange (wrong) look.

Example (for the code above) - I select the "Messwertzeit" Row Header with the mouse.
The Description shows the correct value.
Then I press TAB -
-- First strange thing - the "Basispfad" TextBox (one line above) gets the focus - not the "Messwertzeit" Textbox as expected.
-- Second strange thing - the description pane still shows the "Messwertzeit" description (not the one of "Basispfad" where I'm editing).
-- Third thing (only a problem with the description) - TAB brings me to the next textbox
There is no way (without using the mouse - I tried TAB - shift TAB) to select the "RowHeader" - to get the correct description.

Is this "normal" and desired?
Can I get a description only using the mouse?

Manfred

ManniAT
Top achievements
Rank 2
 answered on 30 Sep 2013
1 answer
95 views
I found an issue with RadDatePicker. The scenario is that When I select invalid date, RadDatePicker throws an Error and when I move to next control, the invalid date along with the error message disappears. I want that invalid date along with the Error to be displayed even after I moved to next control. Is there a solution?
Yana
Telerik team
 answered on 30 Sep 2013
1 answer
136 views
Is there a way to prevent the RadRibbonView Title from overlapping the Min/Max/Close buttons when resizing the application window to a smaller width?  See attached image for the current look.

Thanks,
Dan
Pavel R. Pavlov
Telerik team
 answered on 30 Sep 2013
1 answer
62 views
Hello,

I've applied the Windows8Touch theme from the implicit styles RDs and noticed that when dragging to adjust the beginning of an appointment, the time cue that appears does not change while adjusting the appointment's start time.   The time cue does change when adjusting the appointment's end time.

Please advise.
Masha
Telerik team
 answered on 30 Sep 2013
0 answers
81 views
Hi,

I am trying to implement the cross-reference functionality same in MS word.

But in the RichTextBox, after adding the cross reference, the text not allow to click and redirected to bookmark location.

How to do this task.

Help....

Regards
 Sopan Vaidya
Sopan
Top achievements
Rank 1
 asked on 30 Sep 2013
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
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?