Telerik Forums
UI for WPF Forum
5 answers
249 views

I am using wpf 4.0 and telerik (3rd party tool) in my application and in which using grid of telerik.Now in my application there is a requirement that if the screen resolution gets bigger than 1024*768 then the columns width should increase.So i gave column width as star (*).

But in case of more than 20 columns in one grid................all the columns get collapsed with each other and though I have done the ScrollBar visibility as auto...............I dont see the scroll bar.So kindly tell me what should be the correct way to define width for the column.

Ramesh
Top achievements
Rank 1
 answered on 15 Jul 2011
2 answers
56 views
I want to binding SumFunction with a textblock. But I don`t how to do it. Here is my XMAL Code:

telerik:GridViewDataColumn Header="Amount" UniqueName="Amount" DataMemberBinding="{Binding Amount}">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction x:Name="MyTotal" Caption="Sum:" SourceField="Amount" />
                </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>



 <TextBlock Height="23" HorizontalAlignment="Right" Margin="0,28,98.377,0" x:Name="textBlock1" Text="{Binding "Need something to do", ElementName=radGridView1}" VerticalAlignment="Top" TextInput="textBlock1_TextInput" Width="79" d:LayoutOverrides="VerticalAlignment" />


thank`s for Help
Md.Hasanuzzaman
Top achievements
Rank 1
 answered on 14 Jul 2011
13 answers
299 views
Hi,

I faced with a problem that RadTreeListView.ScrollIntoView() doesn't works at all.

I need your support or workaround if so exist asap.

Thank you in advance,
Julian
Maya
Telerik team
 answered on 14 Jul 2011
1 answer
175 views
Hi, I'm using the RadTreeView, binding it t to a list of objects, which have a IsChecked property and binding it using the item container style.

 But i trying to get this approach:
- If I choose children, the parent is marked using the IsTriStateMode in true) and the event Checked/Unchecked is fired
- If check the parent root, the children won't be marked and the event Checked isn't fired.

Any ideas of how to do this approach?
thank you
Pam
Top achievements
Rank 1
 answered on 14 Jul 2011
15 answers
262 views
Is there any timeframe on a port of the RadBreadCrumb control to WPF?
lkeel
Top achievements
Rank 1
 answered on 14 Jul 2011
1 answer
336 views
Hi,
DateTimePicker shows a min value as 1/1/0001 in calender.How to default it to as todays date.
In other case, if i am not selecting any date from datepicker, datetime property holds the mindate value.How to make this as empty string.
I am using MVVM pattern,
Ivo
Telerik team
 answered on 14 Jul 2011
3 answers
105 views
Hi there.

So if you reference this post, http://www.telerik.com/community/forums/wpf/gridview/add-to-selecteditems-via-behavior.aspx you will see that Maya gave us some sample code with the custom behavior that lets us manipulate the selected items of a gridview from the code behind, i.e. changing the selected items list shows up on the grid as selected. the only problem is that we are changing the list of items that the SelectedItems property is bound to inside of the view model and not on the code behind for the page so we can't say something like
//This is from the window.xaml.cs file
((MyDataContext)
this.LayoutRoot.DataContext).SelectedItems.Add(((MyDataContext)this.LayoutRoot.DataContext).Data.Where(x => x.ID == 4).First());
Any ideas on how we can make this work? I tried something like this in the view model
//This is from the view model
public
LineItem SelectedItem
{
  get
  {
    return selectedItem;
  }
  set
  {
    selectedItem = value;
    selectedItems.Clear();
    var list = Data.Where(x => x.OrderId == value.OrderId);
    foreach (var lineItem in list)
    {
      SelecedItems.Add(lineItem);
    }
    OnPropertyChanged("SelectedItem");
  }
}
but that doesn't work. There is something I am missing here, some sort of notification is taking place when you say - MyRadGridView.SelecedItems.Add() that doesn't take place from the view model even thought they are the same collection of objects. If I could figure out what that is maybe I could figure out how to make this thing work.

Thanks for any help or suggestions...
ken
Top achievements
Rank 1
 answered on 14 Jul 2011
1 answer
174 views
Hi

Can we drag item from combobox?

Thanks
Yana
Telerik team
 answered on 14 Jul 2011
0 answers
75 views

Hi,
Grid Sorting and Filtering Not working while using MultipleStringConvertor in DataGridColumn. Need help on the same please asap.
swati
Top achievements
Rank 1
 asked on 14 Jul 2011
2 answers
255 views
For a proof of concept linked to my question described here (see my last post) I have begun experimenting with modifying a deserialized RadDocument prior to assigning it to the control. The idea behind this is to store links to external resources using the standard HyperlinkRangeStart-HyperLink-HyperlinkRangeStop concept and transforming those hyperlinks into custom controls hosted in InlineUIContainer objects.To test if this can work I've tried the following:

var doc = provider.Import(xml);

var hyperLinks = doc.EnumerateChildrenOfType<HyperlinkRangeStart>();
foreach (var link in hyperLinks)
{
var parent = link.Parent;
parent.Children.Remove(link);

InlineUIContainer container = new InlineUIContainer(new Button(), new Size(400, 300));
parent.Children.Add(container);
}

doc.History.Clear();

// BOOOM
doc.UpdateLayout();

This will crash in UpdateLayout or when I assign the document to a RadRichTextBox with the following exception:

InvalidOperationException "Stack Empty"

"   at System.Collections.Generic.Stack`1.Pop()\r\n   at Telerik.Windows.Documents.Layout.LayoutBox.UpdateFieldProperties(DocumentElement element, Stack`1 fieldStartsStack) in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\LayoutBox.cs:line 541\r\n   at Telerik.Windows.Documents.Layout.LayoutBox.UpdateFieldProperties(DocumentElement element, Stack`1 fieldStartsStack) in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\LayoutBox.cs:line 524\r\n   at Telerik.Windows.Documents.Layout.LayoutBox.UpdateFieldProperties(DocumentElement element, Stack`1 fieldStartsStack) in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\LayoutBox.cs:line 524\r\n   at Telerik.Windows.Documents.Layout.LayoutBox.UpdateFieldProperties(DocumentElement element) in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\LayoutBox.cs:line 520\r\n   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.UpdateGlobalProperties() in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\DocumentLayoutBox.cs:line 276\r\n   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.MeasureOverride(SizeF availableSize) in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\DocumentLayoutBox.cs:line 259\r\n   at Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize) in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\LayoutElement.cs:line 1473\r\n   at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize) in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\LayoutElement.cs:line 1352\r\n   at Telerik.Windows.Documents.Layout.ContextLayoutManager.UpdateLayout() in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\ContextLayoutManager.cs:line 360\r\n   at Telerik.Windows.Documents.Layout.LayoutElement.UpdateLayout() in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Layout\\LayoutElement.cs:line 982\r\n   at Telerik.Windows.Documents.Model.RadDocument.UpdateLayout() in c:\\TB\\101\\WPF_Scrum\\Release_WPF_40\\Sources\\Development\\Documents\\Model\\RadDocument.cs:line 706\r\n   at Mindspace.DocumentEditors.RichTextDocumentEditor.<SetEditorContent>b__3() in C:\\Users\\oliver\\Projects\\Mindspace\\SilverlightClient\\DocumentEditors\\RichTextDocumentEditor.cs:line 296"
Iva Toteva
Telerik team
 answered on 14 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?