Telerik Forums
UI for WPF Forum
4 answers
126 views
Hi,

I'm trying to paste data into a GridView. What i want to do is user clicks new line clicks ctl+v then I handle the Pasting event on the grid to paste my data.

The issue is, when the user clicks the new row and presses the ctl+v the data is pasted into the selected cell

is it possible to deselect the cell so that the paste event is fired

thanks
 
David
David
Top achievements
Rank 2
 answered on 20 Sep 2012
2 answers
106 views

Hello!

I've got issue with performance of RadGridView. After click on group user have to wait to expand 2-5 seconds.



Sometimes users click severali times and after group loaded we've got expand-collapse-expand-collapse.... effect.

How can I display BusyIndicator after click on groups expander and hide it after expand (is there something like Expanding and Expanded events)?

Kind regards!

Paweł
Top achievements
Rank 1
 answered on 20 Sep 2012
4 answers
248 views
Here's my situation:

  1. an MVVM pattern is used on the client
  2. the View has a readonly RadGridView with sorting and paging through the RadDataPager
  3. the ViewModel has a Repository, wrapping an EntityFramework ObjectContext


What is the best way to integrate the RadGridView/RadDataPager  with this Repository?

I have been looking at QueryableCollectionView, but found myself wondering:
- how do the sort and filter parameters get translated into the object context query?
- how does the page information gets passed into an object context query?

Do I need to take care of all these things myself?
Or is there a better integration, so that the Telerik components involved know
how to deal with an IQueryable<T> and do all the paging, sorting, filtering?

Thanks for your time,
Koen
Vlad
Telerik team
 answered on 20 Sep 2012
0 answers
102 views
The GridView is binding to a collectionview from the viewmodel:
 ItemsSource="{Binding Path=dataitemscv, NotifyOnSourceUpdated=True}"

which dataitemscv is a ICollectionView

I have checked dataitemscv is updated.

The collectionchanged event did fire with action as reset

I have tried to Refresh() the collectionview in viewmodel

I have tried to Rebind the GridView in code behind

nothing will update the UI, any suggestions?
Neogeo
Top achievements
Rank 1
 asked on 20 Sep 2012
3 answers
144 views
Considering this code: 
<telerik:RadGridView ItemsSource="{Binding SearchResults}" RowDetailsVisibilityMode="VisibleWhenSelected">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="First Name" DataMemberBinding="{Binding FirstName}"  />
        <telerik:GridViewDataColumn Header="Last Name" DataMemberBinding="{Binding LastName}"  />
    </telerik:RadGridView.Columns>
    <telerik:RadGridView.RowDetailsTemplate>
        <DataTemplate>
            <Button Command="{Binding OpenView1Command}">Open View 1</Button> <!-- This does not work -->
        </DataTemplate>
    </telerik:RadGridView.RowDetailsTemplate>
</telerik:RadGridView>


The OpenView1Command is defined in my ViewModel. How do I make the binding work? 
Sergiy
Top achievements
Rank 1
 answered on 19 Sep 2012
1 answer
158 views
I need to save docking layout into a file when the application is closing and retrieve the layout at start-up.  I tried to learn it from the Docking Serialization example, my application calls OnSave on Window_Closed event and copy the stream into a file.  Since most of modules in the application are discovered by Prism and added into the RadDocking via Prism's RegionManager at start-up, so I am not sure when should I call OnLoad function to load the layout from the file.  Could you please help.  .

Another question: what different between Isolated Storage vs Save in a Stream?

Thanks!
Tina Stancheva
Telerik team
 answered on 19 Sep 2012
0 answers
76 views
Hi,
I use template selector because i have different objects. Everything is fine except adding new item(NewItemTemplate = null, why?).
If I click "New" button, dataform doesnt show any fields. Why dataform doesnt use in this case EditTemplate or why it doesnt have NewItemTemplateSelector as Property?

Thanks! 
Dmitrijs
Top achievements
Rank 1
 asked on 19 Sep 2012
2 answers
1.5K+ views
Hi..
I have the following ComboBox using a data template.. I'm trying to set the default value to a selection.
When the page loads the selection is blank.
I've tried 


  // BIND
  var queryConf = from c in DC.conferences
                            orderby c.name descending
                            select c;
                        
        this.cmbConf.ItemsSource = queryConf.ToList();

// Set DEFAULT
  this.cmbConf.SelectedItem = queryConf.ToList()[1];
   this.cmbConf.Text = (queryConf.ToList()[1] as conference).name;

but the selection is still blank. !!!

I have also tried

this.cmbConf.SelectedIndex = 1;


How can I set the default value and show the values? 
What am I doing wrong.
thx again


 ///  COMBOBOX

    <telerikInput:RadComboBox  TabIndex="6"  Name="cmbConf" telerik:TextSearch.TextPath="name" 
                                 FontWeight="Bold" telerikControls:StyleManager.Theme="Vista"
                                 SelectedValue="{Binding Path=id}"  SelectedValuePath="id" Width="332" >
                    
                        <telerikInput:RadComboBox.ItemTemplate>
                            <DataTemplate>
                                <Grid Margin="5" Width="300">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition />
                                        <RowDefinition />
                                        <RowDefinition />
                                    </Grid.RowDefinitions>
                                    <TextBlock FontWeight="Bold" FontSize="14" x:Name="txtConf"  Text="{Binding name}" />
                                    <TextBlock Foreground="Navy" Grid.ColumnSpan="3" Grid.Row="1" Text="{Binding name_alt}" />


                                    <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,0,0,0">


                                        <TextBlock Foreground="Navy" Margin="5,0,0,0" Text="{Binding first_day, StringFormat=d}" />
                                        <TextBlock Foreground="Navy" Margin="5,0,0,0" Text=" - " />
                                        <TextBlock Foreground="Navy" Margin="5,0,0,0" Text="{Binding last_day, StringFormat=d}" />


                                    </StackPanel>


                                </Grid>
                            </DataTemplate>
                        </telerikInput:RadComboBox.ItemTemplate>
                    </telerikInput:RadComboBox>
Jon
Top achievements
Rank 1
 answered on 19 Sep 2012
0 answers
87 views
hi ,

I am having a scenario where i want to add hyperlinks within Richtextbox dynamically from code .I want a specific tool tip as well for each hyperlinkinfo.Since there is only navigateuri property through which we can assign some key info , there is no other way to customize the tool tip information so that tool tip informtaion can be different.

I have already checked hyperlinktooltipformatstring  which will only change the navigationuri position inside the tooltip through placeholders.The basic intention is to set navigationuri some information which can be primarykey sort of text which can be processed in hyperlinkclicked event and some meaningful information as tool tip information that is different from navigationuri.

for eg: navigationuri can be some guid ( "e7c784da-a6c7-4b84-bf1c-8e2b93b9e7ab" ) and tool tip like " click to go to screen 1".
Any help appreciated in advance.

thanks
satheesh
Zatzh
Top achievements
Rank 1
 asked on 19 Sep 2012
4 answers
1.3K+ views
I am getting this when I copy the Busy Indicator example

The calling thread must be STA, because many UI components require this.

Does anyone have any ideas
Sandi Markon
Top achievements
Rank 1
 answered on 19 Sep 2012
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?