Telerik Forums
UI for WPF Forum
1 answer
124 views
Hi
I have a grid which I add rows to
when there is a vertical scroll
I want to see the added row
so I use
gvSystemTables.SelectedItem = gvSystemTables.Items[System.Convert.ToInt32(gvSystemTables.Items.Count) - 1];  
gvSystemTables.BringDataItemIntoView(gvSystemTables.Items[System.Convert.ToInt32(gvSystemTables.Items.Count) - 1]); 
the problem is
when the grid does not  have scroll
after I add a row the grid scrolls down
although there is enugh place and no need to scroll
any idea?
Nedyalko Nikolov
Telerik team
 answered on 02 Oct 2009
1 answer
288 views
Since RadWindow don't have closing event, how I can prevent closing a RadWindow? For instance prevent to close without save something.
Miroslav Nedyalkov
Telerik team
 answered on 02 Oct 2009
1 answer
126 views
Hi,
i'm  trying to bind a carousel with a CarouselDataRecordPresenter.

  • When i'm binding with a datatable, it's OK ( detail code see 1))
  • When i'm binding with an objet, the carousel have 2 elements but the property Lib of my object CarouselViewModel is not displayed ( detail code see 2).

     Remark:

     my visual Studio show me a error "Type or property expected " for the Data when i write the  Binding         Path=Data.CarouselViewModel.Lib

    When i don't use the  CarouselDataRecordPresenter, the carousel displays 2 elements with the name of property (LIB) and its Value.
    I tried other type of binding like Data[0] or Fields[Lib)..., but it doesn't work.  
    What's wrong with my binding? 

    Can you help me?

    1) BINDING with DATATABLE
    When i bind a carousel with a datatable , the carousel display the item of my row :
    In my code behind :

DataTable

 

dt = new DataTable();

 

 

DataColumn dc = new DataColumn("Lib");

 

dt.Columns.Add(dc);

 

DataRow dr = dt.NewRow();

 

dr[

"Lib"] = "Item1";

 

dt.Rows.Add(dr);

dr = dt.NewRow();

dr[

"Lib"] = "Item2";

 

dt.Rows.Add(dr);

sampleRadCarousel.ItemsSource = dt;

In my Xaml :

 

 

<Style TargetType="{x:Type Controls:CarouselDataRecordPresenter}">

 

 

 

<Setter Property="Template">

 

 

 

<Setter.Value>

 

 

 

<ControlTemplate TargetType="{x:Type Controls:CarouselDataRecordPresenter}">

 

 

 

<StackPanel Margin="0,20,0,0" TextElement.FontWeight="Bold">

 

 

 

<Label Content="{Binding Path=Data[Lib]}"/>

 

 

 

<Label Content="test"/>

 

 

 

</StackPanel>

 

 

 

</ControlTemplate>

 

 

 

</Setter.Value>

 

 

 

</Setter>

 

 

 

</Style>

 

2) BINDING MODELVIEW
In code behind 

Collection

 

<CarouselViewModel> ListeCarousel = new Collection<CarouselViewModel>();

 

 

CarouselViewModel carouselview = new CarouselViewModel("item1");

 

ListeCarousel.Add(carouselview);

 

CarouselViewModel carouselview1 = new CarouselViewModel("item2");

 

ListeCarousel.Add(carouselview1);

sampleRadCarousel.ItemsSource = ListeCarousel;

In xaml :

 

 

<Style TargetType="{x:Type Controls:CarouselDataRecordPresenter}">

 

 

 

<Setter Property="Template">

 

 

 

<Setter.Value>

 

 

 

<ControlTemplate TargetType="{x:Type Controls:CarouselDataRecordPresenter}">

 

 

 

<StackPanel Margin="0,20,0,0" TextElement.FontWeight="Bold">

 

 

 

<Label Content="{Binding Path=Data.CarouselViewModel.Lib}"/>

 

 

 

<Label Content="2"/>

 

 

 

<Label Content="3"/>

 

 

 

</StackPanel>

 

 

 

</ControlTemplate>

 

 

 

</Setter.Value>

 

 

 

</Setter>

 

 

 

</Style>

 


 
Milan
Telerik team
 answered on 01 Oct 2009
1 answer
114 views
Hi,
      I am using Telerik WPF control.I need to short multiple column in GridView through WPF.
      Can any one will help me for this.
Milan
Telerik team
 answered on 01 Oct 2009
5 answers
250 views
I am using styles to override the control template of a GridViewCell.  In certain cases, I display a radcombobox.  In one case, I set the ItemSource of the combobox to a List<String>, but want to allow the user to type in values.  I set combobox IsEditable to True, which changes the display style of the combo.  It sort of works by binding to the combobox.Text property, but the behavior is a little off.  If I type a character in the editable combobox, I have to click several times to get the focus back into the combo so I can type another character.  Is there any way to keep the focus in the combobox or is there a better way?

Thanks in advance,
David Collins
David Collins
Top achievements
Rank 1
 answered on 01 Oct 2009
1 answer
301 views
Hi,

I was not able to Bind Checked Items in RadTreeView to a list of predefined entities.

What is the preferred approach bind the list of hierarchical data in two way mode to checked Items in tree. So that check/uncheck will  update the bound list.

Regards,
Deepak N
Kiril Stanoev
Telerik team
 answered on 01 Oct 2009
3 answers
122 views
I apologize if this is covered somewhere else but I have been unable to find it so far.  I'm trying to "sync" a detail screen with a Telerik gridview.  The user will edit the information on the detail screen and then save.  I want the save process to update the grid information but I want to be able to return to the record being edited.  This is a multi-user scenario so there is no guarantee that a record would return in the same position so I'm trying to come up with a way to "Find" the right record to fill the SelectedItem property.  I would like to be able to utilize the data's primary key to search the grid and selected that record, is this possible?  I've been looking at the FindRecord method but without success.

Thanks,
-Sid Meyers.
Stefan Dobrev
Telerik team
 answered on 01 Oct 2009
1 answer
166 views
Hai,
    I am using 2D pie chart. In that i want to change ChartLegend Foreground color as Black. When i use the below code it doesn't works.

RadChart.DefaultView.ChartLegend.Foreground =

new SolidColorBrush(Colors.Black);

How can i do this?

Thanks.

 

Velin
Telerik team
 answered on 01 Oct 2009
13 answers
483 views
Whenever I try to load the demo it crashes on my machine.  The error log is below.

PLATFORM VERSION INFO
    Windows             : 5.1.2600.131072 (Win32NT)
    Common Language Runtime     : 2.0.50727.1433
    System.Deployment.dll         : 2.0.50727.1433 (REDBITS.050727-1400)
    mscorwks.dll             : 2.0.50727.1433 (REDBITS.050727-1400)
    dfshim.dll             : 2.0.50727.1433 (REDBITS.050727-1400)

SOURCES
    Deployment url            : http://demos.telerik.com/wpf/

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * An exception occurred while downloading the manifest. Following failure messages were detected:
        + Exception reading manifest from http://demos.telerik.com/wpf/Telerik.Windows.Examples.xbap: the manifest may not be valid or the file could not be opened.
        + Manifest XML signature is not valid.
        + No signature was present in the subject.


COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    No phase information is available.

ERROR DETAILS
    Following errors were detected during this operation.
    * [11/7/2008 9:01:28 AM] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
        - Exception reading manifest from http://demos.telerik.com/wpf/Telerik.Windows.Examples.xbap: the manifest may not be valid or the file could not be opened.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
            at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName)
            at System.Deployment.Application.DeploymentManager.BindAsyncWorker()
        --- Inner Exception ---
        System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
        - Manifest XML signature is not valid.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
            at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
        --- Inner Exception ---
        System.Security.Cryptography.CryptographicException
        - No signature was present in the subject.

        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags)
            at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.


Vlad
Telerik team
 answered on 30 Sep 2009
1 answer
171 views
Hi,

I have two radgridview. The first has only MasterGridviewTemplate, the second has MasterGridviewTemplate and ChilGridViewTemplate.

The first grid has a column name is Price. It's FormatString is {0:#,##0.00} . it shows prices like 8.26 although incoming values is 8.2600. It is good, I want to this.

But I could not achive this on the second grid's ChildGridViewTemplate. On the second grid's ChildGridViewTemplate has a column name is Price. It's FormatString is {0:#,##0.00} . But it shows prices like 8.2600. I want to show it as 8.26.


Please help.
Nedyalko Nikolov
Telerik team
 answered on 30 Sep 2009
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?