Telerik Forums
UI for WPF Forum
1 answer
445 views
Hello,
I have a RadComboBox bound to an ItemsSource that is an ObservableCollection.  When that ObserableCollection is changed the RadComboBox SelectedValue is set to -1 instead of the binding in the SelectedValue.  The underlying object is not changed and still has the correct value.

Here is my binding.
<telerik:RadComboBox Name="cmbLocation"    Margin="0 8 0 0"  IsEditable="False" Width="95" ItemsSource="{Binding Lookup.LuLocation}"  DisplayMemberPath="LocationDescription" SelectedValuePath="LocationId" SelectedValue="{Binding Path=Line.LocationId, Mode=TwoWay}" HorizontalAlignment="Left" />

How do I keep the binding as the ObservableCollection changes?


Thank you,
Rick
Rick Knicely
Top achievements
Rank 1
 answered on 10 Dec 2010
10 answers
164 views
Hi all

By setting a control in a radwindows radbusy including radribbon the radbusy  overlaps and changes the display

see

http://www.gixsoftware.com/Telerik/RadBusyWithRadWindowsInWindows7.png

Thanks
Tina Stancheva
Telerik team
 answered on 10 Dec 2010
11 answers
365 views
Hello,

I have a visual studio like docking layout.
Right clicking on controls that are placed within a RadPane always triggers a context menu that belongs to the RadPane itself ("Movable, Dockable, ..., Hide") and is not the built in context menu of that particular control where the event was triggered from (eg TextBox, FlowDocument, TreeView).

Is there a way to stop this behaviour? I guess it must be something really trivial, I am sorry for that.

Thanks for your kind help.

Marc

Edit: Handling MouseRightButtonUp in the toplevel parent container under RadPane and setting Handled to true will suppress the radpane context menu, but the context menues for any other control like treeviews, textboxes and flowdocuments as well.
Konstantina
Telerik team
 answered on 10 Dec 2010
1 answer
141 views
I want to group my resouces like this

Depart 1   | peter
               | john
               | Ana

Depart 2   | carls
               | Tom
               | zé

Depart 3   | xpto
               | mussulini
               | Jorge

Its possible? how
Rosi
Telerik team
 answered on 10 Dec 2010
4 answers
146 views
Hi,

I am trying to work with RadGridView such that: when data in one (and only) editable column changes, it can change the data in other two or three columns in the same row.

Rebinding the grid in RowEditEnded event works fine, it changes the data in other columns. But the problem is that when I rebind the grid, I lose the keyboard navigation (it means that the column in the next row could not go in edit mode and also, RowEditEnded fires when I just press Tab or Tab+ Shift to move to editable column in the previous row).

My application need to provide most of the keyboard comfort to its users. So, I am looking for a way to rebind the edited row only (when the data in editable column changes and RowEditEnded fires).

Thanks,
Arpit Khandelwal
Yavor Georgiev
Telerik team
 answered on 10 Dec 2010
1 answer
144 views
Hi!

I have created a popup and from within the popup I have created a telerik docking window.  This works fine.  But the problem is if the user closes the telerik window by clicking on the "X" then the popup never comes back again.  This is because the popup's dependency property IsOpen is left set to true.  I want to set up a trigger event so I can hijack the telerik close event so I can first set this property IsOpen to false and then let Telerik to continue the close.  Can you please let me know how I can do this?  If possible I want to do this from within the XAML file.  I figured we can use an event trigger for PreviewClose event and when this event fires then I can set the popup.IsOpen to false.  Any help is greatly appreciated.

Thanks,

Sonia


Code for Popup:

<

 

 

Popup x:Name="FiberPopUp" Placement="Mouse" IsEnabled="True" IsOpen="False" Focusable="True">

 

 

 

 

<Popup.RenderTransform>

 

 

 

 

<ScaleTransform>

 

 

 

 

<ScaleTransform.ScaleX>

 

 

 

 

<MultiBinding Converter="{x:Static coreconverters:ArithmeticConverter.Default}" ConverterParameter="/">

 

 

 

 

<Binding Source="1.0" Mode="OneWay" />

 

 

 

 

<Binding Path="ContentScale" Source="{x:Static local:ViewModel.Instance}" Mode="OneWay"/>

 

 

 

 

</MultiBinding>

 

 

 

 

</ScaleTransform.ScaleX>

 

 

 

 

<ScaleTransform.ScaleY>

 

 

 

 

<MultiBinding Converter="{x:Static coreconverters:ArithmeticConverter.Default}" ConverterParameter="/">

 

 

 

 

<Binding Source="1.0" Mode="OneWay" />

 

 

 

 

<Binding Path="ContentScale" Source="{x:Static local:ViewModel.Instance}" Mode="OneWay"/>

 

 

 

 

</MultiBinding>

 

 

 

 

</ScaleTransform.ScaleY>

 

 

 

 

</ScaleTransform>

 

 

 

 

</Popup.RenderTransform>

 

 

 

 

<StackPanel Width="auto" Height="auto" >

 

 

 

 

<telerikDocking:RadPaneGroup>

 

 

 

 

<telerikDocking:RadPane Header="Fiber PopUp." ContextMenuTemplate="{x:Null}">

 

 

 

 

<TextBlock Text="This is a test " />

 

 

 

 

</telerikDocking:RadPane>

 

 

 

 

</telerikDocking:RadPaneGroup>

 

 

 

 

</StackPanel>

 

 

 

 

</Popup>


 

George
Telerik team
 answered on 10 Dec 2010
2 answers
146 views
private void StateLayerReaderReadCompleted(object sender, ReadShapesCompletedEventArgs eventArgs)
{
    ScaleTransform scaleMap;
    scaleMap = new ScaleTransform(1.2, 1.2);
 
    TranslateTransform moveMap;
    moveMap = new TranslateTransform(-50, 0);
 
    TransformGroup tg = new TransformGroup();
    tg.Children.Add(moveMap);
    tg.Children.Add(scaleMap);
 
    RadMap1.RenderTransform = tg;
 
    if (eventArgs.Error != null)
        return;
 
    this.LabelLayer.Items.Clear();
 
    HotSpot hotSpot = new HotSpot();
    hotSpot.X = 0.5;
    hotSpot.Y = 0.5;
 
    foreach (MapShape shape in this.InformationLayer.Items)
    {
        string name = (string)shape.ExtendedData.GetValue("STATE_NAME");
        TextBlock lblState = new TextBlock();
        lblState.Text = name;
        lblState.FontFamily = new FontFamily("Trebuchet MS");
        lblState.FontSize = 9.5;
        lblState.FontWeight = FontWeight.FromOpenTypeWeight(750);
 
        if (
            (
                name.ToLower().Equals("alaska")
            )
           )
        {
            //ScaleTransform scaleAK;
            //scaleAK = new ScaleTransform(-4.5, -4.5);
 
            //TranslateTransform moveAK;
            //moveAK = new TranslateTransform(100, -200);
 
            //TransformGroup tgAK = new TransformGroup();
            //tgAK.Children.Add(moveAK);
            //tgAK.Children.Add(scaleAK);
 
            //shape.RenderTransform = scaleAK;
            TranslateTransform moveTransform;
            moveTransform = new TranslateTransform(800, 200);
            shape.RenderTransform = moveTransform;
        }

This worked for me on a map of Pennsylvania (I could move a county shape this way), but not for Alaska and Hawaii on the us ESRI shapefile. I want to scale down Alaska and move is closer so that its visible and scale up Hawaii and move it as well. The transforms seem to not work at all in this case, but, like I said, worked fine on a PA county.
Andrey
Telerik team
 answered on 10 Dec 2010
9 answers
657 views
HI guys,

I have menu items inside a dropdown button. Menus are bound to commands. The issue is once the item is clicked, commands are fired; but the menus are not closed afterwards. I have to click somewhere on the screen to make it close. How can I close the menu in the commands fired events?

thanks,
Hristo
Telerik team
 answered on 10 Dec 2010
1 answer
99 views
hi,
       thanks for read our thread.
we are using ur rad controls in our latest project.

here we are creating controls inside a rad grid view.
using cell template/cell edit template.

now i want to set visible false first row?
(first display all rows.after i click  button the first row will  unvisible).

pls give me some example code?
Vlad
Telerik team
 answered on 10 Dec 2010
4 answers
163 views
Hi!
I use VirtualQueryableCollectionView in my project (WPF Q3 2010).
public MainWindow()
{
    InitializeComponent();
    
    OraContext ctx = new OraContext();
    var view = new VirtualQueryableCollectionView(ctx.OSTs) { LoadSize = 5 };
    DataContext = view;
}

I get error, when grouping in GridView

Unable to cast object of type 'Telerik.OpenAccess.Query.GroupKeyAccessT' к типу 'OpenAccessRuntime.DataObjects.query.Node'

Thank you.
Denis
Top achievements
Rank 1
 answered on 10 Dec 2010
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?