Telerik Forums
UI for WPF Forum
5 answers
320 views
Hi,
I want to make the connectors gradient colored, from source to target. I can't figure out how to do it by setting Stroke style with GradientBrush. Can you help me?

here is what i tried(i know it works for left to right only):
<Setter Property="Stroke">
      <Setter.Value>
           <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
           <GradientStop Color="DimGray" Offset="0.0" />
           <GradientStop Color="Black" Offset="1" />
       </LinearGradientBrush>
     </Setter.Value>
</Setter>


 Thank you,
Sarper
Francois Vanderseypen
Top achievements
Rank 2
 answered on 17 Oct 2012
3 answers
141 views
I'm having trouble viewing telerik controls in blend, sometimes they are visible and can be edited through the wysiwyg editor, other time they are invisible and can only be manipulated via the code.  In either case, when i run the application they appear and function correctly, but now that i have some edits i need to make my not being able to see them in the editor is making things difficult.  Specifically, right now I am unable to see the RadTabControl and RadTabItems, and all the elements contained within.  Any thoughts?  Thanks!

Matt.
Stefan
Telerik team
 answered on 17 Oct 2012
2 answers
323 views
I have created a RadComboBox and bound the data to a Collection of strings. I wanted to add a new item to the list when "New" item in the RadComboxBox is selected. i.e. RadComboBox will be set to editable when "New" item is selected and the entered text has to be add to the existing list only when Enter pressed or LostFocus. Could you help me to achieve this ? 

XAML code to create the combobox with databinding 
<telerik:RadComboBox x:Name="SettingsNameList" ToolTip="Settings" Width="100" Height="25" ItemsSource="{Binding SettingsCV}" IsEditable="{Binding AddNewSetname,Mode=TwoWay}" Margin="120,5,550,0" Text="{Binding Path=NewSetName,Mode=TwoWay}" />

C# code to make the radcombobox editable and read the entered value,

SettingsCV.CurrentChanged += new EventHandler(SettingsCV_SelectedItemChanged);
 
private void SettingsCV_SelectedItemChanged(object sender, EventArgs e)
        {
            string item = SettingsCV.CurrentItem as string;
            if (item != null)
            {
                strDefaultSetName = item;
                if ("New" == strDefaultSetName)
                {
                    bEditable = true;
                    AddNewSetname = true;
                    //strNewSetName = "Default";
                                        //Raise property to update the UI
                    NotifyPropertyChanged("AddNewSetname");
                }
            }
        }

C# code to add the entered text to Collection

public string NewSetName
        {
            get
            {
                return strNewSetName;
            }
            set
            {
                strNewSetName  = value;
                strNewSetName.Trim();
                m_strSettingsCollection.Add(strNewSetName);
                SettingsCV = new ListCollectionView(m_strSettingsCollection);
                NotifyPropertyChanged("SettingsCV");
            }
        }

It would be good if i can set the default text when the combo box is editable.

Yana
Telerik team
 answered on 17 Oct 2012
1 answer
130 views
For easy coding we would like to use the DataGridViews feature DataLoadMode="Asynchronous" binding directly to the query.
Using this we do not need to manually code async EF I/O, the application does not block and by Binding the windows IsEnabled to the grids IsDirty we can easily block user input on the busy window.

If we use an ObservableCollection the I/O happens outside of the grid and thus is not async.
grid.ItemsSource = ObservableCollection(qry)

Without using an ObservableCollection I cannot get adds and deletes working.
For instance using grid.ItemsSource.Remove(grid.SelectedItem) plus db.RemoveObjet() seems not to work.

Is there an example for this scenario somewhere?

Peter Meinl
Top achievements
Rank 1
 answered on 17 Oct 2012
5 answers
120 views
Hi

Do you have any plans for including autoscroll-paging behavior in the WPF GridView ?
I am currently (re)investigating the possibilities of the WPF controls but this is something I definitely need.

We want:
- GridView connected to a DataServiceDataSource (working)
- GridView without Pager component (working)
- GridView loads only n items from datasource, based on Item RowHeight and GridView Height (not working)
- When vertical scrolling GridView loads n more items from datasource (not working)

Thanks
Vlad
Telerik team
 answered on 17 Oct 2012
4 answers
259 views
It appears that this control does not accept the DASH (-).
When using this for address type fields, the user would be required to enter a dash between street number address range.
Any way around this?
Tina Stancheva
Telerik team
 answered on 17 Oct 2012
1 answer
109 views
Hi

We are working on a project(WPF Client) and using RadSchedulerView that we need to define working days and for each working day needs to be different working hours?

Is any of these possible?

Best regards
Burim
Ventzi
Telerik team
 answered on 17 Oct 2012
3 answers
289 views
See attached image.

I am using most of RadDocking right out of the box, but have Themed the RadDocking and RadPaneGroup to Office_Blue in XAML using:

<Style TargetType="telerik:RadDocking">
        <Setter Property="telerik:StyleManager.Theme" Value="Office_Blue" />
    </Style>
    <Style TargetType="telerik:RadPaneGroup">
        <Setter Property="telerik:StyleManager.Theme" Value="Office_Blue" />
    </Style>
However, the AutoHideArea is wider than it needs to be and looks bloated and I would like to customize the "Toolbox" tab to be vertically longer.  I have searched and searched for info on how to do this but have come up empty.

Any help would be appreciated.
Masha
Telerik team
 answered on 17 Oct 2012
4 answers
346 views
Hi,
I have a button with a ListBox control as part of its dropdown content. The content also contains 'ok' and 'cancel' buttons to allow the user to dismiss the dropdown when they are done. I have run into a number of problems trying to get this to work. I don't know whether they are bugs or whether I should be doing this another way so I look forward to any comments that you may post.

Here they are:

1. When a listbox item is selected then the dropdown content closes. This happens because RadGallery.cs registers a handler that unconditionally closes the dropdown when a listbox selection changes. This seems like the right thing to do since there needs to be a way for the dropdown to close but inhis case it is undesirable since I have buttons that serve that function. What I am wondering is if an attached property could be created that could give the handler some direction about whether it should close the dropdown. I would then be able to attach this property to my listbox and the handler would know that it shouldn't close the dropdown.

2. I got around the 'listbox selection closing' problem by setting RadRibbonDropDownButton.KeepOpen = true but this brings on the next issue. 'KeepOpen' appears to work not by preventing the dropdown content from closing but by reopening after its been closed. This isn't obvious when interacting with the control but if you look at the call stack then you'll see that there is a call to 'IsOpen = false' that is quickly followed by a call to 'IsOpen = true'. The side effect of this is that every time a listbox item is selected then the 'DropDownOpening' event is raised. This is undesirable because I have some state variables that I would like to set only when the dropdown content is first displayed. My expectation was that this event would get called only when the drop down was opening and not additionally whenever a listbox item was selected.

3. This one is really more of a question followed by what may be a request. In order for my 'ok' and 'cancel' buttons to close the dropdown programmatically they must determine the RadRibbonDropDownButton control that the dropdown belongs to but I could find no straightforward way to do this other than giving the button a name and then referring to that name in the handlers. What I'd really like to do is to get this to work in a more generic way since my desire is to move the 'ok' and 'cancel' button handlers into a class which I would then use as a base class for other dropdown content. So the question is whether there is a way to do this that I am missing. If there is none then I have a request, which is for the RadRibbonDropDownButton to attach a property to the topmost visual of its dropdown (a popup I suppose) that indicates the RadRibbonDropDownButton that owns the dropdown.
Thanks and best regards,
Pete
Mohd
Top achievements
Rank 1
 answered on 17 Oct 2012
1 answer
328 views
Hi. 

<telerik:GridViewDataColumn DataMemberBinding="{Binding ActVoltage,TargetNullValue=NA}" DataFormatString="0.###" Header="Actual Voltage"/>

Normal output is that I want this column to only show three decimals. However, when the underlying value is null, I want it to show the text "NA". 
It seems that I can't have both. When I included the formatstring, "NA" stopped showing up. I understand why, but not how to solve it.

The underlying type is nullable double.
Dimitrina
Telerik team
 answered on 16 Oct 2012
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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?