Telerik Forums
UI for WPF Forum
4 answers
931 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
128 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
92 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
100 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
228 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
158 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
66 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
153 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
3 answers
262 views

Hello,

I’ve had issue with RadMap Provider cache in my application. My RadMap is connected to a local WMS (Geoserver). I've changed the map on the Geoserver to hide airport locations but it's not displayed in my RadMap (see attachments).

I have set the attribute "IsTileCachingEnabled = true" to enable tile caching (under %APPDATA%/Local/TelerikMapCache).
Then I added a function to clear the MapProvider when requested by the user :

            if (_mapProviderWrapper.MapProvider is WmsCustomProvider)
            {
                var wmsCustomProvider = (WmsCustomProvider)_mapProviderWrapper.MapProvider;
                var cacheStorage = wmsCustomProvider.CacheStorage as FileSystemCache;
                if (cacheStorage != null)
                {
                    string cachePath = cacheStorage.CachePath;
                    Directory.Delete(cachePath, true);
                    Directory.CreateDirectory(cachePath);
                }
            }

But even when the folder is empty and that I restart the application, RadMap still display airports which may means that tiles are cached somewhere else.
Is there a way to force a refresh of a MapProvider after the cache has been cleared?

Thanks!

Etienne

Martin Ivanov
Telerik team
 answered on 19 May 2016
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?