Telerik Forums
UI for WPF Forum
3 answers
187 views
Hi
Currently I display ColorEditor in a RadExpander in a RadPropertyGrid. When the expander is expanded the whole RadPropertyGrid expands to accommodate it.
Is it possible to present the ColorEditor initially collapsed so user can click to expand and spill outside of container as you can with the ColorPicker?
Or is there another container control I can use to emulate this?
Thanks
Craig
Craig
Top achievements
Rank 1
 answered on 21 Feb 2013
3 answers
248 views
Hi Expertise,

I am using the RadcolorPicker in my project. when i click the color picker, i can able to see the color palatte. Totally 25 colors only available in this control... Can i have more color to access in this control? it means, Is there any options for "More color" in this pallette.?

Thanks in advance.

Regards,
Thiruppathi V
Krzysztof
Top achievements
Rank 1
 answered on 21 Feb 2013
18 answers
1.5K+ views
Hello,
I have a problem binding the SelectedItem of a child grid to a property on my view model. I've included the relevant XAML at the bottom.

The data binding of the SelectedItem of the parent Group finds the view model property okay. I've tried to use the same approach for SelectedItem of the child grid but a get a binding error 'BindingExpression path error: 'SelectedGroupItem' property not found on 'object' ''Group' '. Group is the type of the child object so I can understand why it complains.

//Groups defined in the view model
public ObservableCollection<Group> Groups { get;set;}
...
 
//Group class
public class Group
{
    public Group()
    {
        GroupItems = new List<GroupItem>();
    }
    public string GroupName { get; set; }
    public List<GroupItem> GroupItems { get; set; }
}


How do I change the SelectedItem="{Binding SelectedGroupItem}" data binding expression to refer to the view model as the parent grid has done?

Craig


<Grid.Resources>
  <DataTemplate x:Key="GroupItemTemplate">
    <telerik:RadGridView ItemsSource="{Binding GroupItems, Mode=TwoWay}" Name="itemsGrid"
   ShowGroupPanel="False"  AutoGenerateColumns="False" SelectedItem="{Binding SelectedGroupItem}">
      <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Item Name" Width="*" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Description}" Header="Item Name" Width="*" />
      </telerik:RadGridView.Columns>
    </telerik:RadGridView>
  </DataTemplate>
</Grid.Resources>
 
<telerik:RadGridView Name="groupsGrid" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"
  VerticalAlignment="Stretch" Width="Auto" ItemsSource="{Binding Groups, Mode=TwoWay}"
  AutoGenerateColumns="False" ShowGroupPanel="False" ShowInsertRow="True" RowHeight="23"
  RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  SelectedItem="{Binding SelectedGroup}"
  HierarchyChildTemplate="{StaticResource GroupItemTemplate}">
  <telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding GroupName}" Header="Group Name" Width="*"/>
  </telerik:RadGridView.Columns>
  <telerik:RadGridView.ChildTableDefinitions>
    <telerik:GridViewTableDefinition />
  </telerik:RadGridView.ChildTableDefinitions>
</telerik:RadGridView>
Dimitrina
Telerik team
 answered on 21 Feb 2013
7 answers
887 views
Hi everyone,

I am wondering if there is a way to know if the user close a window using the "X" button. I assume it's in the previewclosed event but what should i check in that event?

thank you
Mark
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
139 views
Hi,
i am using a readonly GridView with a column like this:
<telerik:GridViewDataColumn Header="Range"
                    Width="*"
                    DataMemberBinding="{Binding Range}"
                    HeaderTextAlignment="Center"
                    TextAlignment="Center"
                    ToolTip="Test">

The problem is that the tooltip does not be displayed on column cells or on the column header.

Where did i make the mistake?

Thanks for help
Mark
Steve
Top achievements
Rank 1
 answered on 21 Feb 2013
3 answers
186 views
I'm using DataAnnotations for validation.  Built-in MS annotation such as [RequiredAttribute] works fine but custom annotation are firing and validating properly. However, the cell aren't getting the red border, only the error message tooltip. Any idea why?


 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
        public class MustBeUniquePostalCodeAttribute : ValidationAttribute
        {

            private bool v;

            protected override ValidationResult IsValid(object value, ValidationContext validationContext)
            {
                DcfItemViewModel instance = validationContext.ObjectInstance as DcfItemViewModel;

                v = true;
                if (instance.isNew)
                {
                    string postalCode = instance.PostalCode;
                    IList<Dcf> dcfList = instance.Parent as IList<Dcf>;
                    Dcf dcfEntity = instance.dcfEntity;


                    bool exists = dcfList.Any(d => !d.Equals(dcfEntity) && String.Equals(postalCode, d.PostalCode, StringComparison.OrdinalIgnoreCase));

                    if (exists)
                    {
                        v = false;
                        return new ValidationResult("Value must be unique");
                    }
                }
     
                return ValidationResult.Success;
        
            }

            public override bool IsValid(object value)
            {
                return v;
            }
         
        }
Nedyalko Nikolov
Telerik team
 answered on 21 Feb 2013
2 answers
184 views
Hi,

I'm using GridView biding with an collection property in my view model.

Now, I need to explode row details.
The content of my row detail depends on witch cell was clicked.

I will have another GridView, inside row detail, but this GridView need to be bindend with another property in the same view model.
This property will be populated with data that depends on wich cell was selected.

Can you help me?
Getulio
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
147 views
Hello,

I'm using the RadRichTextBox control with some predefined styles.

I have a 'Title' style. Is there any way to add the generated CSS this property : text-transform: uppercase;  ???

For example, I would like to get something like this:

<p style="text-indent: 0pt;padding: 0px 0px 0px 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 15px;margin-left: 0px;text-indent: 0px;line-height: 1.15;text-align: left;">
<span style="font-family: 'Arial';font-style: Normal;font-weight: normal;font-size: 12px;color: #000000;text-transform: uppercase;">Hello World!</span>
</p>

Thank you for your help!

Best Regards

Pierre
Mihail
Telerik team
 answered on 21 Feb 2013
6 answers
235 views
Hi,

When I edit cell values the new values don't get formatted.

For example, if I edit a value on a column which has a data format string of N2 and I enter the number 1.2345678 I would expect the number to be formatted to 1.23 but the full number is displayed.

I was wondering if there was a way to get the edited values to adopt the formatting specified on the column?

Thanks,

Steven
Steven
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
92 views
Hi,

I have list of Dates with Passed and Failed runs for each month. For Example, If February month  date 15th has Passed Runs, the date should be displayed with GreenColor font, as well date 16th has failed runs, then 16th should be displayed with Red Color.

Please suggest me how to implement this kind of scenario with Calendar control
Masha
Telerik team
 answered on 21 Feb 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?