Telerik Forums
UI for WPF Forum
1 answer
125 views
Hi
I was trying to set margin of RadAutoCompleteBox by override the default style of the control. If I'm doing it this way, the margin works as well. But if I'm searching for some items, no entries are shown. If I'm setting margin explicite on the control it self it works perfectly.
Do you know how to prevent this issue?

Here my Style:
 
<Style x:Key="RadAutoCompleteBoxStyle" TargetType="{x:Type telerik:RadAutoCompleteBox}"><br>        <Setter Property="IsTabStop" Value="True"/><br>        <Setter Property="TextBoxStyle"><br>            <Setter.Value><br>               ....<br>            </Setter.Value><br>        </Setter><br>        <Setter Property="BorderBrush" Value="#FF848484"/><br>        <Setter Property="BorderThickness" Value="1"/><br>        <Setter Property="Background" Value="White"/><br>        <Setter Property="Padding" Value="0,0,3,3"/><br>        <Setter Property="Cursor" Value="IBeam"/><br>        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/><br>        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/><br>        <Setter Property="SnapsToDevicePixels" Value="True"/><br>        <b><Setter Property="Margin" Value="5,2"/></b><br>    </Style>


And here the Control:
<telerik:RadAutoCompleteBox Grid.Row="0" Grid.Column="1"
                                    SelectionMode="Single"
                                    ItemsSource="{Binding LandItems}"
                                    SelectedItem="{Binding SelectedLand}"
                                    DisplayMemberPath="LanISOCodeBezeichnungConcat" TextSearchMode="Contains"
                                    Style="{DynamicResource RadAutoCompleteBoxStyle}"/>

The Issue looks like this:


That's how it should look like:


Thanks for your help


Michael

Yana
Telerik team
 answered on 12 Sep 2013
0 answers
59 views

Hy,

I’m using c# & WPF to preview a data having as a first column a Boolean ,in my case the radGridView display this column as a checkbox
even the header of this column [every thing is good right now :)] 

The problem is that I can't figure out how to attach an event to the header checkbox to selec/unselect all lines

best regards

Yahya
Top achievements
Rank 1
 asked on 11 Sep 2013
1 answer
154 views
Hi there, 

I am trying to get familiar with this control and how to style it as per requierements

What is the best approach to get the mockup attached?

I mean, what events, properties and methods whould I take advantage from?
If you have any sample code, it would be great as well, but point me in the right direction will be a great starting point

Thanks in advance

Fernando

Kalin
Telerik team
 answered on 11 Sep 2013
1 answer
109 views
Hello, I'm a beginner.
If you don't mind, could you post on EntityFrameWork 5.0 Database First  Simple Project Source?
Please give me a source to understand ScheduleView.
Thank you.








Kalin
Telerik team
 answered on 11 Sep 2013
4 answers
110 views
Hi,

before i save a new appointment in my database, i have to check different issues. This i do in the "AppointmentCreated" Event.
If the Input is wrong i have to go back to the AppointmentDialog. The Problem is, that the Appointment is created an the Dialog
is closed. e.Cancel is not known.

How do i let the Dialog stay open?

Thanks
Rene
ITA
Top achievements
Rank 1
 answered on 11 Sep 2013
4 answers
186 views
I have a databound listbox that is bound to a class call Animal.   On another form is several databound listboxes that are different types of animals.  All listboxes use the Animal class.   So what I want to do is when a user grabs an Animal class from the source listbox and drags it over to the form, depending on Animal.Type, only the listbox named the Animal.Type can accept the drop.

I thought maybe I could do this by using DragEnter.  But I can't seem to get the business object out of the data object.  I thought if I could, I could check it, and if it matched the Listbox name, I would enable drop.  If not, I would disable drop on that listbox.  I would do that to all of them.

Is this possible? I have been wrecking my brains and cannot figure out how to get the data out and what property to put it in.  All the examples seem to talk about drag/drop strings.  I have full blown bound objects.

So it is conditionally dropping depending on a property of the object being dragged.
Nick
Telerik team
 answered on 11 Sep 2013
4 answers
561 views
I have a GridViewComboBoxColumn inside a RadGridView. The GridViewComboBoxColumn is bound to a collection of Objects. I need to display different things for the selected option vs the dropdown options. I would like to display one property of the Object in the selection box (object.Name), and another property in the drop down (Object.Description).

I accomplished this in a RadComboxBox before by doing the following:
<telerik:RadComboBox Grid.Row="2" Grid.Column="1" telerik:StyleManager.Theme="Windows8Touch" Margin="5 3 5 0" MaxDropDownHeight="1000"
                     ItemsSource="{Binding MultiCropTypes}" SelectedValue="{Binding SelectedMultiCropTypeId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"
                     Tag="{Binding MultiCropTypes}" SelectedValuePath="PkMultiCropTypeId">
    <telerik:RadComboBox.SelectionBoxTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Description, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" TextTrimming="CharacterEllipsis" />
        </DataTemplate>
    </telerik:RadComboBox.SelectionBoxTemplate>
    <telerik:RadComboBox.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" TextWrapping="Wrap" Width="900" Margin="0,0,10,0" />
        </DataTemplate>
    </telerik:RadComboBox.ItemTemplate>
</telerik:RadComboBox>

I can't do this for a GridViewComboBoxColumn because there is no "SelectionBoxTemplate" property.

Is it possible to get the same behavior in a GridViewComboBoxColumn? Any help would be greatly appreciated. Thank you.
Yoan
Telerik team
 answered on 11 Sep 2013
1 answer
166 views
Hi,

i use your OrgChart example which work fine. Now i want to place a button on each node. This button is placed in the
<telerik:RadFluitContentControl.LargeContent> next to the toggle button.

On Click i want to open a database mask for this node. How do i get the selected node in my Click-Event?

Thanks
Best Regards
rene
Petar Mladenov
Telerik team
 answered on 11 Sep 2013
3 answers
212 views
Hello,

Is it possible to use the AggregateFunctions CountFunction with AutoGenerateColumns set to True?  We have a datasource we would like to connect to without defining each columns in xaml or code.  In every example I've always seen the AutoGenerateColumns set to false.  As it stands, if I do the same I will either endup with a "blank" column or duplicate.

Kind regards
Dimitrina
Telerik team
 answered on 11 Sep 2013
1 answer
136 views
Hello, I'm just wondering how you guys achieved this feature in the Annotations Chart demo. It seems like that part of the demo is not in the sample code, so it would be interesting to see your approach for that feature (Picture attached).

Please let me know. Thank you.
Carlo
Top achievements
Rank 1
 answered on 10 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?