Telerik Forums
UI for WPF Forum
1 answer
106 views
I'm trying to set merge field values manually and I can't get anything to work, or find anything indicating how I can do this directly.  Here's an example of my code:

 

                        var span = new Span("Testing");
                        var fragment = DocumentFragment.CreateFromInline(span);


                        start.Field.SetFragmentByDisplayMode(FieldDisplayMode.Result, fragment);

 

start.Field is a MergeField, and basically other than the end result being blank.  When I look at the MergeField objects properties after making this call I see that the ResultFragment shows as empty.  What am I missing here?  If this won't work is there some way to just remove the field and insert my text? 

I realize the documentation is angled towards mail merge but my situation doesn't make that feasible.

Matt
Top achievements
Rank 1
 answered on 03 Jul 2016
1 answer
96 views

hiiii,, i want to get the value of checkboxcolumn in datagrid wpf

i try this code

if (item.boolCol == true)
              {
                  MessageBox.Show("fail");
              }
              else
              {
                  MessageBox.Show("success");
 
              }

but don't take the changed value but take the same value of the my itemsourse 

Ahmed
Top achievements
Rank 1
 answered on 03 Jul 2016
1 answer
105 views

Hi,

I am using RadRichTextBox to load .docx file. In my file, there are some headings and I would like to show collapse and expand icon as in MS Word https://support.content.office.net/en-us/media/a30ff5ac-4df5-4a37-9f03-4abaa5c16ac7.png. 

I have tried to open with Demo control but cannot see them.

Do RadRichTextBox support these functions? 

 

Thanks

 

Tanya
Telerik team
 answered on 01 Jul 2016
4 answers
363 views

Hi, I have used a ScatterLineSeries inside a RadCartesianChart with both HorizontalAxis and VerticalAxis set to LinearAxis.

The y-value shows probability of something for an elapsed time, so the only meaningful range for y-axis is 0 to 1, thus i set Minimum=0 and Maximum=1

Multiple consecutive points have y=1, so there should be a horizontal line at the very top of the graph. But is seems it will be completely cut away and not visible. I guess it makes sense if thickness is based on (Maximum - y).

I've tried working around by setting those values to y=0.99 and that work. I've also tried setting Maximum=1.01 and that also work.

However the first workaround gives big problems if i want to display the actual data, and the second workaround does not work well with minimum value.

I could set minimum value to -0.01, but then the first label will show value -0.01, and second label will show 0.09, and then 0.19 etc.

Any idea how I can solve this?

 

Philip
Top achievements
Rank 1
 answered on 01 Jul 2016
16 answers
641 views
How do I hide the week number for the RadDatePicker WPF control?
Jong
Top achievements
Rank 1
 answered on 30 Jun 2016
2 answers
921 views

I am running into this issue: "Startxref keyword cannot be found". 

I was referencing the information in the link below, and it did not solve my problem. My PDF does not have a blank space at the end, and using the code in the link didn't make the error go away. What other possible causes for this issue are there? I am unable to provide the document that is having issues because the document is confidential. 

http://www.telerik.com/support/kb/winforms/pdf-viewer/details/notsupportedexception-startxref-keyword-cannot-be-found-when-loading-pdf-file-in-radpdfviewer-for-winforms

Thanks,

Bryand

Bryand
Top achievements
Rank 1
 answered on 30 Jun 2016
5 answers
933 views

Hello Telerik,

 

I am trying to pre-group my Gridview on the start of the page (page load)

so i saw a very interesting documentation you have called "programmatic grouping", which has the following block of code i would need to use inside my XAML

<telerik:GroupDescriptor Member="Country"
SortDirection="Ascending"
DisplayContent="Country Group" />

 

My question is: where exactly is this GroupDescriptor? It doesn't seem to recognize the tag at all. Can you provide me a sample or something that uses it? I couldn't find one in your demos tool.

 

thank you.

Dilyan Traykov
Telerik team
 answered on 30 Jun 2016
1 answer
1.2K+ views

I'm using MVVM with property "IsBusy", set the DataContext to this property and change it when needed.

The problem is that in some cases the BusyIndicator (BI) is not visible.

Here is how the BI configured:

<telerik:RadBusyIndicator x:Name="CashierBusyIndicator" IsBusy="{Binding IsBusy}" >                 <Style TargetType="telerik:RadBusyIndicator">

The view model seems like that:

public class CashierStationMainWindowModel : INotifyPropertyChanged
    {
 
        private bool _IsBusy;
 
        public bool IsBusy
        {
            get
            {
                return _IsBusy;
            }
            set
            {
                _IsBusy = value;
                OnPropertyChanged("IsBusy");
            }
        }
 
        #region INotifyPropertyChanged implementation
        public event PropertyChangedEventHandler PropertyChanged;
 
        private void OnPropertyChanged(string propertyName = "")
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion
    }

The method that change the BI is:

protected void EnableDisableBusyIndicatorAsync(bool enable)
    {
CashierStationMainWindow.GetInstance().CashierStationWindowModel.IsBusy = enable;    
 }

Simple not working example, this block is a button press implementation:

EnableDisableBusyIndicatorAsync(true);
 
System.Threading.Thread.Sleep(5000);
 
EnableDisableBusyIndicatorAsync(false);

Some more info:

* The BI located at RadWindow object.

* The not working block run from a RadPage located inside the RadWindow

* Other RadPages call the EnableDisableBusyIndicatorAsync method and it works fine.

 

Thanks in advanced,

Eliran

 

Nasko
Telerik team
 answered on 30 Jun 2016
2 answers
560 views

Hi there,

I use a RadGridView with ColumnGroups and I just can't find out how to make the column group headers as well as the regular column headers height smaller than the default size. My font size is quite small and the headers are using up much more space than required. If I increase the font size to let's say 30 the headers grow in height accordingly but shrinking only works to some point. Looks like there is some min height configured anywhere but I can't find it.

If I try to adjust the row header height through the HeaderRowStyle and set the height to some smaller value, the headers just get cut off which is not what I want... I use the Windows 8 Theme by the way...

Thanks for any kind of help on this topic.

Marcel

Stefan Nenchev
Telerik team
 answered on 30 Jun 2016
2 answers
156 views

Hello,

You can see a screen about my window contening RadGridViews. So, I've a got a line above each header of each GridView, and I don't found how I can hide it.

Can you help me ? Thanks.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 30 Jun 2016
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?