Telerik Forums
UI for WPF Forum
3 answers
115 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
245 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
123 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
286 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
220 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
206 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
1 answer
203 views
Hi

Reading some documentation about this control I found this: 

http://www.telerik.com/products/wpf/whats-new/release-history/q1-2012-version-2012-1-215-1506305735.aspx#map

"Added new WmsTiledProvider for the WMS servers (GeoServer)"

What about MapServer and RadMap?
This control may read the data from MapServer, or for now is exclusive to GeoServer?

Thanks.....
Andrey
Telerik team
 answered on 17 Sep 2012
5 answers
201 views
What I'd like to achieve is like these two image attachments which were created in Excel. I'd like to have two levels of X-Axis labelling. I'd also like to have clustered and stacked.

Is this possible with the Telerik WPF charting tools? 
Nikolay
Telerik team
 answered on 17 Sep 2012
3 answers
514 views
I am trying to follow the example at http://www.telerik.com/help/wpf/radtabcontrol-getting-started.html (without Expression Blend), but when I add the RadTabControl, it is not visible in the designer.  References are set to
  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.Navigation
  • Telerik.Windows.Data

  • Also, the RadTabControl is not listed in my toolbox.
    <UserControl x:Class="MyApp.MyModule.Views.ModuleTabs"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                 mc:Ignorable="d"
                 d:DesignHeight="300" d:DesignWidth="300">
      <Grid>
        <telerik:RadTabControl>
          <telerik:RadTabItem Header="Calendar" />
          <telerik:RadTabItem Header="Colors" IsBreak="True" />
          <telerik:RadTabItem Header="Quote" />
        </telerik:RadTabControl>
      </Grid>
    </UserControl>

    Tina Stancheva
    Telerik team
     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
    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
    Miljana
    Top achievements
    Rank 2
    Iron
    Iron
    Joel
    Top achievements
    Rank 3
    Bronze
    Bronze
    Bronze
    Cynthia
    Top achievements
    Rank 1
    John
    Top achievements
    Rank 1
    Iron
    Mozart
    Top achievements
    Rank 1
    Iron
    Veteran
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Miljana
    Top achievements
    Rank 2
    Iron
    Iron
    Joel
    Top achievements
    Rank 3
    Bronze
    Bronze
    Bronze
    Cynthia
    Top achievements
    Rank 1
    John
    Top achievements
    Rank 1
    Iron
    Mozart
    Top achievements
    Rank 1
    Iron
    Veteran
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?