Telerik Forums
UI for WPF Forum
1 answer
196 views
The RadRibbonView control appears to require a minimum height to display, leaving dead whitespace below it, the following does not display the actual ribbon bar:

<Grid x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="150" />
<RowDefinition />
</Grid.RowDefinitions>
<telerik:RadRibbonView Grid.Row="0"  >
<telerik:RadRibbonTab Header="Home">
<telerik:RadRibbonGroup Header="Clipboard">
<telerik:RadRibbonSplitButton Text="Paste" 
                    telerik:ScreenTip.Title="Paste(Ctrl+V)"
                    telerik:ScreenTip.Description="Paste the contents the Clipboard.">
<telerik:RadRibbonSplitButton.DropDownContent>
<telerik:RadContextMenu BorderThickness="0">
<telerik:RadMenuItem Header="Paste" />
<telerik:RadMenuItem Header="Paste Form" />
</telerik:RadContextMenu>
</telerik:RadRibbonSplitButton.DropDownContent>
</telerik:RadRibbonSplitButton>
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
</telerik:RadRibbonView>


<t:RadDocking Grid.Row="1" x:Name="_docking" PreviewClose="_docking_OnPreviewClose">
<t:RadDocking.DocumentHost>
<t:RadSplitContainer>
<t:RadPaneGroup x:Name="_paneGroup">
</t:RadPaneGroup>
</t:RadSplitContainer>
</t:RadDocking.DocumentHost>
</t:RadDocking>
</Grid>

but if I set the first row definition to 300 then it displays it with about 150px of dead white space below, why does the height of the control not work (incidentally specifying the RadRibbonView controls Height explicitly also does not change anything).  This is on Windows XP  Any ideas?
Tina Stancheva
Telerik team
 answered on 17 Sep 2012
1 answer
189 views
Hi,

I searched why some documents were very slow to refresh when we typed text (enough to was three to four words forward than the one that appears) and very long to load the document. Finally, the problem is when we have tables in the document. It begins to be slow with one table and more you have tables, slower is the refresh. Am I alone with this issue? My WPF RadControls version is the 2012.2.912.40.

Patrick
Petya
Telerik team
 answered on 17 Sep 2012
1 answer
135 views
Hi all,

i would design a header for floating window like that file attached.

how do i design it with WPF?
thank for any your help.
Boyan
Telerik team
 answered on 17 Sep 2012
3 answers
110 views
Hi,
I think that my TreeListView simply does not respect the AutoExpandItems=false setting. In design time, sometimes when I open the designer for the first time, indeed items are not expanded. But not always. On runtime, everything is expeded if the property bound to the ItemsSource changes.
I want all my items to be collapsed during the initial binding. Any ideas?
Dimitrina
Telerik team
 answered on 17 Sep 2012
9 answers
1.9K+ views
Hi

I have a RadGridView in this I wants to iterate on rows but I cannot get radgridview1.Rows for this which library,namespaces used.how to slove this proble.how can i achive this proble.
Rocio
Top achievements
Rank 1
 answered on 17 Sep 2012
4 answers
231 views
Hello,

I've created a sample chart in Telerik with stacked bars, and a line (TelerikChart.png). When I export to PNG with the following code:

PngBitmapEncoder testEncoder = new PngBitmapEncoder();
Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(RadCartesianChart, "c:\\temp\\test.png", testEncoder);

The PNG is created, but it appears the line has moved from it's original values (the points have not). See ExportedChart.png.

Also, how can I get the exported PNG to contain the legend as well?
Ves
Telerik team
 answered on 17 Sep 2012
1 answer
118 views
Hello Everyone,

Whenever we double click on any appointment, it displays the Edit Appointment Dialog Box. I have requirement to stop showing this DialogBox and allows some background changes in Appointment_Editing event without using this Dialog box.  I have already tried doing e.Cancel = true, however no success. Please let me know if there is any other way around to achieve this.

private void RadScheduleView_AppointmentEditing(object sender, AppointmentEditingEventArgs e)
{
    e.Cancel = true;
    //my custom logic goes here
}

 

Regards,
Kshamesh

 


Yana
Telerik team
 answered on 17 Sep 2012
5 answers
271 views
Hello! I have a GridView in wich the EnableRowVirtualization is selected, I have read this means that the only rows generated are those that are visible. this is how I try to get the visible rows:
var rows = this.gridAlarm.ChildrenOfType<GridViewRow>();
 
            foreach (var row in rows)
            {
                if (row is GridViewNewRow)
                    continue;
 
                if (row.IsVisible)
                    logger.Debug("It's a visible row");
                var cell = row.Cells[7];
                TextBlock tx = (TextBlock)cell.Content;
                String content  = tx.Text;              
            }

My grid only has 7 rows, but it's small so at first it only shows 4 rows, but when I execute that code in "rows" I have all rows, not only the visible ones, and when I iterate thorough "rows", and row.IsVisible is allways true, for the 7 rows, no matter that only 3 rows are printed (you have to scroll down to see the others.

How can I recover only those rows that are visible actually in the grid?
Thanks a lot!
Rocio
Top achievements
Rank 1
 answered on 17 Sep 2012
7 answers
212 views
Hello,
after installing RadControls fow WPF version 725, I can no more open onr WPF project: Visual Studio crashes when loading the application.
After attaching a 2nd Visual Studio instance, I have the following exception:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Stack trace:
   at VSLangProj.References.Item(Object index)
   at Telerik.VSX.Internal.ProjectManagement.ApplicationProjectAssemblyReference.Retrieve(Project project, String assemblyName)
   at Telerik.VSX.Internal.ProjectManagement.ProjectWrapBase.GetAssemblyReference(String assemblyShortName)
   at Telerik.VSX.Internal.ProjectManagement.ProjectWrapUIComponentsBase.get_IsTelerikEnabled()
   at Telerik.Windows.WPF.VSX.Helpers.ProjectWrap.get_IsTelerikEnabled()
   at Telerik.VSX.ProjectListing.ProjectSearcher.<FilterTelerikProjects>b__0(IProjectWrapUIComponents p)
   at System.Collections.Generic.List`1.FindAll(Predicate`1 match)
   at Telerik.VSX.ProjectListing.ProjectSearcher.FilterTelerikProjects(List`1 projectsList)
   at Telerik.VSX.ProjectListing.ProjectSearcher.GetTelerikEnabledProjects()
   at Telerik.Windows.WPF.VSPackage.VSPackage.<>c__DisplayClass2.<OnSolutionOpened>b__0(Object s, DoWorkEventArgs a)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

After removing RadControls I can again open this project.
Note that the project is an Oxygene project and that I have 3 files open when I open the project.

Patrick
Andrey
Telerik team
 answered on 17 Sep 2012
5 answers
196 views
Hello! I am starting to use Telerik controls, and they work really well, but I am stuck with my GridView:

<telerik:RadGridView Name="gridAlarm" AutoGenerateColumns="False" EnableRowVirtualization="True">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="PtNum" DataMemberBinding="{Binding Key}" Width="auto" UniqueName="alarmas"/>
                            <telerik:GridViewDataColumn Header="Timestamp" DataMemberBinding="{Binding Value.Timestamp}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Value.Description}"  Width="auto"/>
                            <telerik:GridViewDataColumn Header="Comment" DataMemberBinding="{Binding Value.Comment}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Point" DataMemberBinding="{Binding Value.Ptname}" Width="auto" />
                            <telerik:GridViewDataColumn Header="RTU" DataMemberBinding="{Binding Value.Rtu}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Category" DataMemberBinding="{Binding Value.Category}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Table" DataMemberBinding="{Binding Value.Dbname}"  Width="auto" />
                            <telerik:GridViewDataColumn Header="Field" DataMemberBinding="{Binding Value.Fldname}"  Width="auto" />
                        </telerik:RadGridView.Columns>                       
                    </telerik:RadGridView>

First of all, I am trying to sort it by the first column, with UniqueName="alarmas" when the user clicks in a button:
 
private void radButton1_Click(object sender, RoutedEventArgs e)
        {
            gridAlarm.SortDescriptors.Add(new SortDescriptor()
            {
                Member = "alarmas",
                SortDirection = System.ComponentModel.ListSortDirection.Ascending
            });   
        }
   
And it doesn't work, I am not sure if the Member property should be the UniqueName, or not.

My second trouble is that the itemsSource of my grid is an Observable Dictionary, and when a entry changes, it also changes in the gird ( it works fine) but the changes row goes to the last position, and I would like it to go to the first or to stay in place (ordered by the first column),
When I saw that I could not order the grid by adding a SortDescriptor, I thought about generating the same event that occurs when the user clicks in the row header of a column to order the grid by it's column value, so when the Dictionary changes, I could reorder the grid by executing this event, but I could not find anything about it.

Hope you can help me because it's very important for my project.
Thanks!

Rocio
Top achievements
Rank 1
 answered on 17 Sep 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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?