Telerik Forums
UI for WPF Forum
5 answers
529 views
Hi All,

I was able to put checkbox for all combobox items. Now I need to have a SelectAll checkbox as the first option inside the combobox. I was successful in that as well. But I would like to know the currently selected checkbox item from the Method bounded to the Command of the checkbox otherwise the SelectAll option will not work as expected.

<

 

DataTemplate x:Key="RowItemDataTemplate">

 

 

 

<CheckBox x:Name="rowCheckbox" Margin="2,2"

 

 

Command="{Binding Path=DataContext.RowCheckCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}"

 

 

Content="{Binding Path=RowName}"

 

 

IsChecked="{Binding Path=IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />

 

 

 

</DataTemplate>

 


<

 

ComboBox Grid.Row="0" Grid.Column="2" x:Name="cboRows" Style="{DynamicResource ValidatingComboBox}"

 

 

ItemsSource="{Binding RowItems}"

 

 

ItemTemplate="{StaticResource RowItemDataTemplate}"

 

 

Text="{Binding SelectedRowsText}"

 

 

IsEditable="True" Margin="5,0,0,0"

 

 

IsReadOnly="True"

 

 

MaxDropDownHeight="140"/>

 


public

 

ICommand RowCheckCommand

 

{

 

get

 

{

 

if (_rowCheckCommand == null)

 

{

_rowCheckCommand =

new RelayCommand(

 

param => RowCheckBoxChanged(),

param =>

true

 

);

}

 

return _rowCheckCommand;

 

}

}


public

 

void RowCheckBoxChanged()

 

{

NotifySelectedRowsText();

}


Is there a way, that i can pass the currently selected checkbox item to RowCheckBoxChanged() method?
I had been doing this in wpf combobox. Since i can't find any solution to my problem, i was thinking to shift to Telerik combobox, if it can solve my problem.

Any idea/suggestion will be greatly appreciated.

Regards

SVP
gans
Top achievements
Rank 1
 answered on 29 Mar 2012
1 answer
231 views
I have a grid on a screen that ShowInsertRow is set to true.  When the user can add data and when they leave that row I have a RowEditEnded method that inserts the data into the database.  If the insert fails or they do not add any new data  nothing new is inserted into the database, but the row on the screen is still there.  Is there a way to remove that new row if no data was entered.
Frank
Top achievements
Rank 1
 answered on 29 Mar 2012
2 answers
119 views
Hello All,

I have a RadGridView with two columns of Checkboxes.  If the user Checks the Checkbox in Column B, I would like to also have the Checkbox in Column A automatically check itself.  Is this possible?  I've been playing around in the code for the Checkbox_Click event, but have not had much success.  Any help would be much appreciated. 

Thanks in advance,
Kiet
Kiet
Top achievements
Rank 1
 answered on 29 Mar 2012
2 answers
155 views
Hi all,

I have a problem with custom headercellstyle and applied theme.
I generate grid columns in runtime, and affect a style on header cell to set tooltip property.

var headerStyle = new Style(typeof(GridViewHeaderCell));
headerStyle.Setters.Add(new Setter(GridViewHeaderCell.ToolTipProperty,
new Binding("HeaderToolTip") { Source = columnModel }));
column.HeaderCellStyle = headerStyle;

My grid use the metro theme but header are using the default theme (office black). If I comment previous code snippet, header use the metro theme.
What am I doing wrong?

Aurélien
Top achievements
Rank 1
 answered on 29 Mar 2012
3 answers
148 views
With the RadChart control, it is possible to get hold of the plot area and enable disable custom grid lines to identify mouse cursor position.

I want to acheive the same thing with the RadChartView.  Is it possible.  I know you have the "ChartTrackBallBehavior" facility, but I want to be able to control how it works.  e.g. I want it to remain when mouse not over the chart, and would prefer its operation to run a mouse action such as RightMouseDown.

Thanks
Craig

Evgenia
Telerik team
 answered on 29 Mar 2012
3 answers
109 views
When I set this number greater than the amount of items in the carousel, nothing shows up.  The carousel controls show, just none of the items.  I set the number to what looks good, but then when users delete data, the items are gone.  Any ideas?

Thanks,
David Ribb
Maya
Telerik team
 answered on 29 Mar 2012
1 answer
93 views
Hello,

My business object properties have a attribute DisplayIndex and I want to set the order of my datafields to this displayindex.

DisplayIndexAttribute displayIndexAtt;
 if (property.TryGetAttribute<DisplayIndexAttribute>(out displayIndexAtt))
            {
        
                e.Order = displayIndexAtt.index;
            }

This is working fine. But the problem is that not all properties have the displayindex attribute, so for some properties e.Order is null. I expected that these properties are displayed at the end of the dataform, but instead they are at the beginning.

Is there a way to change this behavior in the way that the properties without an explicit order will be at the end of the Dataform?
Pavel Pavlov
Telerik team
 answered on 29 Mar 2012
1 answer
120 views
Hello!

I have problem. I placed RadNumericUpDown control and set its value to 15 for default.
Now, I added event for ValueChanged:

private void FVSdValue_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
   {
       HSdValue.Value = 0.2 * FVSdValue.Value;
   }

When I start application I'm getting NullReferenceException - the object couldn't be found (Object reference not set to an instance of an object.)

This happens also for other controls. What am I doing wrong?

The HSdValue is also RadNumericUpDown, located below the FVSdValue.
Konstantina
Telerik team
 answered on 29 Mar 2012
1 answer
77 views
Hi,
I need to use a WPF TimeBar control within a legacy winforms application (as there isnt one in the winforms suite).
Is it possible to simply host your WPF TimeBar control inside an ElementHost on a winforms form ?
If so, would there be any limitations or things that may not work as anticipated ?

Thanks,
S.
Evgenia
Telerik team
 answered on 29 Mar 2012
3 answers
180 views
Hi,

I had found an issue with WPF TimePicker control for .Net 4.0.
When I type in 130 in the time field, it gets converted to 1PM. Its coz it considers it as 13 and 0.So it becomes 1:00PM instead of 1:30AM.
Similary 230 converts to 11PM, thinking its 23:00hrs.
This issue works fine in ASP.Net control (ie:130 gets converted to 1:30AM). I had tried with the demo version of the latest release.

Is this a bug?

Thanks
Konstantina
Telerik team
 answered on 29 Mar 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?