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

I used RadGridview and GroupDescriptor to show the records in group wise

When i am scrolling, some of the records are getting hidden(Showing blank spaces).

Can you help me in this.




Thanks,
Surya.



Maya
Telerik team
 answered on 04 Jun 2010
5 answers
696 views
I'm currently evaluating the GridView component for a prototype of an application and I've run into some problems that may be a show-stopper for us. The architecture that we've decided to use requires that the columns are either autogenerated or (for customization) programmatically created from meta data.

I've investigated the problem with several approaches: HypeLinkColumn, DynamicHyperLinkColumn, programmatic cell template and finally XamlReader cell template. I suspect that the reason is the same, that is that the binding expression for some reason fail to map to the right column in the datacontext.

The following code will produce a DataTemplate that I assign to the CellTemplate. Currently this produces a HyperLink with the content 'System.Data.DataRow', however filling in the PathProperty of the Binding will produces a blank/empty string. This problem persists even though I known (or even hard code) a column name/binding path that I've confirmed is in the current datacontext.  

Is there something I've missed about Binding expression in CellTemplate !?
                        FrameworkElementFactory tbContent = new FrameworkElementFactory(typeof(TextBlock)); 
                        tbContent.SetBinding(TextBlock.TextProperty, new Binding());  
 
                        FrameworkElementFactory hl = new FrameworkElementFactory(typeof(Hyperlink)); 
                        hl.AddHandler(Hyperlink.ClickEvent, new RoutedEventHandler(hl_Click)); 
                        hl.AppendChild(tbContent); 
 
                        FrameworkElementFactory tb = new FrameworkElementFactory(typeof(TextBlock)); 
                        tb.AppendChild(hl); 
 
                        DataTemplate dTemp = new DataTemplate(); 
                        dTemp.VisualTree = tb
                        dTemp.Seal(); 
Finn
Top achievements
Rank 1
 answered on 04 Jun 2010
2 answers
74 views
Hello,

Is it possible to define the color of nocolor ?

I'd like to have transparent for these automatic color

Thanks
Aurore
Bobi
Telerik team
 answered on 04 Jun 2010
1 answer
161 views
Hi All

Is it possible to bind the one column to 2 fields?

The scenario is that we have a sales rep, which requires both first and last names in the one column. I have managed this with a datatemplate:
<!-- Sales Rep Name Template -->
        <DataTemplate x:Key="SalesRepNameTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding user.first_name}" />
                <TextBlock Text=" " />
                <TextBlock Text="{Binding user.last_name}" />
            </StackPanel>
        </DataTemplate>




<telerikGridView:GridViewDataColumn Header="Sales Rep" CellTemplate="{StaticResource SalesRepNameTemplate}" />

But the issue is that this column can now not be sorted or grouped or filtered, which is also required.

How else would this be possible while still retaining sorting etc?
Veselin Vasilev
Telerik team
 answered on 04 Jun 2010
1 answer
111 views
So I have two Windows (same app) and one RadGrid in each, I simply want to dragdrop from one the other.  But the problem is that I have my windows on separate threads for better UI performance. And therefore get error: "The calling thread cannot access this object because a different thread owns it."

How can I solv this?

I open My windows like this:
private void ShowMyWindow1() 
 
Thread _Thread = new Thread(() => 
            { 
                MyWindow1 _MyWindow1 = new MyWindow1(); 
         
                _MyWindow1.Show(); 
                _MyWindow1.Closed += (sender, e) => 
                _MyWindow1.Dispatcher.InvokeShutdown(); 
 
                System.Windows.Threading.Dispatcher.Run(); 
            }); 
 
            _Thread.Name = "My Window"
            _Thread.SetApartmentState(ApartmentState.STA); 
            _Thread.Start(); 


Valentin.Stoychev
Telerik team
 answered on 04 Jun 2010
2 answers
161 views
I have a GridView with a second Grid View nested inside the Row detail template, this nested GridView then has it's own detail template.  I am getting a Binding error from the DetailsPresentor for this second item.  I am guessing this has something to do with the fact that when the application is loaded, no row is selected in the top level grid view and as a result the nested grid view to which the second Details presenter is bound does not exist.
Andrew
Top achievements
Rank 1
 answered on 03 Jun 2010
5 answers
185 views
Hi, I am having a wierd problem with the WPF RadGridView control 10.1.

I am binding an ObservableCollection<> of POCO's that implement INotifyPropertyChanged and that is all.  The properties of the class are all strings.  That observable collection is databound to the ItemsSource property.  The data is bound just fine, CanUserSort is true for the control and IsSortable is true on the columns. 

Is there some sort of interface that the POCO must implement in order to sort? 

Thanks,
David Sandor
Vlad
Telerik team
 answered on 03 Jun 2010
1 answer
131 views
Hi
When I save the layout of RadDocking panes using RadDocking.SaveLayout method only those panes that are declared in xaml code are saved correctly. Layout for those created dynamically (in run-tiime mode) is not saved. Is there any way to solve this issue? Because if I declare many panes (especially those that are floating) in xaml code  makes application startup slower (too many initializations).
Thanks.
Miroslav Nedyalkov
Telerik team
 answered on 03 Jun 2010
1 answer
76 views
How to bind the DeatilsRow to WCF.

My gridView's source is bound to a wcf operation , I wish to bind the details row to another wcf operation.
How to do that.
Rossen Hristov
Telerik team
 answered on 03 Jun 2010
3 answers
121 views
We are using the RadToolBar in the Q3 2009 release.

When we bind to the ItemSource of the RadToolBar it loads fine but if we make the window smaller (to the point where the overflow appears) then bigger, the items repeat. Attached is a before and after.


Valentin.Stoychev
Telerik team
 answered on 03 Jun 2010
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?