Telerik Forums
UI for WPF Forum
3 answers
181 views
How does one integrate transitions with TabControl?
Miha Markic
Top achievements
Rank 1
 answered on 13 May 2010
1 answer
202 views

Hi, I don't understand the difference between HierarchyChildTemplate and RowDetailsTemplate
when to use one rather than the other.

Thanks
Dario

Maya
Telerik team
 answered on 13 May 2010
5 answers
205 views
Hi,

I'm using BringDataItemIntoView to go to the item i reselect after i refresh my grid.

But now i have a problem with when you select an item in the grid that is already visible (no scrolling required) and there aren't enough items to make the grid scroll.

So what happens the grid sets the selected item to the first row visible and the records above aren't shown any more and there isn't a scrollbar visible.

For example
If you have 3 records in the grid and you call the method BringDataItemIntoView on the third record, then this will put the 3 record to the first visible record in the grid but the 2 records above aren't visible any more and there also isn't a scrollbar (using the mouse wheel does the trick for scrolling)

Any ideas how i can fix this?

My code to bring the currentitem in to view
                        int logId = 0;  
 
                        if (radGridDocuments.CurrentItem != null)  
                            logId = (radGridDocuments.CurrentItem as DocumentLog).LogId;  
 
                        Mouse.OverrideCursor = Cursors.Wait;  
                        btnDocumentsForTruck.IsChecked = false;  
 
                        fillDocumentLog(((PrintShop.Data.Action)dtcDocumentType.SelectedItem).Name, txtCustomerName.Text, dtpFrom.SelectedDate, dtpTo.SelectedDate, txtDocumentNumber.Text, (dtcSender.SelectedItem as Sender).SenderId);  
 
                        if (logId != 0)  
                        {  
                            DocumentLog d = (radGridDocuments.ItemsSource as BindingList<DocumentLog>).FirstOrDefault(x => x.LogId == logId);  
 
                            if (d != null)  
                            {  
                                Record record = radGridDocuments.FindRecord(d);  
                                record.IsSelected = true;  
                                record.IsCurrent = true;  
 
                                radGridDocuments.BringDataItemIntoView(radGridDocuments.CurrentItem);  
                            }  
                        } 
Vlad
Telerik team
 answered on 13 May 2010
1 answer
148 views
Hi, why can't I activate the orizzontal scrollbar in a RowDetails Grid ? I set ScrollViewer.HorizontalScrollBarVisibility="Visible" the scrollbar is visible but not enabled. Even the FreezeColumns don't run in the RowDetails Grid
(Version Q3 2009 SP2)

            <telerikGridView:RadGridView x:Name="RiepiloghiPeriodi0Grid" Grid.Row="1" Grid.Column="0" AutoGenerateColumns="False" CanUserFreezeColumns="True" ShowGroupPanel="False" ItemsSource="{Binding RiepiloghiPeriodi0ItemsSource, Mode=TwoWay}" CurrentItem="{Binding RiepiloghiPeriodi0CurrentItem, Mode=TwoWay}" Margin="0,0,0,0" Initialized="RiepiloghiPeriodi0Grid_Initialized" CanUserDeleteRows="False" CanUserInsertRows="False" AreRowDetailsFrozen="False">  
                <telerikGridView:RadGridView.RowDetailsTemplate> 
                    <DataTemplate> 
                        <telerikGridView:RadGridView x:Name="RiepiloghiPeriodi1Grid" AutoGenerateColumns="False" CanUserFreezeColumns="True" ShowGroupPanel="True" ItemsSource="{Binding RiepilogoPeriodiVOList, Mode=TwoWay}" Margin="15,15,15,15" Initialized="RiepiloghiPeriodi1Grid_Initialized" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupFooters="True" ShowColumnFooters="True" ScrollViewer.HorizontalScrollBarVisibility="Visible">    
                        </telerikGridView:RadGridView> 
                    </DataTemplate> 
                </telerikGridView:RadGridView.RowDetailsTemplate> 
            </telerikGridView:RadGridView> 

 

Thanks, Dario.
Vlad
Telerik team
 answered on 13 May 2010
1 answer
62 views
Hi,

I have a grid of System.Data.DataRow of System.Data.DataTable. I add a new row to the DataTable and I call Rebind() to refresh the content od the datagrid. Then I edit the fields of the new row in the grid. Finally I want to select the new row, but nothing happens (the color of the row is unchanged), though I can select other rows (they changes their color). I implemented the SelectionChanged method of the datagrid to figure out if the selection of the new row happens when I click on it. And it does! But it does not change color, so it is not indicated to the user that the selection was successful. Is it a known bug, or do I something wrong?

Thanks in advance!

Ferenc
Milan
Telerik team
 answered on 13 May 2010
1 answer
98 views
Hello,

I have some problems with RadDocking with Windows7 Theme.

1. When "Center Indicator" is hidden, other indicators aren't correctly displayed. This problem also occurs in your demo application in Compass/Style section.

2. There is two title bars and two Cross button for floating panel.

Regards,
Guillaume.
Pana
Telerik team
 answered on 13 May 2010
1 answer
86 views
hello!

I use RadDataPager (page size = 10). I want to focus on a specific row. I tried this code:

private

 

 

void GV_Results_DataLoaded(object sender, EventArgs e)

 

{

 

    if (SelectedEntity != null)

 

        V_Result SelectedRow = (

 

from V_Result r in GV_Results.Items

 

 

 

        where r.R_ID.Equals(SelectedEntity.R_ID)

 

 

 

        select r).FirstOrDefault();

 

 

 

    GV_Results.SelectedItem = SelectedRow;

 

 

 

    int selectedIndex = GV_Results.Items.IndexOf(GV_Results.SelectedItem);

 

 

 

    if (selectedIndex != -1)

 

    {

 

 

        int pageIndex = selectedIndex / rpg_results.PageSize;

 

        rpg_results.MoveToPage(pageIndex);

    }
}
What happens is, in the data loaded function the grid loads only 10 records in each page index.
so if the wanted row is not in the first page, the SelectedRow is null. (because GV_Results.Items contains only the records that are in the first page).
And if I go to the page that contains the wanted row, the selectedRow is not null, but the selectedIndex will be 5 if the selected item was item number 15, and 7 if the selected index was actualy 27. Because
GV_Results.Items.IndexOf(GV_Results.SelectedItem); again behaves like it has only 10 items. 

How can I focus on the selected item if it is not in the firs page?

Milan
Telerik team
 answered on 12 May 2010
1 answer
109 views
How do I keep a column in edit mode permenantly.  I have an issue with boolean checkbox columns.  It is not intuitive for the users to have to click on the checkbox several times in order for it to check.
Milan
Telerik team
 answered on 12 May 2010
6 answers
264 views
Hi,

When we have a nullable bool (bool?) the gridview in display mode displays "true" and "false" instead of the checkbox.

Once i enter in edit mode in the cell, now the check box shows and allows me to click.

I am using an internal build that i installed 2 months ago.
Nedyalko Nikolov
Telerik team
 answered on 12 May 2010
6 answers
239 views
I am trying to drag drop from a gridview to another control ,, this works okay but if the grid has a scrollbar that i want to scroll it initiases a drag drop rather than letting me scroll

this makes scrolling difficult .. even more difficult with the 'thin' scroll bar you get when you apply the windows 7 theme
Cameron Molyneux
Top achievements
Rank 1
 answered on 12 May 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?