Telerik Forums
UI for WPF Forum
7 answers
687 views
Hi

I am trying to show the detailvisibility from a row after filling up the gridview.
but the row i receive row=... is always nothing.
I found the code to retrieve the row in an other forumthread.
but it is not working.

I work with the latest version of the controls.

Dim dt As datatable
  
dt = getdatatable.defaultview
Me.radDataPager.Source = dt
radDataPager.MoveToLastPage()
             
Dim row As Telerik.Windows.Controls.GridView.GridViewRow
row = Me.radGridView.ItemContainerGenerator.ContainerFromIndex(radGridView.Items.Count - 1)
row.DetailsVisibility = Visibility.Visible

Thanks

Kristof
Sajid Ali
Top achievements
Rank 2
 answered on 08 Mar 2013
2 answers
322 views
Esc doesn't close the window, why? 

<telerik:RadButton Content="Cancel" Command="telerik:WindowCommands.Close" telerik:RadWindow.ResponseButton="Cancel" Width="70"/>
Martin
Top achievements
Rank 2
 answered on 08 Mar 2013
1 answer
469 views

After reading posts, looking at examples and trying everything I can think of I've finally decided to post.
The busyIndicator on my view doesn't show until after the work is done.  Sometimes it never shows.  I have a grid with multiple aggregate functions.  It seems like IsBusy is set to true, data is retrieved, IsBusy is set to false, and the UI is locked until the aggregates have completed their calculation.  Is there a better time to set IsBusy=false, like some event on the grid?  I tried binding BusyIndicator.IsBusy to RadGridView.IsBusy, but it didn't make any difference. What I want, is to call the method below, immediately show the busy indicator, get the data, and hide the inidicator.  The SetIsBusy method is called as part of a Task (TaskFactory.StartNew), thus the need for the Dispatcher to set IsBusy = value.  But still, the inidicator does not immediately show.  I have the DisplayAfter property set to 0. 

What is the most reliable way to immediately show the busy indicator before loading the grid and the proper way to hide it after the aggregates have completed computation?


public
void SetIsBusy(bool value, Func<ReadOnlyObservableCollection<TResult>> executeSearch)

    {

        Application.Current.Dispatcher.Invoke(new Action(() =>

        {

            IsBusy = value;

        }), DispatcherPriority.Send, null);

        if (this._IsBusy)

        {

            var backgroundWorker = new BackgroundWorker();

            backgroundWorker.DoWork += new DoWorkEventHandler((object sender, DoWorkEventArgs e) =>

            {

                e.Result = executeSearch();

            });

            backgroundWorker.RunWorkerCompleted += OnExecuteSearchCompleted;

            backgroundWorker.RunWorkerAsync();

        }

    }

Ivo
Telerik team
 answered on 08 Mar 2013
1 answer
107 views

Hello Team,

I m using RadDocumentPane.
I m loading data for  RadDocumentPane by adding Content to it.
Once RadDocumentPane is Loaded, Again if i want to set the value of Content the UI is not updating according to Content.
Please let me know how to Update or Refresh the content of RadDocumentPane


Regards
Saurabh
Boyan
Telerik team
 answered on 08 Mar 2013
3 answers
143 views
Hi,

I am using RadChart in my application.I am loading all styles from a resource theme file.
The problem is that i am unable to use SeriesItemLabelStyle and HorizontalBarSeriesStyle of RadChart as DynamicResource.
this is a critical issue Since we can have different themes for our application.
 
Thanks
Dhruv 
 
Peshito
Telerik team
 answered on 08 Mar 2013
1 answer
199 views
We have just upgraded to the latest Telerik WPF release (Q1 2013) and now, when printing from the PDFViewer, portions of the right part of the documents no longer print. The document displays fine in the viewer and when saved as a PDF and opened and printed from Adobe, the document prints fine.

I have looked in your documentation for WPF and found this page:Trouble Shooting Common Problems ,but the PrintSettings object used by the WPF version does not implement the ForceVector property. I have also tried using the new PageMargins property of the PrintSettings, but this has no affect on this issue. Does anyone else see the same behavior and/or does anyone have a suggestion?

I have attached scans of the printings. A correct one printed from Adobe and an incorrect one printed from the PDFViewer.

Thanks,
Steve
Kammen
Telerik team
 answered on 08 Mar 2013
1 answer
182 views
hi.

I am using the "ApplicationThemeManager.cs" from the "RadControls for WPF Q2 2012 Demos".
I called the "EnsureResourcesForTheme" method with these resourses as argument and the theme name.
private string[] resourcePaths = new string[]
                    {
                        "Telerik.Windows.Data",
                        "Telerik.Windows.Controls",
                        "Telerik.Windows.Controls.Input",
                        "Telerik.Windows.Controls.Navigation",
                        "Telerik.Windows.Controls.RibbonView",
                        "Telerik.Windows.Controls.GridView",
                    };
every things is working well and all controls changes to new theme (AT RUNTIME) but for the RadWindow and RadRibbonWindow nothing happens (AT RUNTIME).

please do not suggest me to use "StyleManager.ApplicationTheme" or "StyleManager.SetTheme".
just tell me how your sample code is working????
Dimitrina
Telerik team
 answered on 08 Mar 2013
12 answers
384 views
hi,

i have problem with refreshing column data when using expressions. My gridview is bind to datatable. 

example:

Datatable has column 1 and column2
  
column 1,
column 2,
...
expression column
expression = "column1+column2"

Is there any way to rebind or refresh expression? My datatable is dynamically filled with data.

mygrid.itemsSource=datatable.defaultView

Dalibor
Top achievements
Rank 1
 answered on 08 Mar 2013
8 answers
286 views
Hello,

I am now solving problem based on scrolling to previous visible items after source collection update when is used grouping. No grouping, no problem. But how to get first visible item, when some groups can be expanded, some collapsed etc.? This thread helped me a lot, but I need a little more help to get full functionality I need. 

Thanks
Petr
Top achievements
Rank 1
 answered on 08 Mar 2013
3 answers
395 views
Is there a way to disable the RadDataForm's horizontal or vertical scrolling? I've tried this...

<telerik:RadDataForm
            x:Name="PartForm"
            AutoGenerateFields="False"
            CurrentItem="Model"
            EditTemplate="{StaticResource PartFormTemplate}"
            Header="{Binding Model.PartNumber}"
            NewItemTemplate="{StaticResource PartFormTemplate}"
            ReadOnlyTemplate="{StaticResource PartFormTemplate}"
            ScrollViewer.CanContentScroll="False" />

...(note the ScrollViewer.CanContentScroll="False") and it does absolutely nothing. My LoB form has a grid which, among other things, includes two columns - one with a fixed width and the other with a starred width. The starred width column includes a TextBlock where wrapping has been enabled. I need RadDataForm to allow for disabling the horizontal scrolling so that the text actually wraps.

Ideas? Suggestions?

-Greg
Mark
Top achievements
Rank 1
 answered on 07 Mar 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?