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

I'm binding listbox ItemsSource with oepenaccess, how to sync RadListBox and Database for example if remove from listbox selected item removed from database if add item in listbox added in database.

Thanks.
Yana
Telerik team
 answered on 16 May 2013
3 answers
87 views
Hi Team,

We are using Telerik controls for designing the UI of our application and CUIT for testing the UI.

In the UI design, we are hosting a control inside RadDocking.DocumentHost. The code looks as below:
 	<telerik:RadDocking.DocumentHost>
             <uc:UserControl1 Name="UserControl" />
        </telerik:RadDocking.DocumentHost>

We are trying to automate the above control(UserControl) and there we were facing issues with identification of the control(
UserControl) placed inside the DocumentHost.This is a blocking issue.

Could anyone help in providing a solution to go ahead with the automation of the control in the mentioned scenario?

Thanks in advance,
Rajesh.



Georgi
Telerik team
 answered on 16 May 2013
4 answers
109 views
Hi,

I want to modify the default design of GroupItem in RedGridView control. Please have a look at image attach to understand exact requirement.

Current Design

Accommodation

Accommodation

Column2

Column3

Column4

Accommodation

Column2

Column3

Column4

Accommodation

Column2

Column3

Column4

Contingency

Contingency

Column2

Column3

Column4

Contingency

Column2

Column3

Column4

Meals

Meals

Column2

Column3

Column4

Meals

Column2

Column3

Column4


Expected Design

Accommodation

Column2

Column3

Column4

Column2

Column3

Column4

Column2

Column3

Column4

Contingency

Column2

Column3

Column4

Column2

Column3

Column4

Meals

Column2

Column3

Column4

Column2

Column3

Column4


Can please someone let me know that design can be achieved or not and do I need to modify existing template or it can be done with some properties?

Thank you
Max
Top achievements
Rank 1
 answered on 16 May 2013
1 answer
133 views
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:Telerik_Windows_Controls_Primitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
                    >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources.xaml"/>
  
    </ResourceDictionary.MergedDictionaries>
    <Style TargetType="{x:Type telerik:RadPaneGroup}" x:Key="StandardPaneGroup">
  
        <Setter Property="Background" Value="#1C1C1C"></Setter>
        <Setter Property="BorderBrush" Value="#1C97EA"/>
          
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type telerik:PaneHeader}">
                    <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="true" Height="23">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="25"/>
                        </Grid.ColumnDefinitions>
                          
                    </Grid>
                </ControlTemplate>
                     
            </Setter.Value
        </Setter>
          
    </Style>
</ResourceDictionary>

I am creating an application where it can have the docking functionality. SO I choosed telerik controls for it as it makes my work simple.

I am facing the issues while setting the styles for Header in the RadPane. I am createing RadPane's dynamically through a click event of a  menu Item.  I want to set a style for RadPane header,border of my own  where I Can use it all over  my application.  I am confused either to write styles for RadPane or RadPane group or PaneHeader.

Attached file is the sample of my application created using the general WPF controls like Menu, Tabcontrol. Created styles

Masha
Telerik team
 answered on 16 May 2013
6 answers
292 views
Hello Telerik,

I need to change column type of cell from GridViewDynamicHyperlinkColumn to GridViewDataColumn from code behind or data trigger which depend on DataMemberBinding="{Binding status}"  that return "Yes" or "No"

eg. 
GridView1.ItemSource 
fileName = "xxx" , status = "Yes" 
fileName = "aaa" , status = "No"
expected result
      Column 0          Column 1
Row 0 :       xxx        :        Yes        
Row 1 :       aaa         :        No           

[row0,col1 (Yes)] should be DynamicHyperlinkColumn to open a file like XAML below
[row1,col1 (No)] should be DataColumn

XAML
<telerik:RadGridView x:Name="GridView1" AutoGenerateColumns="False">
    <telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding fileName}" Header="Filename" />
    <telerik:GridViewDynamicHyperlinkColumn DataMemberBinding="{Binding status}"
     Header="Upload Status"      NavigateUrlMemberPaths="status"
     NavigateUrlFormatString="{} file:///C:/{0}.xls" TargetName="_blank" />
   </telerik:RadGridView.Columns>
</telerik:RadGridView>

Please give me some advice.

Regards,

SweNz

Dimitrina
Telerik team
 answered on 16 May 2013
0 answers
354 views

Hello Team,

I have a RadGridView with checkbox column  and also have another checkbox on header for selecting all checkbox. One user select header checkbox all the checkboxes in the rows should be selected. Here is my code

for (int j = 0; j <= ChecklistOfEditLoadItems.Count; j++)
                        {
                            GridViewRow row =
                                this.editload.ItemContainerGenerator.ContainerFromItem(ChecklistOfEditLoadItems[j]) as GridViewRow;
                            if (row != null)
                            {
                                TruckInventorySolution s = row.Item as TruckInventorySolution;
                                CheckBox ab = row.FindChildByType<CheckBox>();
                                if (row.IsEnabled == false || s.IsCommitted == true)
                                {
                                    ab.IsChecked = false;
                                }
                                else
                                {
                                    ab.IsChecked = true;
                                }
                            }
                        }

but this process is very very slow.. Please help to solve this problem.


Thanks,
Sravanthi
Sravanthi
Top achievements
Rank 1
 asked on 16 May 2013
3 answers
165 views
Do you know of  a way to disable a gallery and/or single nodes (GraphNode / NodeViewModelBase) - so it will be "grayed" and can't be dragged.

I wan't to disable some objects in that palette when certain condition apply to the diagram (max nodes count)

Thanks,
Guy
Petar Mladenov
Telerik team
 answered on 16 May 2013
7 answers
613 views

Hi,

we use Telerik V2012.1.326.35 with VS2008 and we have a strange problem :(

Actually in our solution, in one of our project we added a RadPdfViewer in a XAML file. In code behind, on a RadButton click event, we call the following method :

private void loadDoc()
{
    PdfDocumentSource newDoc = new PdfDocumentSource(new Uri(@"c:\MyDir\pdf2.pdf"));
    PdfDoc.DocumentSource = newDoc;

}

I don't know why but I always received the follwing error message (see attached file).

If I move our method in a brand new solution and project, it work!!! I checked all Telerik files and they are the same in both projects.

Any thought???
Thank's

Matthew
Top achievements
Rank 1
 answered on 16 May 2013
2 answers
222 views
I am using RadDiagram for my collection of shapes, but need to know how to customize it:
  • Allow selection/resizing (and show the selection & resize handles), but don't display any connectors or allow user to connect one shape to another
  • Change the units displayed during resizing to be something other than pixels (I want inches)
  • Show bounding box around shape when I select it. I have a simple line shape and it is very hard to get the resize controls to show up. I wished it just showed a bounding box selection when I selected it.

I am willing to do these things in XAML, code-behind or combination of both.

Thanks,
 Alan
Alan
Top achievements
Rank 1
 answered on 15 May 2013
2 answers
390 views
While the RadNumericUpDown control still has the focus from a previous edit,
if I update what it is bound to in code behind and RaisePropertyChanged for the property,
the RadNumericUpDown does not get updated.

If I first take the focus off of RadNumericUpDown on to another control before changing the bound value in the same way
as above the same RadNumericUpDown does get updated.

Some questions:
  * Is this behavour expected?
  * How can I disable/workaround this?

Below is how I am defining the control and binding in XAML:
<controls:RadNumericUpDown x:Name="XTextBox" Value="{Binding GraphicalItem.Rect.X}" UpdateValueEvent="PropertyChanged" Minimum="{Binding GraphicalItem.Rect.MinX}" Maximum="{Binding GraphicalItem.Rect.MaxX}" LargeChange="{Binding LargeCoordinateChange}" SmallChange="{Binding SmallCoordinateChange}" BorderBrush="#FFCBCBCB" Margin="3,2,0,2" HorizontalAlignment="Right" BorderThickness="1" Background="{x:Null}" Height="20" MinWidth="40" Padding="1,1,2,1"/>


Alan

Alan
Top achievements
Rank 1
 answered on 15 May 2013
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
PersistenceFramework
DataPager
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?