Telerik Forums
UI for WPF Forum
1 answer
220 views
While exporting data from Telerik RadGridView in WPF.
How can I add some extra text on above the header? Like if I need to add the name of the company and list name.
Can anyone help me in this regard?
Dilyan Traykov
Telerik team
 answered on 20 May 2016
4 answers
904 views
Is it possible to add a new row to edit to the top of the grid instead of the bottom? I was able to sort after adding the new item to get the last added item to display at the top, but I want to be able to have the new row be at the top immediately after clicking to add the new row while editing.The image attached shows how the GridView works now, but I want to be able to have the new row to be at the top of the grid while editing. Any help would be appreciated.
Stefan
Telerik team
 answered on 20 May 2016
1 answer
118 views
Hello,
Is there a way to customize the vertical resize cursor that's being displayed when hovering over the property grid's separator?
Dilyan Traykov
Telerik team
 answered on 20 May 2016
1 answer
85 views

Hi,

 

i understand that when a new row is added somewhere in the tree, the new row is added to the bottom.

to get around this i re-bind the tree to the update source, and am now trying to see if i can expand to the part of the treelistView where the new item it located.

i can interactively expand to the spot in the tree and find the newly created row.  

the customer does not want to do this however as there may be too much data.

i need a way to do this in the code-behind.

is there a way?

 

Thanks in advance,

John

 

 

Yoan
Telerik team
 answered on 20 May 2016
3 answers
90 views

I want to have custom filter like the default fulltext search auf RadGridview. But I want to filter with custom expression that I definied.

For that purpose I look at first for a pssibility to override the FilterDescriptor of the default fulltext search. But I have no luck.

I can accept an "external" textbox that can raise a filter condtion on the RadGridview as well. Any suggestions?

Maya
Telerik team
 answered on 20 May 2016
14 answers
1.7K+ views
I have a grid with two columns, one of which is editable and another is readonly, set programmatically based on first column value:
                    <t:RadGridView x:Name="NetworkLocationGroupsGridView" CanUserFreezeColumns="False" ShowGroupPanel="False" ItemsSource="{Binding NetworkLocations}" AutoGenerateColumns="False" ShowInsertRow="True" IsFilteringAllowed="False" CanUserReorderColumns="False" RowIndicatorVisibility="Collapsed" CellValidating="NetworkLocationGroupsGridViewCellValidating" CellEditEnded="NetworkLocationGroupsGridView_CellEditEnded" EditTriggers="CellClick">  
                        <t:RadGridView.Columns> 
                            <t:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="Id" Width="50" /> 
                            <t:GridViewDataColumn DataMemberBinding="{Binding LongName}" Header="Name" Width="340" IsReadOnly="True" /> 
                        </t:RadGridView.Columns> 
                    </t:RadGridView> 

In CellValidating event handler, when first column value changes, I calculate and set the value of the second column:
                int id = (int)e.NewValue;  
                var dataTable = dataAccess.GetDataTableFromStoredProcedure("ManagementGetLocationDetail", new Dictionary<string, object> { { "networkLocationId", id } });  
                ((GridViewCell)e.Row.Cells[1]).Value = dataTable.Rows[0]["LongName"].ToString();  
                e.IsValid = true;  
 
or
                int id = (int)e.NewValue;  
                var dataTable = dataAccess.GetDataTableFromStoredProcedure("ManagementGetLocationDetail", new Dictionary<string, object> { { "networkLocationId", id } });  
                var networkLocation = (NetworkLocation)e.Row.Item;  
                networkLocation.LongName = dataTable.Rows[0]["LongName"].ToString();  
                e.IsValid = true;  
 

But even though the second cell value changes, the visual representation stays unchanged, the grid still displays the original cell value. I need the second cell to visually change immediately after first cell passes validation, but I can't find any suitable methods or events to do that. I've tried e.GridViewDataControl.Items.Refresh() but it doesn't work.
Maya
Telerik team
 answered on 20 May 2016
1 answer
219 views
I have a nested grid and I want to expand it and collapse it with a parent row click. It expands with parent row click per default but if i want to close it (collapse it) i have to hold crtl. I want to be able to collapse it again on the parent row click without holding crtl button. How is that possible? Thanks
Yoan
Telerik team
 answered on 20 May 2016
3 answers
144 views
I tried getting tooltip value from comboitems using AutomationElement, it is giving 'RadComboBoxItem' as value of tooltip in all cases irrespectivie of value in tooltip. 

    Here is the sample application code:

<telerik:RadComboBox Height="17" HorizontalAlignment="Left" Margin="260,84,0,0" Name="StaticComboCtrl" VerticalAlignment="Top" Width="156" ItemsSource="{Binding}" RenderTransformOrigin="0.494,-1.5">
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemOne" ToolTip="ItemOne">Item1</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemTwo" ToolTip="ItemTwo">Item2</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemThree" ToolTip="ItemThree">Item3</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemFour" ToolTip="ItemFour">Item4</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemFive" ToolTip="ItemFive">Item5</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemSix" ToolTip="ItemSix">Item6</telerik:RadComboBoxItem>
                    </telerik:RadComboBox>



Below is the code which gets autiomation element from point and gets "HelpText" property from that control. 

                System.Windows.Automation.AutomationElement testControl = AutomationElement.FromPoint(LocationOfTheCombItem or mouse position); 

                testing = testControl.Current.HelpText;



Here variable testing is always populated with value "RabComboBoxItem" but not actual value. 



Any help would be highly appreciated in this regards. 



Georgi
Telerik team
 answered on 20 May 2016
2 answers
60 views

Hi there,

FYI: In the latest WPF Release There seems to b a couple undefined resources in the Windows 8 Touch Theme.

DragDrop_VisualCueBackground and DragDrop_VisualCueBorder

I am not using these so I defined these via another theme just to avoid the warnings.

 

MarkInTexas
Top achievements
Rank 1
 answered on 19 May 2016
2 answers
139 views

ExportFormat.Xlsx and ExportFormat.Pdf are now obsolete?

I was using these formats.

Is there a work-around to continue using?

Weren't these formats just introduced last year?

MarkInTexas
Top achievements
Rank 1
 answered on 19 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?