Telerik Forums
UI for WPF Forum
3 answers
149 views
we've tried implementing a radgridview which synchronizes with a data form thru element binding within a backstage item of the ribbonview and found it now working. so we tested a simple textbox to textblock element binding and it still does not work.

something like this:

<telerikRibbon:RadRibbonBackstageItem Header="Recent" IsDefault="True">
     <StackPanel Margin="15 15 0 0">
          <TextBlock Text="{Binding ElementName=testtext, Path=Text}"/>
          <TextBox x:Name="testtext" />
     </StackPanel>
</telerikRibbon:RadRibbonBackstageItem>

we are using the Q2 version if it helps.

thanks
Pavel R. Pavlov
Telerik team
 answered on 26 Oct 2012
6 answers
207 views
Hi,

In one of my projects,I use WCF data services for querying the database,and use GridView, and DataForm for viewing and editing data.When the user double click on a row, I create a filtered DataServiceQuery (e.g. ID=55) and use it to initialize a QueryableDataServiceCollectionView<T> which I then assign to the RadDataForm ItemsSource.I can successfully add ,delete, and edit records by calling SubmitChanges() on the ItemsSource (which is of type QueryableDataServiceCollectionView<T>),
 but I am facing other difficulties:

1-I have an entity Sim which has a 1 to many association property called Installations. When clicking Cancel while editing or inserting in the DataForm, I get the following error which seems to be caused by the DataForm trying to set a value on the Installations property.

Setting an instance of DataServiceCollection to an entity property is disallowed if the instance is already being tracked. Error occurred on property 'Installations' for entity type 'TDS.DeviceManagementDataService.Sim'.


2-When I open an existing record for editing,and click the 'insert' button,fill-in the form,and click save,the record is saved but the form goes back and display the record that was being edited earlier.

My last question is: what is the best way of databinding a RadDataForm when working with WCF data service ?

GridView Double Click Code:

private void SimsGridView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {          
            SimView view = new SimView();
            QueryableDataServiceCollectionView<Sim> dataContext = new Telerik.Windows.Data.QueryableDataServiceCollectionView<Sim>(db, db.Sims.Where(i => i.ID == SimsGridView.GetSelectedItem<Sim>().ID).ToDataServiceQuery<Sim>());
            dataContext.PageSize = 100;
            dataContext.AutoLoad = true;
            view.DataContext = dataContext;
            view.Show();
            view.Focus();
            
        }

SimView Window:

<telerik:RadDataForm x:Name="rdfSim" ItemsSource="{Binding}" AutoGenerateFields="False"  HorizontalAlignment="Stretch"  VerticalAlignment="Stretch"
            ReadOnlyTemplate="{StaticResource MyTemplate}" NewItemTemplate="{StaticResource MyTemplate}"
                                 EditTemplate="{StaticResource MyTemplate}" EditEnded="rdfSim_EditEnded"
                                  CommandButtonsVisibility="All"   ValidatingItem="rdfSim_ValidatingItem" DeletedItem="rdfSim_DeletedItem">         
 
        </telerik:RadDataForm>



Thanks in advance

Madani
Chris
Top achievements
Rank 1
 answered on 26 Oct 2012
5 answers
201 views
I am using RadGridView for WPF 2012.3.1017.40

There is some issue with the column header depending on the type of XAML I invoked

When I use:
<telerik:GridViewDataColumn UniqueName="Year"  Header="Year" />
The grid does persists with the expected header "Year"

However when I use:
<telerik:GridViewDataColumn UniqueName="Year" >
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Year" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>

The following is injected into the persisted XML
    <PV Key="12" TypeKey="-664072138">
      <Value xsi:type="xsd:string"<System.Windows.Controls.TextBlock</Value>
    </PV>
and instead of "Year" in the Column header the grid persists the words "System.Windows.Controls.TextBlock" into the header instead.

Please note, it appears to be an extra < being injected within the value element. However I need the word "Year" instead.

How can I fix this?
Thank you,
Alan Painter
Dimitrina
Telerik team
 answered on 26 Oct 2012
4 answers
219 views

A part of a table shows the following datas:

[picture1.png]

The quick filter (Funnel Icon) doesn’t show all the values from the selectable items.

[picture2.png]

 

It seems well in the list, that the numbers are in ascending order, but more than one value which is in the table is missing from it (eg. ’-0,49’ or ’6,00’in the upper picture), and more than one value is duplicated (eg. ’-8,51’).

Informations and source code:

<Style x:Key="RightAlignedGridColumnStyle" TargetType="{x:Type telerik:GridViewDataColumn}">

      <Setter Property="TextAlignment" Value="Right"/>

</Style>

<Style x:Key="PercentGridColumnStyle" TargetType="{x:Type telerik:GridViewDataColumn}"

         BasedOn="{StaticResource ResourceKey=RightAlignedGridColumnStyle}">

      <Setter Property="DataFormatString" Value="{}{0:N2}"/>

</Style>

 

<telerik:GridViewDataColumn Width="185" Header="Low pr % to Normal pr orig"

     DataMemberBinding="{Binding LowPriceToEDLPOriginal}"

     Style="{StaticResource ResourceKey=PercentGridColumnStyle}">

</telerik:GridViewDataColumn>

 

  • LowPriceToEDLPOriginal: Receive from database, with not only two, but three digits after the decimal. Presumably the duplications occur because of this, because there is a ‘-8,511’ and a ‘-8,512’ value in the database.

 

 

Is there any solution for our problem? Thank you for your answer!

 

Attila Pados
Top achievements
Rank 1
 answered on 26 Oct 2012
1 answer
105 views
Is it possible to support arbitrary input, separated by semicolon (like the email entry field in gmail)?
Ivo
Telerik team
 answered on 26 Oct 2012
0 answers
98 views
Hi all,
       I have several text box, button and 2 datagrid on my screen, in tab key navigation, when datagrid row is selected (service call on row selection), tab  key is again going back to the main tab.i have applied keyboardnavigation.tabnavigation="local" on datagrid.  please help me in resolving this problem.
Kirti
Top achievements
Rank 1
 asked on 26 Oct 2012
0 answers
170 views
I have tab under which there is my user control containing 2 telerik datagrids and other controls like textbox and buttons. When i navigate using tab key for the  first time it goes through controls in order which i defined by using tab index and also go inside the datagrid cell but on row selection it again go back to main tab and after completing one cycle when i start tabbing again and then when i reach datagrid it skip the datagrid rows and go to the next control . i have defined the keyboardnavigation.Tabindex for each control.and keyboardnavigation.tabnavigation="cycle" and for datagrid i have defined keyboardnavigation.tabnavigation="local".

Kirti
Top achievements
Rank 1
 asked on 26 Oct 2012
8 answers
285 views
Hi All

I am trying to change the background colour of the ItemsPanel of the RadTabControl to transparent 

I tried using:        
        <telerik:RadTabControl.ItemsPanel>
            <ItemsPanelTemplate>
                <telerik:RadWrapPanel Background="Transparent"/>
            </ItemsPanelTemplate>
        </telerik:RadTabControl.ItemsPanel>

but that didnt work (curiously changing the colour to yellow was ok).

While I am here has anybody successfully added a button to tabpanel (not each tabitem) to make a tab control that looks like Chrome, Firefox etc.

Thanks

Paul

Petar Mladenov
Telerik team
 answered on 26 Oct 2012
1 answer
107 views
Hi

It's very important for us to have a double border on a table - is there any supported way to add additional border styles to the default list?

Thanks

Charlie
Petya
Telerik team
 answered on 25 Oct 2012
3 answers
71 views
I have a GridView with EditTriggers set to TextInput and F2. When I click a cell it does not get bordered by a black border, but if I use the arrow keys the black border appears. I need a way to show that the mouse click did indeed select the cell the user clicked. Note: I don't mean enter edit mode but rather the cell that would be edited on the next keystroke/F2 press. 
David
Top achievements
Rank 1
 answered on 25 Oct 2012
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?