Telerik Forums
UI for WPF Forum
0 answers
119 views
Hi,

Is that possible to implement Drag and Drop functionality between two RadGridViews using MVVM in my WPF (VB.Net 3.5) Application ? If possible, how ?

Thanks in advance,

Silverlight Student
Top achievements
Rank 1
 asked on 07 May 2010
1 answer
121 views
Hi,

I need an urgent help in tree-view control. I am not able to attach the  sample project which has the problem i am facing.
when i am binding a boolean property to checkstate using code behind and converter as suggested the parent node is behaving in a crazy manner.
If i check 2 out of 3 children under a parent node then parent node is showing state of checkbox as intermediate. But if i check the 3rd child also the state of parent node remains intermediate which should get changed to on(checked) or if i uncheck one of the child node then the parent node state changes to off(unchecked) which should remain in intermediate.
I think there is some bug in the control. but if there is some trick which can fix this will help me a lot. I tried to create a support ticket also but its showing some server error.
Thanks for any help.

thanks,
Anil
Ivan
Telerik team
 answered on 07 May 2010
5 answers
220 views
What control is being used for the Sales Representatives list down the left side of the Sales Dashboard demo? Is the code for this demo available for download anywhere?

Thanks.

Dan
Ivan
Telerik team
 answered on 07 May 2010
1 answer
48 views
  Hi, recently,i have read sales dashboard , I have a problem when I  read  the code of SalesDashboardServiceReference ?
Ivan
Telerik team
 answered on 07 May 2010
1 answer
60 views
   I have saw there is ISalesDashboardServiceProxy  but , I don't konw how it works and pass the data
Ivan
Telerik team
 answered on 07 May 2010
4 answers
158 views
We have some AggregateFunctions in our RadGridView. These are visible in the grid's footer like "Sum: kr. 100,00".
But we don't want to show them in the GroupHeader (or Footer). How can we hide them there?
Maya
Telerik team
 answered on 06 May 2010
4 answers
597 views
Hi, how can i access the expander button (expand/collapse command)?
Basicly i need this button to be all over the header.
Thank you
Dimitrina
Telerik team
 answered on 06 May 2010
2 answers
136 views
Hello,

I have a RadRibbonSplitButton, whose DropDown Content is set to a plain UserControl housing only a single ListBox and a single 'Accept' button. This ListBox has some drag/drop code written to allow drag/drop of a row to another position within the same ListBox. Essentially, just repositioning a row within the ListBox to another position. When 'Accept' is pushed, I use the order of the rows in logic elsewhere in the app. If the context menu is clicked out of it disappears correctly, and if the user never clicks outside of the control, they are able to effectively select listbox items as they like, and drag/drop the listbox items to whatever positions they desire, all with the RadRibbonSplitButton drop down staying open until the 'Accept' button is pressed or the user clicks somewhere besides the drop down.

My problem, is that in WPF, anytime I clicked within the listbox, the RadRibbonSplitButton closes, (I believe a routed event may be getting handled here from the ListBoxItem Selection, and RadRibbonSplitButton handles that and closes the drop down) I set 'KeepOpen' to true, to get around this in WPF.

But whenever a Drag is initiated from one of these ListBox Items, the drag cue is displayed correctly and hovers while I drag, but the RadRibbonSplitButton drop down closes immediately. (So there is no List Box showing for me to reposition the ListBox Item being dragged)

I noticed this thread http://www.telerik.com/community/forums/wpf/draganddrop/drag-and-drop-between-a-window-and-a-popup.aspx, which notes that you cannot drag/drop between pop ups, but in my scenario I am just dragging/dropping within a single RadRibbonSplitButton drop down...

Do you have any suggestions that might help me achieve the functionality I am after, having the RadRibbonSplitButton drop down remain open until the 'Accept' button is pressed, or until the user clicks outside of the drop down. Not closing immediately, when a drag is initiated from within the drop down's ListBox?

Thanks for any help you can give!

- Lee
Tina Stancheva
Telerik team
 answered on 06 May 2010
5 answers
160 views
I started with the example with the Leages and Division (as example for data binding from the Demo) and added a tristate checkbox to the treeview and a "bool?" in each class. Initially all items are set to "true".
public League(string name) 
  _name = name; 
  _divisions = new List<Division>(); 
  _selected = true
 
string _name; 
bool? _selected; 
 
public string Name { get { return _name; } } 
public bool? Selected { get { return _selected; } } 
 

As described here I added the CheckStateConverter class which also handles the Indeterminate state.

public class CheckStateConverter : IValueConverter 
  public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 
  { 
    bool? result = (bool?)value; 
    ToggleState returnValue = ToggleState.Indeterminate; 
    if (result == true
      returnValue = ToggleState.On; 
    else 
    { 
      if (result == false
        returnValue = ToggleState.Off; 
    } 
 
    return returnValue; 
  } 
//.... 

The data binding works fine, but the thing I can't understand: If I expand "League A" and "Division A" and uncheck "Team I",  "League A" and "Division A" also switch to "unchecked" instead of "indeterminate". If I uncheck "League A" and check it again the whole tree behaves correctly. What is wrong in my example?

Thanks in advance!
Jan
Rick Bednarik
Top achievements
Rank 1
 answered on 06 May 2010
7 answers
137 views
Hi there,

I am getting a serious NullReferenceException (haven't managed to catch it by exceptions and it crashes my client), and it goes something like this:

   at Telerik.Windows.Controls.Map.BingMapProvider.InitializeProvider() in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Map\Providers\BingMapProvider.cs:line 542
   at Telerik.Windows.Controls.Map.BingMapProvider.ImageryService_GetImageryMetadataCompleted(Object sender, GetImageryMetadataCompletedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Map\Providers\BingMapProvider.cs:line 499
   at Telerik.Windows.Controls.Map.VEWPFImageryService.ImageryServiceClient.OnGetImageryMetadataCompleted(Object state) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Service References\VEWPFImageryService\Reference.cs:line 2106
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

It seems to be happening at random, so I can't pin it down.  Is there any way I can solve this please?

Thanks,
Simon.



Andrey
Telerik team
 answered on 06 May 2010
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?