Telerik Forums
UI for WPF Forum
3 answers
97 views
Hi,

I am facing an issue with the WPF RadGrid, that when i extend a column width, the column title gets cut off. Please refer attached screenshot. Could anyone help me with this please?

Thanks.
Ruhban
Top achievements
Rank 1
 answered on 10 Mar 2012
0 answers
131 views

Hello,

We are working with Telerik TreeListView control to display hierarchical data. We have a tree with upto 3 levels deep and unable to to maintain the expanded/collapsed state everytime we do a rebind. The tree collapses every-time we save the data and rebind the data back to the control. We have looked at options of manually storing the state (expanded/collapsed nodes)  on IsExpandedChanged() and expanding the nodes manually using treeListView.ExpandHierarchyItem(item) after rebind. This doesn’t seem to work as expected.

We also tried the MVVM approach as suggested in the demo but this works only for the first time.

This is an urgent request and any help on this at the earliest would be greatly appriciated.

Thanks,
Mahesh

Mahesh Aloysius
Top achievements
Rank 1
 asked on 10 Mar 2012
10 answers
597 views
How can I make the GridView resize itself when the window is being resized. I have the GridView inside a Header Content control. The Header Content control resize itself horizontally but not vertically.

The GridView inside the Header Content control, does not resize.

I have tried setting the Height and Width to Auto, but there is no difference.

Any ideas?
Marcelo
Top achievements
Rank 1
 answered on 09 Mar 2012
4 answers
286 views
Hello Telerik Team,
                              I want to know how to set Keyboard short cuts in radmenu?
In wpf standard menu contains InputGestureText.But not in Radmenu.
i want to set F4 for save in radmenu item......

 

Buzz
Top achievements
Rank 1
 answered on 09 Mar 2012
1 answer
152 views
i want to provide localization for the word processor in the greek language , is it possible and how?(radribbonUI)

i have a virtual on screen keyboard and i inject the characters being clicked into the richtextbox
how to insert tab , backspace (i've used commandbinding but with no luck),carriage return and line feed
if i inject the ascii character will it have the appropriate result in the richtextbox view?

thanks

Iva Toteva
Telerik team
 answered on 09 Mar 2012
2 answers
128 views
Hello,

I have implemented the custom sorting example http://www.telerik.com/help/wpf/gridview-sorting-custom.html 
But using the following line of code results in an error that it cannot sort by System.Object
employees = employees.OrderByDescending( employee => employee.GetType()
                                                            .GetProperty( (e.Column as GridViewDataColumn).GetDataMemberName() )
                                                            .GetValue( employee, null ) );
So I think the example code is not working, but I do not seem to be able to figure out how to get it working.
I am using this code on the server side so the code looks like this.

IQueryable<Customer> custList = dbProPlan.Customers.Where(cust => !cust.IsDeleted);
                if (!string.IsNullOrEmpty(propertyName) && sortingState == SortingState.Ascending)
                {
                    custList = custList.OrderBy(cust => cust.GetType().GetProperty(propertyName).GetValue(cust, null));
                }
                else if (!string.IsNullOrEmpty(propertyName) && sortingState == SortingState.Ascending)
                {
                    custList = custList.OrderByDescending(cust => cust.GetType().GetProperty(propertyName).GetValue(cust, null));
                } 


                numberOfItems = custList.Count();
                double pages = numberOfItems / aPageSize;
                int numberOfPages = (Math.Ceiling(pages) >= 1 ? (int)Math.Ceiling(pages) : 1);
                aPageNumber = (numberOfPages < aPageNumber ? numberOfPages - 1 : aPageNumber);


                IEnumerable<Customer> customerList = custList.Skip(aPageNumber * aPageSize).Take(aPageSize);
                dbProPlan.Refresh(RefreshMode.OverwriteCurrentValues, customerList);
                return customerList;

What do I need to change to get this working properly.
Kevin Hendriks
Top achievements
Rank 1
 answered on 09 Mar 2012
1 answer
110 views
I am using the day view and ordering by resource. It appears that the headers are showing up in a random order. Sometimes the resource is on top, sometimes it's the date. I have attached a screen shot of the issue.

This is the XAML for my day view
<telerik:DayViewDefinition VisibleDays="{Binding DataContext.VisibleDays, ElementName=Schedule}" MajorTickLength="1h" MinorTickLength="{Binding DataContext.Interval, ElementName=Schedule}" DayStartTime="{Binding DataContext.DayStartTime, ElementName=Schedule}" DayEndTime="{Binding DataContext.DayEndTime, ElementName=Schedule}" TimerulerMajorTickStringFormat="{}{0:h t}" TimerulerMinorTickStringFormat="{}{0:mm}" />
Yana
Telerik team
 answered on 09 Mar 2012
1 answer
125 views
Hi All,

When I try to install Telerik WPF trial version I am getting this error:
unable to find a version of the runtime to run this application

I am Win XP professional, 32bits
I already have .Net framework 4.0 installed

Regards
Chavdar Dimitrov
Telerik team
 answered on 09 Mar 2012
5 answers
177 views
I am currently using the RadDragAndDropManager for the first time and dragging from a RadTreeView to a RadPaneGroup.
Seems to do most of what I need; I'm currently doing all the work on the DropInfoHandler.

The problem I have, is that the "DropInfo" event fires IMMEDIATELY when I drag the RadTreeViewItem over the pane, rather than when I let go of the left mouse button. This is an issue because I have multiple grids, and the user will want to drag over the top of some grids to get to other grids.

Is this functionality by design, or have I done something wrong?


XAML:
<telerik:RadDocking x:Name="Docking" Close="Docking_Close">
 
   <telerik:RadSplitContainer InitialPosition="DockedLeft" Width="240" >
      <telerik:RadPaneGroup>
         <telerik:RadPane x:Name="rpDatabaseBrowser" Header="Database Browser">
            <Grid>
               <telerik:RadTreeView Name="RadTreeView1" ImagesBaseDir="/Images/" LoadOnDemand="RadTreeView1_LoadOnDemand" IsDragDropEnabled="True" telerik:RadDragAndDropManager.AllowDrop="False">
               </telerik:RadTreeView>
            </Grid>
         </telerik:RadPane>
      </telerik:RadPaneGroup>
   </telerik:RadSplitContainer>
 
   <telerik:RadDocking.DocumentHost>
      <telerik:RadSplitContainer>
                     
         <telerik:RadPaneGroup x:Name="rpg1" telerik:RadDragAndDropManager.AllowDrop="True">
            <telerik:RadPane x:Name="rp1" Title="Pane 1">
               <Grid>
                  <telerik:RadGridView x:Name="GridView1" Visibility="Hidden" DataLoadMode="Asynchronous">
                  </telerik:RadGridView>
               </Grid>
            </telerik:RadPane>
         </telerik:RadPaneGroup>
 
         <telerik:RadPaneGroup x:Name="rpg2" telerik:RadDragAndDropManager.AllowDrop="True">
            <telerik:RadPane x:Name="rp2" Title="Pane 2">
               <Grid>
                  <telerik:RadGridView x:Name="GridView2" Visibility="Hidden" DataLoadMode="Asynchronous">
                  </telerik:RadGridView>
               </Grid>
            </telerik:RadPane>
         </telerik:RadPaneGroup>
 
      </telerik:RadSplitContainer>
   </telerik:RadDocking.DocumentHost>
 
</telerik:RadDocking>



Code behind
public MainWindow()
{
   InitializeComponent();
   RadDragAndDropManager.AddDropInfoHandler(rpg1, OnDatabaseBrowserDropInfo);
   RadDragAndDropManager.AddDropInfoHandler(rpg2, OnDatabaseBrowserDropInfo);
}
 
private void OnDatabaseBrowserDropInfo(object sender, DragDropEventArgs e)
{
   //work out which RadTreeViewItem is dragged from
   //work out which RadPaneGroup is dropped on
   //populate Grid on RadPane
}
Nick
Telerik team
 answered on 09 Mar 2012
0 answers
104 views
Hi everybody,

I am exporting a radgridview, version: 2010.1.603.35 (I can´t change it)

My Grid has data this way (decimal) and it keeps the data-format really cool, works pretty well:


But I am unable to get the data when I export with the decimals:


As you can see in the result, I get the number 10000 instead 100,0 or 100 even. Maybe I am missing something.

Can you help me with this? Thanks in advance.

Alvaro
Alvaro
Top achievements
Rank 1
 asked on 09 Mar 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?