Telerik Forums
UI for WPF Forum
1 answer
359 views
I have a datatble with 2 columns:
1. Name
2. IsEnabled
I want to bind each toggle button's IsEnabled to DataTable
for example if a toggle button's content is "Test" and there is row in
datatable with {Test,True}, this radio button's IsEnabled marks as True.
Martin Ivanov
Telerik team
 answered on 19 Dec 2017
8 answers
481 views
Does the WaterMarkTextBox work for passwords too? If so, do you have any examples?

For example, a standard authentication dialog may have user name and password prompt. We would like to be able to use a watermark text box both for fields, so that the password characters are not visible when typing.
Kalin
Telerik team
 answered on 18 Dec 2017
1 answer
87 views

Hello,

I have been digging through the documentation and I am unable to find any information on the ability to include the header/row values when copying the cells from a pivot grid.  The actual values copy in to excel just fine, but I would like to include the header/row values.

Would someone be able to point me in the right direction?  Thank you.

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Dec 2017
2 answers
1.3K+ views

Hey guys,

since i dont get it to work since 3 hours now i registered here in the hope you have a solution.

I have a GridView in my View:

<tel:RadGridView ItemsSource="{Binding CompareTablesResultView, Mode=OneWay}" ColumnWidth="Auto" x:Name="grdComparedData"
                         IsFilteringAllowed="False" CanUserReorderColumns="False" CanUserFreezeColumns="False"
                         CanUserSortColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False"
                         tel:StyleManager.Theme="Windows7" DataLoaded="grdComparedData_DataLoaded">
        </tel:RadGridView>
        <tel:RadDataPager x:Name="DataPager" Source="{Binding Items, ElementName=grdComparedData}"
                          PageSize="30"  Grid.Row="1" tel:StyleManager.Theme="Windows7"/>

The GridView Itemssource is bound to a DataView Property in my ViewModel.

The DataView is simply the .DefaultView of the Datatable i want to display.

With the data in my datatable i did some validation. In my validation i receive information which cells are invalid (rownumber and columnnumber/columnname).

Now my target is to set the style for the cells that are invalid (foreground color to red). But i cant get it working to get the GridViewCell based on the infos if have.

In some forum posts i saw code like MyGridView.Rows(index).Cells(anotherIndex) but the RadGridView dont have an accessable Row property for me.

I also tried some other things to get the cell like to get access the .Items Property or some attempts with the .ChildrenOfType<> method but nothing worked for me.

Is there any way to set the Cell-Style for a specific cell when bound to a DataTable or DataView? I cant use a cellstyle selector cause its not the value of the cell itself that is invalid, its only invalid in the context of row and column. The same value can be valid in another row or in another column.

You guys have any ideas?

Could i mark the DataView Cell in any way that i could react from a cellstyle selector on it or something like that?

Stefan
Top achievements
Rank 1
 answered on 18 Dec 2017
3 answers
164 views
I would like to be able to create a bar chart dynamically and assign the color of the series based on the selected slice of the pie chart.  I am using the ChartSelectionBehavior_SelectionChanged event but I am not sure where to get the color of the pie slice from the ChartSelectionChangedEventArgs provided by the event.  I am using the Windows8 palette for my pie chart.
Martin Ivanov
Telerik team
 answered on 18 Dec 2017
14 answers
568 views
When I drag the scrollbar in a RadGridView, OnDragInitialize is called. I can't find anything in the DragInitializeEvenArgs that could tell me whether the user is dragging the rows (in which case I am interested) or dragging the scrollbar (in which I want to ignore it). Ditto for the sender (the RadGridView). Its IsScrolling property is set to false whether I am scrolling or not.

How can I just do dragging when the user has chosen rows, and not other controls such as the scrollbar or vertical frozen column separator.
Jay
Top achievements
Rank 1
 answered on 15 Dec 2017
2 answers
223 views

Sirs,

I'm using RadVirtualGrid with a Custom DataProvider and I would like to format its columns where some columns would fit their width to their content, others to their cells' content, some columns would have their cells aligned to left, others to right, and so on.

I mean I want to apply a different style to each column in my RadVirtualGrid, however I don't know how to handle these styles.

Thanks in advance,

Vladimir Stoyanov
Telerik team
 answered on 15 Dec 2017
4 answers
1.8K+ views

I'm trying to bind EditEnding to my ViewModel with a RadDataForm

I get a null object to my command method. I need to have access to the EditAction property of the EditEndedEventArgs but I'm getting nada. 

Here's my ViewModel info:

public ReservePartViewModel()
{
    EditEndingCommand = new Telerik.Windows.Controls.DelegateCommand(OnEditEnding);
}
 
public ICommand EditEndingCommand { get; set; }
 
private void OnEditEnding(object obj)
{
    if (obj is EditEndedEventArgs)
    {
        var args = obj as EditEndingEventArgs;
        //do stuff here?
    }
}

 

Here's my View info:

<telerik:RadDataForm CurrentItem="{Binding}" AutoEdit="True" CommandButtonsVisibility="Commit,Cancel">
    <telerik:EventToCommandBehavior.EventBindings>
        <telerik:EventBinding Command="{Binding EditEndingCommand}" EventName="EditEnding" />
    </telerik:EventToCommandBehavior.EventBindings>
</telerik:RadDataForm>
Vladimir Stoyanov
Telerik team
 answered on 15 Dec 2017
1 answer
90 views

Hi,

 

I'm changing my winform application into WPF therefore i need to se the equivalent docking methods for WPF.

In winform I was using Raddock.RemoveWindow(window, DockWindowCloseAction.CloseAndDispose) while disposing the DockControl, I want to know it's equivalent method for WPF docking.

 

Thanks.

Dilyan Traykov
Telerik team
 answered on 15 Dec 2017
3 answers
97 views

Hi,

I have a project where we are creating recurring appointments in the ScheduleView. The date of the last occurrence is very important to the rest of the system. Is there a built-in way to determine the actual date of the last occurrence of a recurring appointment? I am not allowing the "no date" or "end after x occurrences" options, only the "end by" option. However, I can't rely on this date, because the last occurrence can occur before this date.FYI: I have a number of database queries that work based on the actual end date of an appointment, so this is why I need to calculate the date of the last occurrence.

Thanks!

Kalin
Telerik team
 answered on 15 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?