Telerik Forums
UI for WPF Forum
2 answers
85 views
I am dragging/dropping from RadTreeView to Listbox.

My problem is that even when DragStatus is Impossible, the TreeViewItem is removed.

Any ideas?
Ryan
Top achievements
Rank 1
 answered on 31 Jan 2011
8 answers
1.0K+ views
Hi!

I'm running in a strange exception:

I've created a menu with 4 entry, each are 16x16px large.

But, when i launch the application, I get this:
http://dl.dropbox.com/u/368403/radmenuitemImage.png

Some icons are magnified.

My icons declaration:
<telerik:RadContextMenu.ContextMenu>
    <telerik:RadContextMenu IsEnabled="{Binding MainTree.CurrentItem.IsFolder, Mode=OneWay}" >
        <telerik:RadMenuItem Header="Create new folder" Icon="/GuiResources;component/ActionsIcons/newFolder.png"/>
        <telerik:RadMenuItem Header="Create new file"  Icon="/GuiResources;component/ActionsIcons/newFile.png" />
        <telerik:RadMenuItem Header="Add a new version of this file" Icon="/GuiResources;component/ActionsIcons/newFolder.png" />
        <telerik:RadMenuItem Header="Delete" Icon="/GuiResources;component/ActionsIcons/delete.png" />
    </telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>

Icons are here: http://dl.dropbox.com/u/368403/icons.zip

So:
-why does it happen?
-How to solve it?

Thank you!

Edit: It seems it was my icons that were having a problem
Stefan
Top achievements
Rank 1
 answered on 31 Jan 2011
1 answer
142 views
Hi,

how do i bind the foreignkey in GridViewComboBoxColumn which item source from DataTable.

this is what I have so far but it does not display the value but the combox was correctly populated
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding PaymentTypeID}" Header="Payment Type"
DisplayMemberPath="PaymentTypeID"
SelectedValueMemberPath="{Binding PaymentTypeID}"
ItemsSource="{Binding PaymentType}">
</telerik:GridViewComboBoxColumn>
                                           
                                   
public DataView PaymentType
        {
            get
            {
                if (paymentType == null)
                {
                    paymentType = populateDataTable();
                }
                return paymentType.DefaultView;
            }
        }

Maya
Telerik team
 answered on 31 Jan 2011
1 answer
129 views
Hi,

I have a random number of carousel items in my list, currently my goal is to have all the items in one page (by setting the itemsPerPage property)
that works fine, but I don't want mouse wheel scroll, arrow keys on the keyboard or enter key to move the items (behaviors similar to .moveby)
I need to change those navigation controls to instead change the scale stops and the position of the top container item,
e.g. say topcontainer item is the middle one at the start, when user presses left arrow key on the keyboard should move the topcontainer item 1 space from the very middle to the left, and vise versa
Can this be achieved with RadCarousel?

btw, after loading the page with RadCarousel, I have set RadCarousel as focused, if I press navigation keys on the keyboard straight away, the items doesn't move straight away but have some delays, however the mouse scroll works immediately, is this a bug. Also, if I hide the scroll bars the navigations keys changed behaviors to select items instead of moving them. Is there a way to only hide the next page buttons? The reason is that my customers are saying is that going to the next page basically shows nothing in the screen which looks a bit weird

so basically my requirement is to have everthing in one page, and we don't want to go to the next page or previous page, instead we need to have mouse scroll, navigations keys to change the position of top container item and their scales

Cheers,
Tim
Maya
Telerik team
 answered on 31 Jan 2011
3 answers
111 views
See attachments.
Kaloyan
Telerik team
 answered on 31 Jan 2011
2 answers
150 views
Hi Telerik,

First off I would like to say I just love this control. I asked about this type of control in Q1 2010 and you brougth it soon after. Thanks.

I now have a task of displaying a dynamic number of columns (booleans), so I can't simply create a view object on which to bind. What is the best approach to achieve this? Is it possible to do this using a datatable as source, and in code behind add the needed columns?

Also, is it possible to define one or more columns as fixed (not autogenerated) and let the rest dynamic columns be autogenerated?

Here's a simple overview of the "problem":

Order    | Customer    | Supplier    | Parameter1    | Parameter2    | ...    | ParameterX
1             c1                    s1                Y                        N                    Y        N
2             c1                    s1                N                        Y                    Y        Y
    2a        c2                     s2                Y                        Y                    Y        Y

The problem is that the number of parameters (and their names) is not available until retrieving this from the datasource, hence I need to create the parameter columns dynamically.
Important to note though is that the number of parameters will be the same for all orders in the data retrieved.

Any advice would be appriciated!

Best regards,
Kasper Schou
                    
Kasper Schou
Top achievements
Rank 1
 answered on 31 Jan 2011
3 answers
108 views
Hi,

I'm trying to achieve several customization on a single calendarbuttonitem (date) according to a series of date attributes, i.e.:

1. Holidays should have a colored background
2. Wednesdays should be bolded

Now I can achieve this easily using the DayTemplateSelector for each of the above separately by checking for wednesdays and returning a "wednesdayTemplate" that bolds the text, and for holidays returning a "holidayTemplate" that sets the background color.

But what if the date is both a wednesday and a holiday, I would like to add both styles. The real case is much more complicated, hence I can't accept simply creating a third template combining the styles.

What I really need is having only one template that are capable of binding to multiple values. It would be sufficient if I somehow could build the template in code behind rather that binding it in XAML, i.e. accessing the template setting backgroundcolor and font.

Is this possible, and what would be the recommended approach?

Thanks in advance!

Best regards,
Kasper Schou 
Kaloyan
Telerik team
 answered on 31 Jan 2011
0 answers
99 views
HI,

Is it possible to bind dataview object to perticular cell in gridview...?
OR
Is Gridview cell having DataSource Property????

Thank You
Somnath
Top achievements
Rank 1
 asked on 31 Jan 2011
12 answers
444 views
Hi there,

I save the docking layout while closing the application

private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
  FileStream saveStream = new FileStream("usrLayout.xml", FileMode.OpenOrCreate);
  radDocking1.SaveLayout(saveStream);
  saveStream.Close();
}

and I want to load this Layout when the application is startet the next time. I do so in the Loaded-Event of the Docking-tool

private void radDocking1_Loaded(object sender, RoutedEventArgs e)
{
  if (File.Exists("usrLayout.xml"))
  {
    Stream loadStream = new FileStream("usrLayout.xml", FileMode.Open);
    loadStream.Seek(0, SeekOrigin.Begin);
    this.radDocking1.LoadLayout(loadStream);
    loadStream.Close();
  }
}

The Layout seems to be loaded correctly but all Panels are now empty. For example: I have in one of the Panels a TreeView but after using my loading-Method the TreeView is not shown in the panel.

Any idea what I do wrong?

Greetings
Andi
George
Telerik team
 answered on 31 Jan 2011
6 answers
243 views
Hello,

I've tried to save the layout of my panes with the Docking SaveLayout / LoadLayout Method.

It works as long as my panes are docking in the main container.

But if one pane is floating, i can successfully save information about it (only if i move another pane meanwhile) but when loading the layout after restarting the application, only the docking windows appear even if it seems that correct information are saved in the xml file.

<?xml version="1.0" encoding="utf-8" ?> 
- <RadDocking>
- <DocumentHost>
- <RadSplitContainer>
- <Items>
- <RadPaneGroup SerializationTag="AccueilPaneGroup" SplitterChange="781" SelectedIndex="0">
- <Items>
  <RadPane SerializationTag="ActionsFrequentesPane" IsDockable="True" Title="Actions fréquentes" Header="Actions fréquentes" CanUserClose="False" CanUserPin="False" CanFloat="True" /> 
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedLeft" Width="240" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
- <Items>
- <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
- <Items>
  <RadPane SerializationTag="ListeSimpleParametrablePane" IsDockable="True" Title="Liste paramétrable" Header="Liste paramétrable" CanUserClose="False" CanUserPin="False" CanFloat="True" /> 
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
- <RadSplitContainer InitialPosition="FloatingDockable" FloatingWidth="220" FloatingHeight="300" FloatingX="1645" FloatingY="285.04" IsInOpenWindow="True" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
- <Items>
- <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
- <Items>
  <RadPane SerializationTag="GrapheParametrablePane" IsDockable="True" Title="Graphe paramétrable" Header="Graphe paramétrable" CanUserClose="False" CanUserPin="False" CanFloat="True" /> 
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </SplitContainers>
  </RadDocking>

I can see the RadSplitContainer with FloatingDockable position but the pane is not visible...

Any Help ? Or is it not possible to save layout with floating panes ?

Many thanks !
George
Telerik team
 answered on 31 Jan 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?