Telerik Forums
UI for WPF Forum
10 answers
572 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
271 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
144 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
114 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
97 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
113 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
154 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
94 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
3 answers
106 views
Hi

I have various Permission Ranges one after another, each followed by a carriage return.  My aim is to reorder these ranges.

I've managed to cobble together some code that deletes the range of the one I want to remove and it inserts a fragment (fragment obtained prior to deletion via CopySelectedDocumentElements).

This mainly works... except if I have bookmarks in the range I want to copy, they get deleted.  It would appear that copying the selected elemtents to a fragment ignores Bookmarks.

Any suggestions or workarounds welcome!

Charlie
Iva Toteva
Telerik team
 answered on 09 Mar 2012
1 answer
222 views
Hi,

I searched the internet but haven't found anything on this. So I have a RadGridView in my application, which has 2 columns which contains text. What I want to achieve is that the text in these 2 columns can be selected and copied to the clipboard.

Thanks for the help.

Kind Regards,

Andras

Vlad
Telerik team
 answered 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
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
Iron
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
Iron
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?