Telerik Forums
UI for WPF Forum
1 answer
114 views
Hi,

Does Telerik control library support "Any CPU" build option or i need to build source code for x32 and x64 platforms separately?

Regards,
Pushpjeet Singh
Rossen Hristov
Telerik team
 answered on 11 Apr 2012
1 answer
89 views
Hi,

I am using TileView to let the user enter phone Numbers when they click on AddNewPhone I am adding a newTile.
Now I want to keep it in edit mode newly Added Tile(don't want them to click on the other phone contacts) untill they enter data and save that or remove that new Tile.

Thanks,
Naresh
Miro Miroslavov
Telerik team
 answered on 11 Apr 2012
1 answer
88 views
Hi,

is there a way by Ctrl + Tab to move focus out of the RadGridView?
I already use CustomKeyboardCommandProvider with success for return key, but I'm not able to use it for Ctrl + Tab, assumed that is the right way.

Thanks in advance.

Stefano


Maya
Telerik team
 answered on 11 Apr 2012
7 answers
1.8K+ views
Hi, I am trying to add an event handler, that is called when a cell value is changed? After a quick look at the available Event handlers, I couldn't figure out which event handler I should choose. Any suggestions please?
Kha
Top achievements
Rank 1
 answered on 11 Apr 2012
4 answers
385 views
Hi Telerik team,

I have a project with a requirement to display numeric value depending on dynamic unit format in radgridview or radtreelistview.

I bind my radtreelistview to list of object from class below =>
for example : ObservableCollection<MyVariable> obj = new ObservableCollection<MyVariable>();
radTreeListView1.ItemsSource = obj;

public class MyVariable : ViewModelBase, INotifyPropertyChanged
{
     public string Name { get; set; }
     public CellValue First { get; set; }
     public CellValue Second { get; set; }
     public CellValue Third { get; set; }
     public string Remarks { get; set; }
     public ObservableCollection<MyVariable> ChildCollection { get; set; }
 }
 
 public class CellValue : INotifyPropertyChanged
 {
     public string Key { get; set; }
     public double? Value { get; set; }
     public string Unit { get; set; }
     public string Location { get; set; }
     public bool IsEditable  { get; set; }
 }

 below is my xaml code for the grid.
<telerik:RadTreeListView x:Name="radTreeListView1" AutoGenerateColumns="False" RowIndicatorVisibility="Collapsed" RowLoaded="radTreeListView1_RowLoaded" RowIsExpandedChanging="radTreeListView1_RowIsExpandedChanging">
                                <telerik:RadTreeListView.ChildTableDefinitions>
                                    <telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildCollection}" />
                                </telerik:RadTreeListView.ChildTableDefinitions>
                                <telerik:RadTreeListView.Columns>
                                    <telerik:GridViewDataColumn Header="Parameters" DataMemberBinding="{Binding Name}" IsReadOnly="True" Width="auto"  />
                                    <telerik:GridViewDataColumn Header="First Value" DataMemberBinding="{Binding First.Value, Mode=TwoWay}" DataFormatString="{Binding First.Unit, Converter={StaticResource numberConverter}}" IsReadOnlyBinding="{Binding First.IsEditable}" CellStyleSelector="{StaticResource cellStyle}" Width="auto" />
                                    <telerik:GridViewDataColumn Header="Second Value" DataMemberBinding="{Binding Second.Value, Mode=TwoWay}" DataFormatString="{Binding Second.Unit, Converter={StaticResource numberConverter}}" IsReadOnlyBinding="{Binding Second.IsEditable}" CellStyleSelector="{StaticResource cellStyle}" Width="auto"  />
                                    <telerik:GridViewDataColumn Header="Third Value" DataMemberBinding="{Binding Third.Value, Mode=TwoWay}" DataFormatString="{Binding Third.Unit, Converter={StaticResource numberConverter}}" IsReadOnlyBinding="{Binding Third.IsEditable}" CellStyleSelector="{StaticResource cellStyle}" Width="auto" />
                                    <telerik:GridViewDataColumn Header="Remarks" DataMemberBinding="{Binding Remarks}" IsReadOnly="True" Width="*" />
                                </telerik:RadTreeListView.Columns>
</telerik:RadTreeListView>

I also have a converter class to handle the DataFormatString
public class NumberConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        CellValue cellValue = value as CellValue;
        if (cellValue != null && cellValue.Unit == "%")
        {
            return "{0:p2}";
        }
        else
            return "{0:n2}";
    }
 
    public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        return value;
    }
}

When I run these codes. it never run through the code in numberConverter class. but if i change DataFormatString code in xaml code to 
<telerik:GridViewDataColumn Header="First Value" DataMemberBinding="{Binding First.Value, Mode=TwoWay}" DataFormatString="{Binding First, Converter={StaticResource numberConverter}}" IsReadOnlyBinding="{Binding First.IsEditable}" CellStyleSelector="{StaticResource cellStyle}" Width="auto" />
<telerik:GridViewDataColumn Header="Second Value" DataMemberBinding="{Binding Second.Value, Mode=TwoWay}" DataFormatString="{Binding Second, Converter={StaticResource numberConverter}}" IsReadOnlyBinding="{Binding Second.IsEditable}" CellStyleSelector="{StaticResource cellStyle}" Width="auto"  />
<telerik:GridViewDataColumn Header="Third Value" DataMemberBinding="{Binding Third.Value, Mode=TwoWay}" DataFormatString="{Binding Third, Converter={StaticResource numberConverter}}" IsReadOnlyBinding="{Binding Third.IsEditable}" CellStyleSelector="{StaticResource cellStyle}" Width="auto" />

It run through the numberConverter codes. if i put a break point in this line of code 
CellValue cellValue = value as CellValue; 

when i checked the type of "value" from above code. instead of "CellValue" it showed "[ProjectNamespace].MainWindow" as type of value.

I followed the code from this thread
http://www.telerik.com/community/forums/wpf/gridview/dataformatstring.aspx 

but it will bind the value as string and not double which causing the cell to be able to accept non numeric value.

Please suggest how to achieve this dynamic DataFormatString binding.
 
Thanks.
Andy
Andy
Top achievements
Rank 1
 answered on 11 Apr 2012
1 answer
144 views
box column 'GridViewCheckBoxColumn' as shown below:

<

 

 

telerik:GridViewCheckBoxColumn MinWidth="60" Width=".5*" IsReadOnly="False" Header="Select" DataMemberBinding="{Binding CHARGEWAIVEDIND, UpdateSourceTrigger=PropertyChanged}" IsFilterable="False" />

The problem I am facing at the moment is that I'm unable to find the triggering event when user changes the value of the checkbox. Currently I am using GridView's CellEditEnded event which is not suitable for this as this event triggers only when user moves the cursor away from the checkbox column. Kindly help me out.

 

Dimitrina
Telerik team
 answered on 11 Apr 2012
1 answer
170 views
Is there a way to create a filmstrip view of pictures instead of the carousel view. This is, instead of having one image come to the center top, all the images are the same size and scroll left to right, right to left.

Thanks.

Mike Arnold
Maya
Telerik team
 answered on 11 Apr 2012
1 answer
105 views

The QueryableDataServiceCollectionView seems have a dependency on System.Data.Services.Client v 4.0. The project is built agains WCF Data Services October 2011 CTP and references Microsoft.Data.Services.Client from CTP folder. I tried to trick it with binding redirect, but it didn't work.

My version of the controls is 2011.3.1220.35. What version of WCF Data Services is supported?

-Stan


										
Vlad
Telerik team
 answered on 11 Apr 2012
0 answers
89 views
I need the DisplayName to be aligned to the top.
Alex
Top achievements
Rank 1
 asked on 10 Apr 2012
4 answers
208 views
I can't seem to find information on how to get the parent grid to only allow one row to be expanded at a time.  There doesn't seem to be a way that I know of to iterate through all the GridViewRow objects in the parent grid and explicitly set them to IsExpanded = false and I don't see any property on the grid that would enable this sort of a feature automatically.  It seems simple enough, maybe the developers can add that feature in for the next release?  Until then though, how do I go about doing so? 
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 10 Apr 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
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
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?