Telerik Forums
UI for WPF Forum
3 answers
147 views
Hello,

I have wrapped a RadCarousel in a listbox.. Im not able to click on the radcarouselpanel to bring to the front.. Everything works fine

Help?
thank you
Rick
Maya
Telerik team
 answered on 01 May 2012
6 answers
1.0K+ views
I have a LINQ to SQL Object in an ObservableCollection.  It has child objects which in turn have child objects of their own.  This structure mimics a recursive join on the table.

My issue is that when I remove a control from one of the child collections, it does not update the treeview.

i.e.

var itemToDelete = (Item)treeview1.SelectedItem;  
var parentItem = (Item)controlToDelete.ParentItem;  
 
parentItem.Remove(itemToDelete); 

If I remove the item from the collection itself - that does not appear to work either.

var itemToDelete = (Item) treeview1.SelectedItem;  
var collection = ObservableCollection<Item> treeview1.ItemsSource;  
 
collection.Remove(itemToDelete); 
Tina Stancheva
Telerik team
 answered on 30 Apr 2012
1 answer
109 views
I'm wondering what it would take to implement the entire drag and drop functionality on the right mouse button, ending with a context menu like in Explorer when you have a choice to Move or Copy files.  Any help would be appreciated.

Thanks in advance,
Steve
Nick
Telerik team
 answered on 30 Apr 2012
5 answers
132 views
Hello!
I've RagGridView with some string type columns, one datetime typed and two decimal typed.
When I put random string, there (in CreateFilterExpression) allways stay records with decimal value equal 0 (zero).
I managed, that convert any string in decimal columns to 0 and check for equality. How can I skip the bolded part? Filter implementation is from your examples.
_compositeFilterDesriptor.CreateFilterExpression(parameterExpression);
In example:
Filter value is: "dasdasddasdasd"
Expression is: (stringColumn1 contains dasdasddasdasd) OR (stringColumn2 contains dasdasddasdasd) OR (dateTimeColumn IsEqual 01-01-0000) OR (decimalColumn1 IsEqual 0) OR (decimalColumn2 IsEqual 0)
Rossen Hristov
Telerik team
 answered on 30 Apr 2012
0 answers
111 views
Hi,

as you cann see on the attached File i'm looking for a approach or example to create a RadGridView with 7 Columns where
i can drag & drop Items between these columns and also in the column itself. Or an other Control to realize this request.

I need a Control with 7 Columns or 7 Controls or....
I need to drag & drop Items from one columns/control to the next column/control.
Each Item should be in his own color...

Can someone tell me an idea of ​​how I can implement this requirement?

I use: c# and wpf RadControls 2012 SP1

Thanks a lot Regards
Rene
ITA
Top achievements
Rank 1
 asked on 30 Apr 2012
1 answer
539 views

I am using the RadGridView and RadDataPager in a WPF application. I have a method that pulls pages of Employees from a database (or some other data source). There are more Employees than I want to put in memory at one time, so I need to page the data retrieved from the database.

 

So, I have a method that returns pages of data in the form of IEnumerable<Employee>. Each IEnumerable<Employee> is one page of data.  The xaml is set up this way:

 

    <Grid>

...

        <telerik:RadGridView ItemsSource="{Binding PagedSource, ElementName=radDataPager}"

                             Horizontal Alignment="Left"

                             AutoGenerateColumns="False"

                             x:Name="radGridView1"

                             VerticalAlignment="Top"

                             Height="Auto"

                             Width="Auto"

                             Grid.Row="0">

            <telerik:RadGridView.Columns>

                <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}"

                                            Header="First Name"

                                            UniqueName="FirstName" />

                <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}"

                                            Header="Last Name"

                                            UniqueName="LastName" />

                <telerik:GridViewDataColumn DataMemberBinding="{Binding Age}"

                                            Header="How Old?"

                                            UniqueName="Age" />

            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

        <telerik:RadDataPager x:Name="radDataPager"

                              Source="{Binding Employees2}"

                              DisplayMode="FirstLastPreviousNext"

                              IsTotalItemCountFixed="False"

                              PageSize="3"

                              Grid.Row="1"

                              Margin="0,9,0,0"

                              PageIndexChanging="radDataPager_PageIndexChanging"

                              PageIndexChanged="radDataPager_PageIndexChanged"/>

    </Grid>

 

I only get the first page with 3 records. Can this be fixed, or am I trying to do something that these controls do not support?

 

What would be a better way to do what I am trying to do?

 

Thanks.

 

David

 

 

 

Rossen Hristov
Telerik team
 answered on 30 Apr 2012
1 answer
150 views

Hello.

I'm try host GridView WPF in WinForms App...

private void GridLoad()
{
         Telerik.Windows.Controls.RadGridView wpfGrid =
  
        new Telerik.Windows.Controls.RadGridView();
         wpfGrid.Name = "myGrid";
        wpfGrid.Height = 641;
        wpfGrid.ItemsSource = phpmyadminDataSet;
    
          wpfGrid.AutoGenerateColumns = true;
        ElementHost elementHost = new ElementHost();
        elementHost.Dock = DockStyle.None;
        elementHost.Width = 640;
        elementHost.Height = 120;
        elementHost.Child = wpfGrid;
        panel1.Controls.Add(elementHost);
      }
But I can't understand how refresh Grid.

When app starting Grid is clear. When I'm apply filter or sorting, data loading.

I'm try wpfGrid.Rebind(). No effect...

Pavel Pavlov
Telerik team
 answered on 30 Apr 2012
5 answers
78 views

Our users have requested that we not perform an immediate filter when a distinct filter checkbox is clicked.  They would rather be able to select multiple checkboxes, then press the Filter button.  We call a web service to retrieve data each time filtering is performed, so this has become a performance issue.

Is there an easy way to turn off the instant filtering, or do we have to write a completely custom control?

Thanks for your help.
Rossen Hristov
Telerik team
 answered on 30 Apr 2012
9 answers
176 views
Why is there no separation between the second vertical axis and the label for the first vertical axis (see attached image)?

Could you please provide a code example of the easiest way to get some separation.
Peshito
Telerik team
 answered on 30 Apr 2012
0 answers
80 views
Hi,

I am using a telerik grid view.  I have a combo box which is bound to different grids.  e.g.  when I select a combo box then grid display's A property information and if I change settings then it will display grid B's propery information.  I want that when "A" is displayed and I change the format of the grid like reorder columns.  I switch to grid "B" and then switch back to "A" I want to see the reordered columns.  So I need to save settings when I change grid and reload the settings when I load the grid.  But I am not sure how to do this.  If you can point me to some examples that would be great.

Also when I exit the tool and then reopen the file then the settings should be persistant from before so the user doesn't have to change settings again.  I looked at the example here.  http://demos.telerik.com/silverlight/#PersistenceFramework/GridViewCustomSerialization  This is almost what I want to do but can I save the settings in an XML file?  If you have any examples for this that would be great.

Thanks for your help,

Sonia
Sonia
Top achievements
Rank 1
 asked on 30 Apr 2012
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?