Telerik Forums
UI for WPF Forum
0 answers
69 views
 
 How to hide programaticly rows?
 
 bool: Visible is property in collection NasaShipsCollection
 
<br> <telerik:RadGridView ItemsSource="{Binding Path=NasaShipsCollection, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay}" <br>                                     SelectionMode="Single" SelectedItem="{Binding Path=SelectedEvent, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay}"  <br>                                     AutoGenerateColumns="False" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" CanUserDeleteRows="False" IsFilteringAllowed="True"><br>                    <telerik:RadGridView.Columns><br>                        <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding EShip}" />                        <br>                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Visible, Mode=TwoWay}" FilterMemberPath="Visible" IsFilterable="True" ShowFilterButton="False" ><br>                            <telerik:GridViewDataColumn.FilteringControl><br>                                <controls1:BoolenFilteringControl  /><br>                            </telerik:GridViewDataColumn.FilteringControl><br>                        </telerik:GridViewDataColumn><br>                    </telerik:RadGridView.Columns>                                   <br>                </telerik:RadGridView><br>


public partial class EventField : IDataErrorInfo, IFilterDescriptor
{
#region IFilterDescriptor public Expression CreateFilterExpression(Expression instance)
 {
  return instance;
 }#endregion
}
public class BoolenFilteringControl :UserControl, IFilteringControl
{
 private bool _isActive; public void Prepare(GridViewColumn columnToPrepare)
 {
  // throw new System.NotImplementedException();
 } public bool IsActive
 {
  get
  {
   return true;
   // return _isActive;
  }
  set
  {
   _isActive = value;
  }
 }
}
kity
Top achievements
Rank 2
 asked on 07 Aug 2014
1 answer
415 views
My application contains a RadListbox and I'd like to drag and drop items in this RadListBox from one instance of my application to another instance. How can I accomplish this?

It's similar to wanting the CustomDragVisualStyle_WPF example to support drag and drop between instances instead of just allowing drag and drop within one instance.

I got it working with copy/paste buttons, but I also want to support drag and drop.
Kalin
Telerik team
 answered on 07 Aug 2014
5 answers
213 views
Hi,

I have two worksheets,

The first worksheet has a set of Defined Names and their values.

The second worksheet has a set of formulas that reference many of the Defined Names from the first worksheet. This is also the active worksheet.

If I set the value of the cell referenced by a Defined Name via code using Cells.SetValue, the value is updated on the first worksheet but the values on the second worksheet (that use the Defined Names) are not updated.

If I swap away and then back to the second worksheet, or make a modification to any cell on the second worksheet, all of the values on the second worksheet then correctly update.

It seems that worksheets not directly updated by Cells.SetValue are not being refreshed, even when they reference the updated cell?

Thanks
Anthony
Boryana
Telerik team
 answered on 07 Aug 2014
4 answers
245 views
How do I display minor gridlines in a ChartView?  The data is displayed in a standard cartesian grid with an X and Y axis.
Martin Ivanov
Telerik team
 answered on 07 Aug 2014
7 answers
220 views
I am trying to create a ChartView that uses a LogarithmicAxis, but I want to control the spacing and interval of the major tick lines & labels.  Currently you can only have major lines that are a equal distance from each other, and the labels will adjust accordingly.   I want to be able to display major lines on the Y-Axis at a set value interval, so that the lines will be spaced closer together as you move up the Y-Axis.

The attached image gives a good example of the affect that I am trying to achieve, with lines at value increments of 5.  Is this something that is easily achievable with this control?

Martin Ivanov
Telerik team
 answered on 07 Aug 2014
1 answer
113 views
Hi,

I am trying to create gridview's columns dynamically and it works ok, I have my own object with all properties I want to set on columns. One of them is CellTemplateName so I can set column.CellTemplate = Resources[columnDefinition.CellTemplateName] as DataTemplate and it works ok.

The problem is when I want to read and save column definitions from gridview. Then I don't know how to get this CellTemplateName. I tried to get column.CellTemplate.DataTemplateKey but it is null.

Can you help what is the right way how to get the correct resource name of the cellTemplate?

Thank you,
Karel Bem
Dimitrina
Telerik team
 answered on 07 Aug 2014
1 answer
104 views
Hi,

I'm using Telerik V2014.1.331.40 and I create a usercontrol which contain a ScheduleView, associated to the ScheduleView, I implemented a behavior derived on the ScheduleViewDragDropBehavior to raise en event on the resize completed operation. Sometime, something verry weird occur in the resize completed operation!!! The "Start" property are always in "Local" but sometime, I say sometime, the "End" property are in "Local" and sometime in "Utc"!!!

        public override void Resize(DragDropState state)
        {
            bool isCompleted = true;

            if (this.OnResizeCompleted != null)
            {
                ScheduleViewByWeekResizeCompletedArgs args = new ScheduleViewByWeekResizeCompletedArgs();

                args.ResizeCompletedAgendaSpot.SourceMeetingId = (Guid)(state.Appointment as AppointmentSpot).MeetingId;
                args.ResizeCompletedAgendaSpot.DestinationSpotStart = state.DestinationSlots.FirstOrDefault().Start;
                args.ResizeCompletedAgendaSpot.DestinationSpotEnd = state.DestinationSlots.FirstOrDefault().End;

                this.OnResizeCompleted(this, args);

                isCompleted = args.ResizeCompletedAgendaSpot.IsCompleted;
            }

            if (isCompleted)
            {
                base.Resize(state);
            }
        }

Thank's
Alain
Yana
Telerik team
 answered on 07 Aug 2014
6 answers
122 views
Hi,

I've written a xaml for adding annotation through a RadRichTextBox on contents in a Word document. But when I try to insert sample text using =rand() im getting the error attached.

Any idea why this is happening? I tried to put break points in every method and events on the code behind but the error shows up even before it executes any of my code.

Thanks,
Dexter
Boby
Telerik team
 answered on 07 Aug 2014
1 answer
147 views
I was looking at the tutorial here:

http://www.telerik.com/help/wpf/gridview-events-validation.html

And when I implemented this, I noticed that the error message only appears when I hover my cursor over the top right arrow. Is there a way to show the error when the user hovers over the cell? It seems difficult for the user to have to highlight such a tiny arrow. Thanks.
Dimitrina
Telerik team
 answered on 07 Aug 2014
2 answers
108 views
Hi together,

is there a way to make the FilteringControl resizeable and moveable via user interaction (e.g. via mouse)?

Best Begards
Andreas
Andreas
Top achievements
Rank 1
 answered on 07 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?