Telerik Forums
UI for WPF Forum
3 answers
240 views
We are using the ScheduleView. Here is the question. We use this to show the surface booked by many different customers. Each customer can be assigned a color ( we store this in our database). The Appointment style selector example is great... but in our case, the colors need to change dynamically. How can we achieve this. I know I can create a XAML and use ResourceDictionary. the problem is that our clients have the ability to swap colors or add new customers and new colors.

Thanks in Advance.
George
Telerik team
 answered on 03 Feb 2011
16 answers
276 views
Hello,

Is there a reason why the RadPanelBarItem does not have a Command property ?

This would be nice in MVVM scenarios. Are there any plans to implement it ?
Nicole
Top achievements
Rank 1
 answered on 03 Feb 2011
3 answers
157 views
Using Telerik.Windows.Controls library for WPF, version 2010.2.924.35, within a WPF .NET 3.5 application.  When I use the static Alert, Prompt, or Confirm methods, a RadWindow opens up, but the hovering of the mouse cursor over any other typical RAD controls in the window (the 'Ok' or 'Cancel' RadButtons, the 'X' close RadButton in the top right corner, the Prompt dialog's RadTextBox) is slow/sluggish.  This sluggishness only lasts for a second or two while the control goes through its state change due to the inherent mouse over/hover event.

I'm not doing anything fancy:
public partial class Window1 : Window
{
    public Window1()
    {
        InitializeComponent();
        RadWindow.Alert( "Hello World!" );
        RadWindow.Prompt( "Hello Prompt!", ClosedEvent );
        RadWindow.Confirm( "Hello Confirm!", ClosedEvent );
    }
 
    private void ClosedEvent( object sender, WindowClosedEventArgs e )
    {
 
    }
}

Please help!  Thanks!
Konstantina
Telerik team
 answered on 03 Feb 2011
1 answer
82 views
Hi,

Is the source code for the video demonstrations available?

Cheers, Steve
Hristo
Telerik team
 answered on 03 Feb 2011
1 answer
115 views
Hello,

I have an issue with the raddocking's loadlayout().
When i try to load a layout, sometimes the splittercontainer's position fails to load correctly.

I've made a small demo to represent the problem.

<telerikDocking:RadDocking x:Name="dokcingMain">
           <telerikDocking:RadDocking.DocumentHost>
               <telerikDocking:RadSplitContainer>
                   <telerikDocking:RadPaneGroup x:Name="PaneGroup" >
                       <telerikDocking:RadPane telerikDocking:RadDocking.SerializationTag="pane1"
                                               Header="Pane1" BorderThickness="0"
                                               CanUserClose="False" CanFloat="False" CanUserPin="False"
                                               ContextMenuTemplate="{x:Null}"/>
                       <telerikDocking:RadPane telerikDocking:RadDocking.SerializationTag="pane2"
                                               Header="Pane1" BorderThickness="0"
                                               CanUserClose="False" CanFloat="False" CanUserPin="False"
                                               ContextMenuTemplate="{x:Null}"/>
                       <telerikDocking:RadPane telerikDocking:RadDocking.SerializationTag="pane3"
                                               Header="Pane3" BorderThickness="0"
                                               CanUserClose="False" CanFloat="False" CanUserPin="False"
                                               ContextMenuTemplate="{x:Null}"/>
                       <telerikDocking:RadPane telerikDocking:RadDocking.SerializationTag="pane4"
                                               Header="Pane4" CanUserClose="False"
                                               CanUserPin="False" CanFloat="False"
                                               ContextMenuTemplate="{x:Null}"/>
                       <telerikDocking:RadPane telerikDocking:RadDocking.SerializationTag="pane5"
                                               Header="Pane5" BorderThickness="0"
                                               CanUserClose="False" CanFloat="False" CanUserPin="False"
                                               ContextMenuTemplate="{x:Null}"/>
                       <telerikDocking:RadPane telerikDocking:RadDocking.SerializationTag="pane6"
                                               Header="Pane6" BorderThickness="0"
                                               CanUserClose="False" CanFloat="False" CanUserPin="False"
                                               ContextMenuTemplate="{x:Null}"/>
                       <telerikDocking:RadPane telerikDocking:RadDocking.SerializationTag="pane7"
                                               Header="Pane7" BorderThickness="0"
                                               CanUserClose="False"
                                               ContextMenuTemplate="{x:Null}"/>
                   </telerikDocking:RadPaneGroup>
               </telerikDocking:RadSplitContainer>
           </telerikDocking:RadDocking.DocumentHost>
       </telerikDocking:RadDocking>


After i started the demo, I floated the Pane7, then I re-docked it to the inner-left area (so there will be 2 radpanegroups at the end).
I set the splitter's position by hand, then saved the layout to an xml file.

Here is the result:
<RadDocking>
  <DocumentHost>
    <RadSplitContainer>
      <Items>
        <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SplitterChange="42,2180640734751" SelectedIndex="0">
          <Items>
            <RadPane SerializationTag="pane7" IsDockable="True" Title="Pane7" Header="Pane7" CanUserClose="False" />
          </Items>
        </RadPaneGroup>
        <RadPaneGroup SplitterChange="456,781935926525" SelectedIndex="0">
          <Items>
            <RadPane SerializationTag="pane1" IsDockable="True" Title="Pane1" Header="Pane1" CanUserClose="False" CanUserPin="False" CanFloat="False" />
            <RadPane SerializationTag="pane2" IsDockable="True" Title="Pane1" Header="Pane1" CanUserClose="False" CanUserPin="False" CanFloat="False" />
            <RadPane SerializationTag="pane3" IsDockable="True" Title="Pane3" Header="Pane3" CanUserClose="False" CanUserPin="False" CanFloat="False" />
            <RadPane SerializationTag="pane4" IsDockable="True" Title="Pane4" Header="Pane4" CanUserClose="False" CanUserPin="False" CanFloat="False" />
            <RadPane SerializationTag="pane5" IsDockable="True" Title="Pane5" Header="Pane5" CanUserClose="False" CanUserPin="False" CanFloat="False" />
            <RadPane SerializationTag="pane6" IsDockable="True" Title="Pane6" Header="Pane6" CanUserClose="False" CanUserPin="False" CanFloat="False" />
          </Items>
        </RadPaneGroup>
      </Items>
    </RadSplitContainer>
  </DocumentHost>
  <SplitContainers />
</RadDocking>

As you can see, the first radpanegroup is approximately ~42px wide, while the second is 456px. So far so good...
But when i try to load these settings, the splitter's position fails to load correctly.

I've made a screenshots before and after the layout loading.

Before:
Right splitter position screenshot

After:
Wrong splitter position screenshot

Have you got any idea what could cause this behaviour? Any help will be appreciated.

Greetings,
Thomas
George
Telerik team
 answered on 03 Feb 2011
5 answers
85 views
I'm setting the culture of datepicker and use the code below.
CultureInfo cultureInfo = new CultureInfo("en-US");  
DateTimeFormatInfo dateInfo = new DateTimeFormatInfo();  
dateInfo.ShortDatePattern = "MM/yyyy";  
cultureInfo.DateTimeFormat = dateInfo;  
radDatePicker1.Culture = cultureInfo; 

i've set the IsReadonly= true so that the user cannot input by manually inputing a date, the code above is working fine, but when you click the DatePicker textbox and then click another control error is occured, "Object not set to a reference of object" any idea?

Nikolay
Telerik team
 answered on 03 Feb 2011
1 answer
65 views
Hi,

I looked couple of example for drag and drop. But could not find one for Drag and Drop within RadGridView with user feedback.

Please provide the code specifically for this. I did implemented without user feedback but I need to implement one with user feedback.

Thanks
Sanket Singhvi
Maya
Telerik team
 answered on 03 Feb 2011
5 answers
238 views

Hi,
I am very biginer in Telerik controls. I am facing a problem related to properties binding ( automatic ) . i have a Gridview and inside grid view i have a checkbox , i need to implement functionality where i have to select checkbox on rowselection in xaml.

my code is following ...

 

<

ex:ExGridView Name="gvItemList" MultipleSelect="True" EnableColumnVirtualization="False" Grid.Column="0" Grid.ColumnSpan="5" Grid.Row="15"

 

 

AutoGenerateColumns="False" MaxHeight="200" IsReadOnly="True" RowLoaded="gvItemList_RowLoaded" >

 

 

<tcp:RadGridView.Columns>

 

 

 

 

 

<ex:ExGridViewDataColumn Width="20" IsResizable="False">

 

 

 

 

 

<tcp:GridViewDataColumn.CellStyle x:Uid="chkSelect">

 

 

 

 

 

<Style TargetType="tcp:GridViewCell">

 

 

 

 

 

<Setter Property="tcp:GridViewCell.Template">

 

 

 

 

 

<Setter.Value>

 

 

 

 

 

<ControlTemplate TargetType="tcp:GridViewCell">

 

 

 

 

 

<CheckBox CommandParameter="{Binding}"

 

 

HorizontalAlignment="Center" VerticalAlignment="Center"

 

 

IsChecked="{Binding Path=IsSelected, Mode=TwoWay,RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type tcp:GridViewDataColumn}}}" Checked="CheckBox_Checked" Unchecked="CheckBox_Checked"/>

 

 

 

 

 

</ControlTemplate>

 

 

 

 

 

</Setter.Value>

 

 

 

 

 

</Setter>

 

 

 

 

 

</Style>

 

 

 

 

 

</tcp:GridViewDataColumn.CellStyle>

 

 

 

 

 

</ex:ExGridViewDataColumn>

 

 

 

 

 

<ex:ExGridViewDataColumn PhraseID="2464" UniqueName="ItemCode" DataMemberBinding="{Binding Path=ItemCode, Converter={StaticResource stringToDisplayStringConverter}}" ></ex:ExGridViewDataColumn>

 

 

 

 

 

<ex:ExGridViewDataColumn PhraseID="1218" UniqueName="ItemName" DataMemberBinding="{Binding Path=ItemName, Converter={StaticResource stringToDisplayStringConverter}}" Width="130"></ex:ExGridViewDataColumn>

 

 

 

 

 

<ex:ExGridViewDataColumn PhraseID="1607" UniqueName="DepartmentName" DataMemberBinding="{Binding Path=DepartmentName, Converter={StaticResource stringToDisplayStringConverter}}" ></ex:ExGridViewDataColumn>

 

 

 

 

 

<ex:ExGridViewDataColumn PhraseID="1002" UniqueName="CategoryName" DataMemberBinding="{Binding Path=CategoryName, Converter={StaticResource stringToDisplayStringConverter}}" ></ex:ExGridViewDataColumn>

 

 

 

 

 

 

 

 

</tcp:RadGridView.Columns>

 

 

 

 

 

</ex:ExGridView>

we have extendened radgrid in customizable form. still i don't have idea to bind checkbox's checked property to gridview's IsSelect property , i don't want to link object properties , but i need to bind both controls(checkbox and gridrow ) properties . Please have a look and give me some assistance .

Thanks In advance
Regards

Devendra Kumar

 

Vlad
Telerik team
 answered on 03 Feb 2011
1 answer
237 views
I just switched from .NET DataGrid to RadGridView, but the bindings don't work like in the DataGrid. In RadGridView, all rows are empty. I've looked everywhere, and I haven't found any examples of how to use XPATH in RadGridView. I'd appreciate if you could help me to troubleshoot the bindings below. Thank you.

<telerik:RadGridView Grid.Column="1"
                             Grid.Row="1"
                             AutoGenerateColumns="False"
                             DataContext="{Binding MyXMLDoc}"
                             ItemsSource="{Binding XPath=/Nodes/Node}"
                             RowIndicatorVisibility="Collapsed"
                             ShowGroupPanel="False"
                             GridLinesVisibility="Horizontal">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Width="200"
                                            DataMemberBinding="{Binding XPath=@Key}">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" >
                                <Image Source="{Binding XPath=@Icon}" ToolTip="{Binding XPath=@Tooltip}" Style="{StaticResource ico16}" />
                                <TextBlock Text="{Binding XPath=@Key}" Foreground="Black" />
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
Vlad
Telerik team
 answered on 03 Feb 2011
1 answer
72 views
I am having a hierarchical gridview, where I am having a gridview nested into another.

When am trying to insert a new item in the OUTER grid by pressing 'Insert', I do get a new item, but I am not able to insert nested gridview items into it. (Basically I was expecting to see an empty instance of the nested gridview appearing when I insert an item in the outer gridview. ) How can I get the nested gridview for the new items inserted in the outer gridview?



Angshuman
Top achievements
Rank 2
 answered on 03 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?