Telerik Forums
UI for WPF Forum
1 answer
60 views
I am doing in Hotel booking system use WPF, and I search for some control which satify my bussiness like this, I think that maybe a grid with following :

- The grid have 2 axes, 
            top horizontal axis for time line to display day for 5 year (scrollbar allow user navigate from current day to 2 previous years and next 3 years)
            left vertical axis for Room Type and Room No which is display all RoomNo in database according with it's Room Type beside which are data in database

-Allow mouse drag horizontal only to verify the begin date and the end date of booking ticket.
-Each row in datagrid is standfor a room, when user drag from cell A to cell B in the same row, it highlight the cover items and display the value of horizontal axis and at cell A and cell B (Actually I need to get the from date and the end date of booking)
-2 textbox follow the value of user dragging, it display the date of begin dragging date ,end of dragging date, the room number of dragging row

From:    25 Nov 10                                                                                                                                RoomType: Lux 

 To :        27 Nov 10                                                                                                                               RoomNo: 100300

...-2years

24 Nov 10

25 Nov 10

26 Nov 10

27 Nov 10

….. + 3years

Room Type

RoomNo

Del

100100

Del

100200

Lux

100300

Lux

100301

Eco

20100

Eco

20100

Eco

20100

              

 

 

Konstantina
Telerik team
 answered on 26 Nov 2010
3 answers
172 views
In the demo section of the WPF controls there is a neat transition control of the old window getting dimmed, the effects like click the button of "View Code"  and "View Example".The animation between two usercontrols.The animation like jelly.Could you pls send me a wpf demo?

I do not wannt the effects below like this
http://www.telerik.com/community/forums/wpf/transition-control/transition-between-pages.aspx

Thank you very much.

Pls email to : tmobile@126.com

Zou
George
Telerik team
 answered on 26 Nov 2010
1 answer
88 views
Hi guys, I am new to WPF all together so not strong on concepts.

I have generated RadgridView and based on the selection of the cell in this Radgridview, I want to populate a new RadgridView.

public partial class SummaryTable : UserControl
  {
      public SummaryTable()
      {
          this.InitializeComponent();
      }
      private void MainGridView_SelectedCellsChanged(object sender, GridViewSelectedCellsChangedEventArgs e)
      {
          IList<GridViewCellInfo> cellList =  this.radView1.SelectedCells;
         GridViewCellInfo cellInfo = (GridViewCellInfo)cellList.First();
          
         // Initialize MyView object based on cellInfo.Item to capture the details of whole row
      }
}


The problem is how to pass this MyView object to Top-level ViewModel class so that it can initialize the second table that I want to generate based on the MyView object. I was thinking that when Top-level class will get notified about the new MyView object then it will set the DataSource for the second table to populate it.

Please let me know if you have any other suggestions. I am a new player :)

Thanks,
Mark
Rossen Hristov
Telerik team
 answered on 26 Nov 2010
5 answers
157 views
Hi,

I created a set of LINQ classes, Customers.Memberships.CertificatesUsed

    First, I want to display the records from the Certificates collection

    I tried the sample code below but it doesn't seem to work

<telerik:RadGridView AutoGenerateColumns="False"
                     ItemsSource="{Binding Path=Memberships.CertificatesUsed}">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="Membership ID" 
                           UniqueName = "MembershipID" 
                           DataMemberBinding="{Binding Path=MembershipID}">
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn Header="Certificate No" 
                           UniqueName = "CertificateNo" 
                           DataMemberBinding="{Binding Path=CertificateNo}">
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn Header="Date Used" 
                           UniqueName = "DateUsed" 
                           DataMemberBinding="{Binding Path=DateUsed}">
        </telerik:GridViewDataColumn>

    
</telerik:RadGridView.Columns>
  
</telerik:RadGridView>

How should I bind the grid to the Certificates list?

Next, I want to be able to filter the content of the grid based on the selected Membership ID from a separate combo box.

How do I do it?

Thanks!
Maya
Telerik team
 answered on 26 Nov 2010
9 answers
141 views
Will loading 1m data in telerik data grid view will not consume too much memory?

Let's say PC specs is Pentium 4, 1.4GHz and memory is only 512 MB.

Will it be slow to load all data with this computer?
Leo
Top achievements
Rank 2
 answered on 25 Nov 2010
2 answers
114 views
Hi guys,
once again i am here because i have another problem using GroupDescriptors and i am following the same way as in the example in you demo. I don't know if the problem is the same as in my other post but i really don't have a clue whats going on.
It just dont recognize in xaml intellisence the resourceTypeCollection and gives this error message :

   em System.Collections.ArrayList.get_Item(Int32 index)
   em System.Windows.Data.ListCollectionView.ProcessCollectionChangedWithAdjustedIndex(NotifyCollectionChangedEventArgs args, Int32 adjustedOldIndex, Int32 adjustedNewIndex)
   em System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
   em System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   em System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   em System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
   em System.Collections.ObjectModel.Collection`1.RemoveAt(Int32 index)
   em System.Windows.Data.ListCollectionView.CancelNew()
   em Telerik.Windows.Controls.ScheduleView.ScheduleViewDataConnection.HackCollectionViewBug(Boolean isCommit) em c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleViewDataConnection.cs:line 896
   em Telerik.Windows.Controls.ScheduleView.ScheduleViewDataConnection.CommitNew() em c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleViewDataConnection.cs:line 875
   em Telerik.Windows.Controls.ScheduleViewBase.CommitNew(IAppointment appointment) em c:\Builds\WPF_Scrum\Release_WPF_2010_Q3

I hope you guys can help me out.
Thankz,
Pedro Pereira
Pedro
Top achievements
Rank 1
 answered on 25 Nov 2010
3 answers
149 views
What's the best way to go about adding labels (counties within a state, specifically in my case) to one of the state SHP/DBF examples from the drill down demo? Is it done in the SHP file or can I do it from the DBF data?

Thanks in advance!
Andrey
Telerik team
 answered on 25 Nov 2010
3 answers
59 views
Hello All,

I have a very strange issue that unfortunately I cannot duplicate with a small sample application.  Figured I'd just throw it out there to see if anyone had something similiar.

We are using the latest version Q3 2010.

We add RadPane items to the RadPaneGroup dynamically using Code.

Steps:
  • If I have say 5 panes visible, select any pane other than the last one
  • Make another application active, for example Outlook, or Internet Explorer
  • Go back to our new application
  • You can see the selected pane becomes the last one

Has anyone ran into something similiar?

Thanks,
George
Telerik team
 answered on 25 Nov 2010
1 answer
166 views
I have a complex object model so I need to throw up a separate form to add a new one instead of letting the user edit the rows in-place.  But I still like the idea of offering the "click here to add row" feature.  It's just that when I intercept the OnAddingNewDataItem event I'd like to do this:

        private void OnAddingRow(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
        {
            var editDialog = new MyFormView(null);
            var rowAdded = (bool)editDialog.ShowDialog();

            if (rowAdded)
                GridView.CommitEdit();
            else
                GridView.CancelEdit();
        }

But what happens is even when I Cancel out of the dialog box and call CancelEdit, the grid still shows a newly inserted row (with empty values).  How can I cancel the add that's in progress programmatically?

Update: similar thing happens when I intercept OnDeletingRow so I can throw up a confirmation dialog box - if the user hits Cancel I'd like to cancel the delete, otherwise commit it, but CancelEdit and CommitEdit don't do the trick
Maya
Telerik team
 answered on 25 Nov 2010
3 answers
95 views
Hi,

I have a RadGridView inside the control template. I have binded the SelectedItem property with a property in view model. but it is not working property, when I select an item from grid view the view model property doesn't get set.

Please help me out.
Vlad
Telerik team
 answered on 25 Nov 2010
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?