Telerik Forums
UI for WPF Forum
3 answers
320 views

I tried looking at the WPF GridView example for server side paging/sorting/filtering and it failed with an error. However I looked at the code and you are simply using entity framework to do all the work.

Are there any examples where I can use a different ORM like Ormlite? We don't use entity framework and frankly don't want to.

The only other solution for us would be to switch to using something like Kendo because then it is much easier in the web.

Aseman
Top achievements
Rank 1
Veteran
 answered on 01 Jan 2020
13 answers
3.6K+ views

Have a User Control that is called when a button "about" is pressed.

The UC works. Want to add a "Close" button that will close the window so it won't get orphaned later.

I could use the "IsVisible = Visibility.Collapsed;" which works but it is not really gone. The UC has to RadListboxes which collects different data in each box. When I use the "IsVisible = Visibility.Collapsed;" the box disappears. When click on the "About" button it reappears with previous data. I prefer to make it truly close/destroyed.

Is this possible and if so how? please.

What code do you need the XAML or the .CS?

herb
Top achievements
Rank 1
Veteran
Iron
 answered on 30 Dec 2019
9 answers
1.2K+ views
Hello Telerik Team,

I wanted to reduce the height of the header row but cannot figure out how. Setting the RowHeight property works only for the rows and not for the header row.

Is there a way to reduce the height of the header row?

Thanks,
Kumar
Martin Ivanov
Telerik team
 answered on 30 Dec 2019
4 answers
1.0K+ views

hello

I am trying to implement a Grid View with row number column and pagination.That is, the row number can also be changed when the page is changed

but the code I wrote is that the row number column on each page is only 1 to 10. And by going to the next page the row number starts again from 1 and does not increase to 11 and more.

this is my cs code for row number:

public override FrameworkElement CreateCellElement(Telerik.Windows.Controls.GridView.GridViewCell cell, object dataItem)

        {
            TextBlock textBlock = cell.Content as TextBlock;

            if (textBlock == null)
            {
                textBlock = new TextBlock();
            }
            textBlock.Text = string.Format("{0}", this.DataControl.Items.IndexOf(dataItem) + 1);
            return textBlock;
        }

and xaml code:

<telerik:RadDataPager DisplayMode="all" PageSize="10" Source="{Binding Items, ElementName=RadGridView}"  />

also i need a label that represents the total number of Grid View rows. The value of this label must be updated by applying a filter or searching.

but my code always represents total number of Grid View rows and does not change with filtering.

 

Thanks!

Sara.

Sara
Top achievements
Rank 1
 answered on 28 Dec 2019
1 answer
269 views

Have a RadListbox, in xaml have set (SelectionMode="Multiple").

Want the user able to copy a selected item(s) and paste it anywhere (text file, excel, etc.) having issue finding topics in forum that helps me complete the operation of "copy".

Is there a method to do this?

Martin Ivanov
Telerik team
 answered on 26 Dec 2019
1 answer
111 views
I found a post from 2014 where telerik rep is stating that virtual scrolling will not work with dynamic data. is this still the case?

https://www.telerik.com/forums/virtual-scrolling-doesn't-work-with-dynamic-data
Martin Ivanov
Telerik team
 answered on 26 Dec 2019
10 answers
3.6K+ views
I'm building a rules engine that allows date constraints.  I want to be able to use a datetime picker to select the month and day, but I don't want to show the year.  Is this possible with your control?

Jason
Moses
Top achievements
Rank 1
 answered on 26 Dec 2019
1 answer
7.4K+ views

I have "Product" AutoCompletebox where the user type Product Name. When the user press enter, this "Product" will be added to the GridView and auto-focus to "Quantity "cell. (I've successfully developed this part.)

After the user type Quantity in GridView's Cell, I want to Commit and End Edit to this row and focus (cursor) return back to "Product" AutoCompletebox. This is the part that I don't know how to do it.

Currently I have tried something like the following:

private void RadGridViewInvoiceItems_CellEditEnded( object sender, GridViewCellEditEndedEventArgs e )
{
         if ( e.Cell.Column.Header.ToString() == "Quantity")
         {              this.gridView.CommitEdit();
                this.productAutoCompleteBox.Focus();            
         }
}

 

But the above code cause "StackOverFlow" exception. How should I solve this problem?

P.S. I have developed this app with C# Wpf with MVVM pattern.

I have "Product" Textbox where the user type Product Name. When the user press enter, this "Product" will be added to the GridView and auto-focus to "Quantity "cell. (I've successfully developed this part.)

After the user type Quantity in GridView's Cell, I want to CommitEdit to this row and focus return back to "Product" textbox. This is the part that I don't know how to do it.

Currently I have tried something like the following:

private void RadGridViewInvoiceItems_CellEditEnded( object sender, GridViewCellEditEndedEventArgs e )
{
      if ( e.Cell.Column.Header.ToString() == "Quantity" )
      {
           this.gridView.CommitEdit();
           this.productTextBox.Focus();
      }         
}

But the above code cause "StackOverFlow" exception. How should I solve this problem?

P.S. I have developed this app with C# Wpf with MVVM pattern and Telerik controls.

I have "Product" Textbox where the user type Product Name. When the user press enter, this "Product" will be added to the GridView and auto-focus to "Quantity "cell. (I've successfully developed this part.)

After the user type Quantity in GridView's Cell, I want to CommitEdit to this row and focus return back to "Product" textbox. This is the part that I don't know how to do it.

Currently I have tried something like the following:

private void RadGridViewInvoiceItems_CellEditEnded( object sender, GridViewCellEditEndedEventArgs e )
{
      if ( e.Cell.Column.Header.ToString() == "Quantity" )
      {
           this.gridView.CommitEdit();
           this.productTextBox.Focus();
      }         
}

But the above code cause "StackOverFlow" exception. How should I solve this problem?

P.S. I have developed this app with C# Wpf with MVVM pattern and Telerik controls.

Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 26 Dec 2019
7 answers
218 views

     Do you guys have an example of DateTime data virtualization?

My data is updating live. I need a way to update visual ranges every second as data comes in and scroll backwords with the scroll bar through historical data.

I have 2 observable collections one for the total data and one for the visible data.

In the example project I see it updating using the ActualVisiualRange event on the telerik:LinearAxis but as far as event args I only see e.Newrange.Minimum/Maximum which seems to be the Y range not the X... 

Insight would be helpful as im not sure how to update the X data which are DateTimes in this event...

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Dec 2019
1 answer
215 views

Hi,

The RadGridView Control is taking a long time to render.

I followed exactly ALL of the recommendations listed here :
https://docs.telerik.com/devtools/wpf/controls/radgridview/performance/tips-tricks

10 Rows
5 Columns
Binding only preloaded string (no code exucution delay)

But still, there is a noticable delay. 
Loading an UserControl with a RadGridView in it from a TabControl for example freezes the ui for quite some time.
It will be really noticiable for the enduser.

It takes more than 3 times the loading time of a Microsoft DataGrid (see attachements), why ?

Regards.

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Dec 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?