Telerik Forums
UI for WPF Forum
4 answers
458 views
Is there a way to programmatically unselect an item. Right now, upon selection, we launch a window to do some processing on the item and when we are done, we want to return the rad time line to its prior state. We want to unselect the item, so if the item is selected again, it will launch the edit window.

Please let me know.
Paul
Pavel
Top achievements
Rank 1
 answered on 05 Jun 2013
1 answer
154 views
I'm missing something here. There's tons and tons of documentation for the RadGridView and yet I still can't find some simple documentation on what I'm looking for. I don't have a lot of .Net experience, so maybe that's the problem, not the Gridview.

I've got a bound gridview (in a WPF application) that gets populated from a dataset. When the user is finished and clicks the update button, I want my code to go through the grid, apply local business rules and formating to individual cell entries, delete records as necessary, and then send the grid contents back to the database.

I would like to go, row by row, through my grid, get the contents of a given column, modify it if necessary, and then call my Stored Procedure to take the data from the row and write it back to the database.

Do I have to set my gridview up as unbound to accomplish this?
Yoan
Telerik team
 answered on 05 Jun 2013
6 answers
541 views
I'm currently working on a project that has different windows opened up in multiple threads. There seems to be a problem with commands running in all but the first thread that is created with a RadDocking element in it.

Within each thread, a new window is created, with a RadDocing, RadSplitContainer, RadPaneGroup and a single RadPane. The window is then displayed. When you click on the PaneHeader in any window other than the first thread that is opened, the application immediately throws a threading exception: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.

This exception occurs even when we have no code other than starting the threads. Has anyone else had this problem? Is there any way to fix this problem?

Thanks,
Daniel
George
Telerik team
 answered on 05 Jun 2013
2 answers
200 views
Hi.
I'm not sure if im doing something wrong, but assuming this example:
http://demos.telerik.com/silverlight/#GridView/Performance
with 1000000 rows, 5 columns.
I need to load 2500 records with 8 to 10 columns and doing it like:

1st attempt to load data: using class product:

 using (SqlConnection conn = new SqlConnection(cString.c_String))
            {
                conn.Open();
SqlCommand cmd = new SqlCommand(sqlCommand, conn);
                rdr = cmd.ExecuteReader();
                while (rdr.Read())
{
-- Product p =new Product {.....};
myGrid.Add(p);
}

Second attempt:
                 SqlDataAdapter sd = new SqlDataAdapter(new SqlCommand(sqlCommand, conn));
                 DataTable dt = new DataTable();
                 sd.Fill(dt);
                dg.ItemsSource = dt.DefaultView;


Second is little bit faster i guess, but still tooks much time to load.
I have also tested only window loading time and it took ~1sec to load (only window, with listview with items from db)
Unfortunately with gridView it tooks 5 to 10 sec.

Question is:
Is there any way to (for example) load only first 50 records, and when i scroll down load more?
Or maybe there's example for gridView (WPF!) paging ?


Thanks for answer,
Adam.
Rossen Hristov
Telerik team
 answered on 05 Jun 2013
2 answers
91 views
Hello,
I have simple  question.
How to change the the tool tip  for all buttons in the DataForm?
Thanks
hiwa
Hiwa
Top achievements
Rank 2
 answered on 05 Jun 2013
0 answers
149 views
I have an wpf page with radgridview control and some radmaskednumericinput controls.the question is  whille Selection changed event of radgridview of every row i need to enter new data radmaskednumericinput control on every row and the data should not change till closing the page .
Ramki
Top achievements
Rank 1
 asked on 05 Jun 2013
1 answer
118 views

I found this article without answer. I have the same problem can anybody help me?

I am using Telerik's WPF controls. In particular the DataForm control. I am trying to bind it to an object that has the following make up.

public class FrequencyMap : BindableBase
{
    private Guid id;

    public Guid ID
    {
        get { return id; }
        set
        {
            id = value;
            OnPropertyChanged();
        }
    }

    private string procedureCodeId;

    public string ProcedureCodeId
    {
        get { return procedureCodeId; }
        set
        {
            procedureCodeId = value;
            OnPropertyChanged();
        }
    }

    private FrequencyChoice frequency;

    public FrequencyChoice Frequency
    {
        get { return frequency; }
        set
        {
            frequency = value;
            OnPropertyChanged();
        }
    }

    private DateTime effectiveDate;

    public DateTime EffectiveDate
    {
        get { return effectiveDate; }
        set
        {
            effectiveDate = value;
            OnPropertyChanged();
        }
    }

    private DateTime? terminateDate;

    public DateTime? TerminateDate
    {
        get { return terminateDate; }
        set
        {
            terminateDate = value;
            OnPropertyChanged();
        }
    }
}

and then the FrequencyChoice object looks like this:

    public class FrequencyChoice : BindableBase
{
    private int id;

    private string modifiedUser;

    public int ID
    {
        get { return id; }
        set
        {
            id = value; OnPropertyChanged();
        }
    }

    private string code;

    public string Code
    {
        get { return code; }
        set
        {
            code = value; OnPropertyChanged();
        }
    }

    private string name;

    public string Name
    {
        get { return name; }
        set
        {
            name = value; OnPropertyChanged();
        }
    }

    private string description;

    public string Description
    {
        get { return description; }
        set
        {
            description = value; OnPropertyChanged();
        }
    }

    private string calculationDescription;

    public string CalculationDescription
    {
        get { return calculationDescription; }
        set
        {
            calculationDescription = value; OnPropertyChanged();
        }
    }

    private DateTime inactiveDate;

    public DateTime InactiveDate
    {
        get { return inactiveDate; }
        set
        {
            inactiveDate = value; OnPropertyChanged();
        }
    }

    public string ModifiedUser
    {
        get
        {
            return this.modifiedUser;
        }
        set
        {
            this.modifiedUser = value;
            OnPropertyChanged();
        }
    }

}

This works quite well except for the Frequency property. How do I get that to work properly(I need name property to be in drop down list box for choose). Do I have to use an Enum like this article? Data Forms in your XAML If so how would I link the two?

Thank you for your help.
Ondrej

Maya
Telerik team
 answered on 05 Jun 2013
1 answer
80 views
I am raising this concern as the Context Menu present in WPF does not work for web browser control.
Does the RadContextMenu help us in achieving custum context menu in WPF web browser control?
Rosen Vladimirov
Telerik team
 answered on 05 Jun 2013
1 answer
116 views
Telerik,

I have a WPF RadGridView that allows filtering and grouping of columns.  After grouping a column, I no longer see the filter icon, nor can I access the filtering of that grouped column.  I would like to see the same auto-filtering icon/functionality on the grouped column as the non-grouped columns.  How can I accomplish this task?

I have included a picture of my scenario.  There is a column on my grid with the title "From Plant" that is filterable and groupable.  Before grouping, I placed a filter on the column.  After applying the filter, I grouped the column.  Problem:  I don't see the filter icon after grouping "From Plant", nor can I access the filter popup.

Thanks,
Yoan
Telerik team
 answered on 04 Jun 2013
2 answers
172 views
Hi everyone,

I'm using the RadGridview component to display some data.
This grid is using the self-reference feature, some lines have children displayed in rows détails.

I added a screenshot example in attachment to expose my problem :
- The ID line 5 have 2 children in diferent cities (Paris and Bordeaux) ;
- I want to display (automatically via XAML) in the cell of the parent all children values for the column City, like this : "Paris, Bordeaux".

Is it possible ? If yes, how to do ?

Thanks for your help !

Regards,
Guillaume
Yoan
Telerik team
 answered on 04 Jun 2013
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?