Telerik Forums
UI for WPF Forum
2 answers
76 views

I have a grid in which comboboxes are shown in each row to allow for selection of color for the item in that row.

Now we wish to have different lists of colors depending on the row; i.e. the itemssource for the comboboxes are no longer the same.

Before I had a single color-list on the viewmodel for the grid and xaml-databound-bound the comboboxes to that.

How do I get different itemssources for the comboboxes?

Thanks for any input,

Anders, Denmark

Anders
Top achievements
Rank 1
 answered on 24 Apr 2012
1 answer
95 views
I am setting te BrowsableAttribute = false  on a base class's Identifier's property .  In my example.. I have a nested property 2 levels deep that I want to show in the PropertyGrid (see attached image).   Here is some psudocode that describes the makeup of my class structutre that is bound to the PropertyGrid

BaseItem 
{
    [Browsable(False)]
    Guid ID;
    String Name;
}

ClassA: BaseItem
{
    NestedPropertyTypeA NestedProperty;
}

NestedPropertyType: BaseItem
{
    NestedSubPropertyTypeA SubPropertyA;
    NestedSubPropertyTypeB SubPropertyB;
}

NestedSubPropertyTypeA: BaseItem
{
   // Browsable ingored here for BaseItem.ID's property
}

NestedSubPropertyTypeB: BaseItem
{
   // Browsable ingored here too
}

We are using Q1 2012 release, build 326
Maya
Telerik team
 answered on 24 Apr 2012
0 answers
56 views

This is how my header looks like

                     Header 1                                                Header 2                             Header 3             
Header 1.1      Header 1.2    Header 1.3              Header 2.1 Header 2.2               Header 3               

Now how could i freeze the First two Header1 and Header2.
<ClientSettings>
 <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2">
 </Scrolling>
 </ClientSettings>

this does not work.
Any help will be appreciated.
Thanks,
Praveen
Praveen
Top achievements
Rank 1
 asked on 23 Apr 2012
1 answer
123 views
I have a grid that is populated  with a List<DataRow>
The issue I am having is on Selection Changed even how do I return the value in the first column, HolderID' of the selected row?
Eric Klein
Top achievements
Rank 1
 answered on 23 Apr 2012
2 answers
131 views
HI,

I am using Telerik grid and i have a requirement that i can change the order of the columns by drag and drop. I want to save and restore the order of the Column Headers at Runtime. Does Telerik Grid provide any facility to save and restore the Column Headers?Any help would be appriciated.

Thanks,
Priyesh Dubey 
Mehmet
Top achievements
Rank 1
 answered on 23 Apr 2012
2 answers
129 views
Hi
In order to add some hidden "meta data" to our RadDocuments
we decided to derive the Section class and add

public class EditorSection : Section
    {
        private ObservableCollection<Metadata> _metadata = new ObservableCollection<Metadata>();
        //[XamlSerializable]
        public ObservableCollection<Metadata> Metadata
        {
            get { return _metadata; }
            set { _metadata = value; }
        }
    }


Now we can create documents in XAML such as:
<c:EditorSection>
<c:EditorSection.Metadata>
 <c:Metadata Name="DocumentId" Value="{00000-..-..-..}" />
 <c:Metadata Name="Owner" Value="JohnWSmith" />
</c:EditorSection.Metadata>
<t:Paragraph>
<t:Span Text="Hi">
</t:Span>
</t:Paragraph>
</c:EditorSection>

However when saving the Document with XamlFormatProvider
the Metadata stuff is removed.

When Debugging my metadata class I can see a two instances
are created and the two props are assigned on load.

When I try an add the [XamlSerializable] attribute to my property
and also to the properties of the MetaData class
I get an runtime XamlParseException on loading the document:
Can't convert object of type "System.String" to "ObservableCollection<MyNameSapce.MetaData>"
The line in question is:

Telerik.Windows.Documents.FormatProviders.Xaml.XamlFormatProvider.Import(String input) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\FormatProviders\Xaml\XamlFormatProvider.cs:Line 126.

So it seems the XamlFormatProvider can't deal with the markup properly.
Is there a way to "tell" the XamlFormatprovider how (de)serialize my meta data collection
Do I need to specify a typeconverter or value converter also?

Thanks
Christoph
Top achievements
Rank 1
 answered on 23 Apr 2012
3 answers
159 views
Hi,
In my application, i am trying to view the contents in the gridview in the form of print preview dialog. 
I downloaded code from  http://www.telerik.com/community/code-library/wpf/gridview/radgridview-print-and-print-preview.aspx 
The print preview window showing the grid values.  But at the end of each page, bottom of the line, the last row data was partially cut in one page and remaining in next page. Please find the attached image. 

 Am i missing any settings?

Thanks,
Vinodh
Dimitrina
Telerik team
 answered on 23 Apr 2012
10 answers
239 views
Hi all,

The comboboxcolumn is not showing the info from the linked table:
this is the code snippet I'm using to define the column

column = GridViewComboBoxColumn.new()
column.DataMemberBinding = bind
column.UniqueName = colname
column.IsComboBoxEditable = true
column.ItemsSource = data_table_source.DefaultView
column.DisplayMemberPath = "name"
column.SelectedValueMemberPath = "id"
# add the column to the datagrid
raddatagrid.Columns.Add(column)

I can edit the column and the combobox appears populated in full, but as soon as I select an item the view doesn't show the result.

Any suggestions?

I'm using IronRuby, I can make it work as expected with the WPF .net 4.0 DataGrid without any problem.

Regards

Eduardo
Dimitrina
Telerik team
 answered on 23 Apr 2012
6 answers
301 views
Hello.

I have a RadGridView. And a fake element below. I want to bind AlternativeRowBackground to fake element Background property. And I want to do so in AlternativeRowStyle (because in code-behind this style is upgraded with other triggers, that change Background property due to some logic) and not in AlternativeRowBackground property.
 
Is it possible to do so somehow? 

<telerik:RadGridView ItemsSource="{Binding Data}" AlternationCount="2">
    <telerik:RadGridView.AlternateRowStyle>
        <Style TargetType="telerik:GridViewRow">
            <Setter Property="Background" Value="{Binding ElementName=FakeButton, Path=Background}"/>
        </Style>
    </telerik:RadGridView.AlternateRowStyle>
</telerik:RadGridView>
<Button x:Name="FakeButton" Background="Blue" Content="Button" />
Dimitrina
Telerik team
 answered on 23 Apr 2012
1 answer
125 views
I am using a TreeListView and want to scroll to a particular data item. This works fine if I have expanded the entire tree (hence I assume actually generating rows for all the data items). But if the tree is collapsed ScrollIntoView does not work. What is the recommended method to programatically display a particular data item in a TreeListView even if that data item has not been visible previously.

My datasets only contain approx 1000 items or so. Can I disable dynamic loading? I've had lots of problems trying to work with rows that apparently have not actually been created yet.

Thanks
Dave Goughnour
Dimitrina
Telerik team
 answered on 23 Apr 2012
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
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Bronze
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
Bronze
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?