Telerik Forums
UI for WPF Forum
1 answer
132 views
Hi,

I place several Custom Controls on panes. After that I'm not able to show the controls COntext Menu -instead I only get the panes Context Menu. I tried to disable the pane's context menu - but then I do not get any context menu.

How do I solve my problem ?

kind regards

Lorenz
Miroslav Nedyalkov
Telerik team
 answered on 08 Apr 2010
1 answer
99 views
Hi,
I have such a problem:
I've got a RadGridView (WPF). Filtering is enabled for columns. When I want to use vertical scrollbar on the filter (or just trying to drag filter control), grid behaves like it drag the column. This behavior is the same on Telerik demos. How to prevent this?
Yordanka
Telerik team
 answered on 08 Apr 2010
2 answers
170 views

Hello,

I have been working with the radTileView.  It's going to do what I need it to do in most cases. However, when there are only a few items the RadTileViewItems take the full space proportionally.  It doesn't matter if I set the TileState="Minimized" or TileState="Restored" and the RadFluidContentControl ContentChangeMode="Manual" and State="Small". The controls do appear in the proper state, however the border of the control takes the remaining space causing the controls to be spaced evenly in the area. Even if I manually set the maxHeight and maxWidth of the radTileViewItem.

 

Is there a way to cause the tiles to be top left justified and leave blank space to the bottom and right when minimized or restored?

 

The other thing is that when I have a radTileView item maximized and the minimizedItemsPosition="Right" the same kind of spacing issue occurs. I would like them to appear like they do in the "Tile States" BMW section of this link - http://www.telerik.com/products/silverlight/tileview.aspx

 

I have also tried this with the sample code by adjusting the number of BMW tileViewItems and the size of their container.


I would like to use it more like a list box with very small items taking advantage of the eye candy moving them around and the maximize to edit the information in the control.
 

Thank you for your help.

 

Rick

Rick Knicely
Top achievements
Rank 1
 answered on 08 Apr 2010
1 answer
55 views
Hi,
I've just updated my WPF binaries to 2010.1.309.35 from 2009.3.1208.35 and it seems that the ColumnWidthsMode enum is missing could someone please explain to me what has happened to it?

Also, I've seen examples using the telerik:HierarchicalDataTemplate with the treeview control with regards to binding to the individual items CheckState property but can't seem to find that class either. Please help asap as this is rather urgent.

Thanks,
Peter.
Tina Stancheva
Telerik team
 answered on 08 Apr 2010
1 answer
89 views
Hi,
What are general rules for installation Visual Studio 2010 and using Telerik RadControls with it, in case if VS2008 and Telerik RadControls already installed on this machine?
Should Telerik RadControls be reinstalled after installation of VS2010?
Milan
Telerik team
 answered on 08 Apr 2010
17 answers
541 views
Cheers to Telerik,

I've just started using the telerik WPF and started with radgridview only.

Am using a Dataset to populate the Grid.This is not a typed dataset, but a dataset generated programmatically from a SQLServer 2005 DB.Am using VB.net 3.5 as well.To populate the Dataset am using a StoredProcedure

I was able to populate the grid using my dataset.Now I want to make a child for that grid with another dataset and the dataset uses another SP.So how can I attain this.I tried for help but majority is using LINQ.Am not much aware of LINQ.

Please find my code below.( I havent tried with the hierarchy here)

XAML
<Window x:Class="Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Window1" Height="515" Width="933" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    <Grid> 
         
        <telerik:RadGridView Margin="0,-12,22,163" Name="RGVW" AutoGenerateColumns="False"  ItemsSource="{Binding}" AlternateRowBackground="Bisque"
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn  Name="CDNO" UniqueName="CDNO" Header="CDNO"  /> 
                <telerik:GridViewDataColumn Name="Truck" UniqueName="Truck No" Header="Truck No"  /> 
                <telerik:GridViewDataColumn Name="Status" UniqueName="Status" Header="Status"  /> 
                <telerik:GridViewImageColumn Name="Flag" UniqueName="Flag" Header="Truck Flag"  /> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </Grid> 
</Window> 
VBCode (VS2008)
Private Sub Window1_Loaded(ByVal sender As ObjectByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded 
        Dim ds As DataSet 
        Dim dbConn As String = "Data Source=SQLSERVER;Initial Catalog=DB;_
Persist Security Info=True;User ID=!@#;pwd=!@#" 
        ds = DBA.ExecuteDataset(dbConn, "SP_DockForWPF"
        RGVW.DataContext = ds 
    End Sub 


Here the uniquenames am using is the field from the SP.
To connect to the DB am using, the Microsoft.StandardLib.DBAccess dll. (DBA is the instance of this DLL

I got a sample in C# from the following post http://www.telerik.com/ClientsFiles/164971_hierarchywithdataset.zip .Its the one which uses LINQ

Many thanks in advance

Renju


Renju Panicker
Top achievements
Rank 1
 answered on 08 Apr 2010
5 answers
113 views
So the structure of my tree is something like:

RootObject
    ChildObject1
        GrandChildObject1
    ChildObject2
        GrandChildObject2

Problem 1: When I drag and drop GrandChildObject1 to ChildObject2, the collection in ChildObject1 calls its Delete method, and I don't want that, since there's a few steps I need to do before removing GrandChildObject1 from ChildObject1.

Problem 2: When I drop GrandChildObject1 into ChildObject2, there's a few steps I need to do before finally adding GrandChildObject1 to ChildObject2. So doing this, also triggers the Add Method, so I end up having two children of the same item (one added by the TreeView itself, and one I add with my own method in the TreeView.RadTreeView_DragEnded event).

So, is there a way to prevent the TreeView from handling this, and not losing the little Drag&Drop preview when the drag starts? I just want to disable the TreeView from triggering a change in the Collection. I found out it was doing it by setting a breakpoint here:

private void GrandChildren_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) 
    this.NotifyPropertyChanged("GrandChildren"); // breakpoint here

EDIT: The collection of GrandChildren is an ObservableCollection<T>, and I can't change that to BindingList<T> or List<T>

Thanks!
Valentin.Stoychev
Telerik team
 answered on 08 Apr 2010
2 answers
206 views
Hello,

I would like to bind cell background color to cell value (via converter of course). However when I declare style in GridViewResource like this:

<Style TargetType="{x:Type telerik:GridViewCell}"
  <Setter Property="Background"
    <Setter.Value> 
      <SolidColorBrush Color="{Binding Converter={StaticResource decimalToColor}}" /> 
    </Setter.Value> 
   </Setter> 
</Style> 
which simply should return Brushes.Red.Color for value < 0 Green for value  > 0 and left color White when value is equal to 0. In debug mode I discovered that value passed to value converter is eqal to whole object (I'm binding ItemSource to collection of custom business objects) instead of being equal to object property value which is binded to column.

When I try to do something like this:

<telerik:GridViewDataColumn Width="45" DataType="{x:Type sys:Decimal}" Header="H1" DataMemberBinding="{Binding Path=H1, Mode=TwoWay}" DataFormatString="{}{0:n0}" IsGroupable="False" IsSortable="False" IsFilterable="False"
  <telerik:GridViewColumn.CellStyle> 
     <Style TargetType="{x:Type telerik:GridViewCell}"
       <Setter Property="Background"
         <Setter.Value> 
           <SolidColorBrush Color="{Binding Converter={StaticResource cellBGConverter}}" />
         </Setter.Value> 
       </Setter> 
    </Style> 
  </telerik:GridViewColumn.CellStyle> 
</telerik:GridViewDataColumn> 

it's even working, color is changed (value converter gets cell value), but I get an error:

"System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=H1; DataItem='DailyPosition' (HashCode=7712694); target element is 'SolidColorBrush' (HashCode=16353339); target property is 'Color' (type 'Color')
"
which cause low performance :(
Any ideas? How to get cell value in first style declaration?

Thanks in advance,
MC



srinivas nch
Top achievements
Rank 1
 answered on 08 Apr 2010
0 answers
95 views
Hi Team,

May I'm posting in worng place, but i don't know where to post it.

Actually my problem is....

I have content which is in wordml format stored in database, now I have to replace those tags and should display it in Textbox again.

my actual content in DB is

------------------
<w:document xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xml:space="preserve">    <w:body>      <w:sect>        <w:p>          <w:pPr>            <w:jc w:val="left" />            <w:spacing w:after="180" w:before="180" />          </w:pPr>          <w:r>            <w:rPr>              <w:rFonts w:ascii="Tahoma" w:hAnsi="Tahoma" w:cs="Tahoma" />              <w:sz w:val="16" />              <w:b w:val="off" />              <w:i w:val="off" />              <w:color w:val="000000" />            </w:rPr>            <w:t>dsafdsfdsafdfdsfdsfdfdf</w:t>          </w:r>        </w:p>        <w:p>          <w:pPr>            <w:jc w:val="left" />            <w:spacing w:after="180" w:before="180" />          </w:pPr>          <w:r>            <w:rPr>              <w:rFonts w:ascii="Tahoma" w:hAnsi="Tahoma" w:cs="Tahoma" />              <w:sz w:val="16" />              <w:b w:val="off" />              <w:i w:val="off" />              <w:color w:val="000000" />            </w:rPr>          </w:r>        </w:p>      </w:sect>    </w:body>  </w:document>

----------------------
Now I've to display actual content in Textbox by removing tags

Please suggest me a solution or any replated information

Thanks in advance.

Regards,

Sundari
sundaril lakshmi
Top achievements
Rank 1
 asked on 07 Apr 2010
1 answer
116 views
Hi there,

when using the Map control, do I need to get also a licence from the map provider (Bing->Microsoft)?

Kind regards,
Sörnt
Giuseppe
Telerik team
 answered on 07 Apr 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?