Telerik Forums
UI for WPF Forum
2 answers
183 views
We are using version 2010.2.924.40 of the WPF RadGridView. On a grid, I have ONE editable column, and 6 readonly columns. Rows for this grid are created through code and user cannot enter rows. They can only edit the one column of each row. As a user edits the singe editable column and hits TAB, the focus shifts to the next row, into the editable column...as expected.

However, if the user FILTERS one or more of the readonly columns, then edits the row/editable column and hits TAB, the focus does not shift to the next row. I can't determine where focus shifts to.

Do you have a fix or solution for this?

Michael
Michael
Top achievements
Rank 1
 answered on 11 Nov 2011
5 answers
141 views
I'm trying to enable tabs reordering, but it works only when items are set in xaml.

This works:
<t:RadTabControl AllowDragReorder="True" x:Name="radTabControl1">
    <t:RadTabItem Header="item1" />
    <t:RadTabItem Header="item2" />
    <t:RadTabItem Header="item3" />
</t:RadTabControl>

And this don't
<t:RadTabControl AllowDragReorder="True" x:Name="radTabControl1" ItemsSource="{Binding list}" />


How to make this work with binding?
Petar Mladenov
Telerik team
 answered on 11 Nov 2011
1 answer
315 views
I have a Data Form and a Grid. What I am doing is that every time we move forward or backwards in the Data Form, the Grid gets updated, sometimes by manually setting the current item in the Data Form and consequently updating the Grid based on an ID key.

Example #1:

Adding a new record to the Data Form. I use the Edit Ended event to Save the changes via EF. This works fine. After saving I am setting the Data Form current item to the newly created record. In my case, this means updating the Data Form (re-loading all values from the database), doing a look up and updating the Data Form current item and finally updating the Grid.

This is not working for me. Re-loading the Data Form works but setting the Data Form current item is not working

Example #2:

After I enter a new Data Form item, EF returns back an error on dups. (based on PK), which is perfect. Since the item exists, I want to position the Data Form on that record by manually setting the current item, but this is not working either.

When I say that it does not work, I mean that after I do the following on the EditEnded event:

this.dataForm.CurrentItem = [Do a look up based on PK and return object]

The Current Item Changed event fires (which is expected) and there I update the Grid, but at this point is where dataForm.CurrentItem is null preventing me from updating the Grid

Ideas/comments are appreciated.

Thanks, M
Ivan Ivanov
Telerik team
 answered on 11 Nov 2011
5 answers
519 views

How do you make the Header Row height autosize or even manually set it, when using Word Wrap and forcing the Header to wrap to 2 lines.
Below is a sample of the XAML, just one column that has wrap enabled. It looks correct in .NET VS2008 designer, but when running it the height of the header row is not tall enough and the 2nd line of text is cut in half.

I've looked on the forums and see some examples, but they seem very difficult to implement using a Resouce.xaml file. It seems like it should be more straightforward.

Thanks ... Chad

<Telerik:RadGridView SelectionMode="Single"                                                 
                     CanUserDeleteRows="False"
                     CanUserSortColumns="True"                                                 
                     AutoGenerateColumns="False"
                     IsFilteringAllowed="False"
                     CanUserReorderColumns="False"
                     RowDetailsVisibilityMode="VisibleWhenSelected"
                     Telerik:StyleManager.Theme="Office_Blue"
                     ShowGroupPanel="False"
                       
                     ItemsSource="{Binding Path=GetData,Mode=TwoWay}"
                     IsReadOnly="False" >
    <Telerik:RadGridView.Columns>
          
          
        <Telerik:GridViewDataColumn IsReadOnly="True"
                                    Width="90" UniqueName="Level1GuaranteedPercent" >
            <Telerik:GridViewDataColumn.DataMemberBinding>
                <Binding Path="Level1GuaranteedPercent">
                </Binding>
            </Telerik:GridViewDataColumn.DataMemberBinding>
            <Telerik:GridViewColumn.Header>
                <TextBlock Text="Level 1 Past Purchase %" TextWrapping="Wrap" />
            </Telerik:GridViewColumn.Header>
        </Telerik:GridViewDataColumn>
    </Telerik:RadGridView.Columns>
</Telerik:RadGridView>
Vanya Pavlova
Telerik team
 answered on 11 Nov 2011
0 answers
153 views
Hi,
I am facing problem regarding load the image dynamically in GridViewDataColumn.
The follwoing is my code

<telerik:GridViewDataColumn Header="" UniqueName="colBilling">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding Path=BBilling}" Value="True">
<DataTrigger.Setters>
<Setter TargetName="telerik:GridViewDataColumn" Value="/Images/Project.png"/>
<!--<Image Source="/Images/Project.png" Height="20" Width="20" HorizontalAlignment="Center" VerticalAlignment="Center" />-->
</DataTrigger.Setters>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

my requirement is while loading data in to gridview  when BBilling value is true(1 or 0) then I need to show Image.Other wise leave empty cell.How to set setter property.

Thanks and Regrds
Naresh Mesineni

naresh
Top achievements
Rank 1
 asked on 11 Nov 2011
0 answers
86 views
Hello.

I am trying to modify data of a row when only one column is modify.

When I use RadGridViewApplication_CellEditEnded I need to kwow the value of the other cell in se same row ..

How can I get it?

Thanks

private void RadGridViewApplication_CellEditEnded(object sender, Telerik.Windows.Controls.GridViewCellEditEndedEventArgs e)
{
    //Check if data has chenged
   
     
    if (e.NewData.ToString() != e.OldData.ToString())
    {                 
         //Modify data of the complete cell
         //Need values of the current cell   

    }
     
}
Hola
Top achievements
Rank 1
 asked on 11 Nov 2011
6 answers
661 views
Hi support,
I have a requirement in which i have to display a check box in grid , which is multi selectable , There is a button outside grid, In that button click i have to get all the checked columns id, and have to send these ids to another .aspx page as querystring.

For this i have taken a select column , as there is no data binding property for select column, i am unable to bind any id for that.

Can i access invisible column in radgridview. How can i pass parameters to the javascript function from code behind to .aspx javascript function.

   <telerikGridView:GridViewSelectColumn  Header="ATU Name" FooterTextAlignment="Left" IsReorderable="False" IsFilterable="False"  > 
 
                        </telerikGridView:GridViewSelectColumn> 
                        <telerikGridView:GridViewDataColumn  UniqueName="id" FooterTextAlignment="Left" IsReorderable="False" IsVisible="False" IsFilterable="False"  DataMemberBinding="{Binding id}"
 
                        </telerikGridView:GridViewDataColumn> 

  private void btnMulticheck_Click(object sender, RoutedEventArgs e) 
        { 
            List<int> checkedRows = new List<int>(); 
 
            
            var rows = this.gvData.ChildrenOfType<GridViewRow>(); 
 
            foreach (var row in rows) 
            { 
                if (row is GridViewNewRow) 
                    continue
 
                var checkbox = row.Cells[0]; 
                var id = row.Cells[1]; 
 
 
                CheckBox cb = (CheckBox)((System.Windows.Controls.ContentControl)(checkbox)).Content; 
 
                if (cb.IsChecked == true)  
                { 
                    checkedRows.Add((int)((Telerik.Windows.Controls.GridView.GridViewCell)(id)).Value); 
                } 
 
                HtmlPage.Window.Invoke("SayHello"); 
               
            } 
 
         
        } 

Can you suggest me some alternative as i cant show id column to user, And what happens if user scrolls after selecting? Can i access those selected check boxes?
I am using silverlight Q1 2010 10.1.3.9 version,Is it fully tested version,? Why so many events are not accessible in this version.
Is there any documentation available for this version

Thanks

Makarand
Top achievements
Rank 1
 answered on 11 Nov 2011
5 answers
549 views
Hi!

I am trying to offer a menu item to reset the layout to the standard layout.

I am aware of the save/load layout methods, but I want to save my self from implementing this, since the standard layout is defined in the XAML anyway.

Is there a built-in command to which I can bind?
If not, what do I have to implement in my menu item click event? Is there something like a pane reload method somewhere?

Thanks,
Franziska
Konstantina
Telerik team
 answered on 11 Nov 2011
1 answer
123 views
Hello, i have some panes with summer theme and the pane header looks
nice with a grey gradient brush. When i float any pane to a another position the paneheader
changes the header color to a solid grey background. How can i have the same gradient header
backcolor before floating? thank you for help ... greetings ... ricc
Dani
Telerik team
 answered on 11 Nov 2011
2 answers
181 views
I just updated to the latest version of WPF controls from RadControls_for_WPF40_2011_2_0920_Dev_hotfix.zip and decided to try out the PropertyGrid. I'm not planning on using the autogenerate feature, but thought it might be helpful to point out what I noticed.

Each time I change objects in the Item property, my application becomes unresponsive for a few seconds, and memory usage goes up by anywhere from 20 MB to 200 MB. It never runs out of memory, because it appears in ProcessExplorer to be reclaimed as soon as it hits the memory ceiling. When it is finished, it displays the 30 to 50 properties on my objects. But it does not provide any expanders to view properties of nested objects. (EDIT: I just noticed the NestedPropertiesVisibility setting)

It appears that most of the time is spent in Type.GetProperties() after about ten recursive calls to GenerateNestedPropertyDefinitions(). You might benefit from using some caching so that you don't have to make so many calls to Type.GetProperties(). Maybe something like the TypeInfoCache from http://www.codeproject.com/KB/cs/generaldynamicobjectproxy.aspx. And maybe find a way to perform the property searches on a background thread.
Ivan Ivanov
Telerik team
 answered on 11 Nov 2011
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?