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

Is it possible to add controls like textblock, buttons, etc... under a tab item?  I have an application I'm mocking up and I'd like to show the main function of the application in the 1st tab and rich content in other tabs.

Thank you!
Teo
Top achievements
Rank 1
 answered on 24 Apr 2012
1 answer
226 views
Hi,

I have a gridview that consists of mix data bound columns and custom template column. The custom template column are basically a check box column and a calendar column. I used the techniques from this example to create those custom column (using the CreateCellElement)

http://www.telerik.com/community/forums/wpf/gridview/tab-navigation-in-a-grid-with-a-button-column.aspx

The check box column works fine with tabbing to/from the column. However the issue is with the Calendar column, as the tabbing doesn’t get the focus in the calendar control inside the column, and it doesn’t move away from it to move to the next column. Instead the focus moves to the next control beside the grid.

Any advice how to accomplish a smooth tab navigation between all column, and have the focus land in the inner controls when it is a custom column?

Regards

public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
{
    cell.GotFocus += this.cell_GotFocus;
     
    var picker = cell.Content as RmpDatePicker ?? new RmpDatePicker()
                     {
                         HorizontalAlignment = HorizontalAlignment.Stretch
                     };
    this.BindingTarget = RmpDatePicker.SelectedDateProperty;
    picker.SetBinding(this.BindingTarget, this.CreateValueBinding());
    return picker;
}
private void cell_GotFocus(object sender, RoutedEventArgs e)
{
    var picker = (sender as GridViewCell).ChildrenOfType<RmpDatePicker>().FirstOrDefault();
         
    if (picker == null) return;
          
    picker.Focus();
    picker.HorizontalAlignment = HorizontalAlignment.Stretch;
}
private Binding CreateValueBinding()
{
    var valueBinding = new Binding
                           {
                               Mode = BindingMode.TwoWay,
                               NotifyOnValidationError = true,
                               ValidatesOnExceptions = true,
                               UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged,
                               Path = new PropertyPath(this.DataMemberBinding.Path.Path)
                           };
    return valueBinding;
}


Nedyalko Nikolov
Telerik team
 answered on 24 Apr 2012
2 answers
90 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
113 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
67 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
154 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
145 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
150 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
168 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
266 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
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?