Telerik Forums
UI for WPF Forum
1 answer
186 views

Hey guys,

I have a RESTful server I've created which stores simple objects with a few fields. I have a WPF project that has a RadGridView. It loads these objects just fine from my server. I've also managed to use both the AddingNewDataItem and RowEditEnded listeners to be able to 1) listen for a user creating a new row, 2) create an object on the server with the user's specified fields and 3) store the newly created object returned from the server (with a unique ID) in an ObservableCollection linked to the GridView.

Here's the problem. If I submit the new object to the server via the AddingNewDataItem listener, I can successfully add it to my ObservableCollection. The way the GridView UI works, however, it immediately brings up a selected row with edit enabled upon hitting insert or clicking on the "insert new row" bar. I have not figured out how to update this UI element with the data from the server. I've tried this many, many different ways, but the UI element that opens remains the same. What I have been able to successfully do is replace that row **after** using the RowEditEnded listener. This kinda works but looks odd as certain fields change after the user is done editing and there's no reason I couldn't just show the unique ID retrieved from the server, for example, **before** editing is complete. I've also tried to use AddingNewDataItem listener to listen for the insert request, create a blank object on the server with a new unique ID, and show that object data in the newly created and displayed selected, editable row in the GridView. I have not figured out a way to do this, however. I am able to successfully create a new object on my server and to add that object to my Observable Collection, but I can't seem to find a way to update the data in the newly added row in the UI before the edit is complete. I feel like I've tried so many different ways of trying to find and replace the incorrect objects in the GridView.Items and GridView.Itemsource collections, but to no avail. 

Surely there's an easy way to do this? Thanks in advance! Let me know if you need more info. I could provide code, but I think this is more of a conceptual issue I need to figure out as I've tried to do this like literally 15 different ways. They all sort of work, but don't let me update the UI when I want to do it, so I suspect I'm missing a method or event handler that is more suited to what I'm trying to do. 

Yoan
Telerik team
 answered on 08 Jul 2019
4 answers
370 views
Is there a way to force the combobox to open "UP" instead of the default of dropping the list of items "down"?
Thanks
Mark
Darshan
Top achievements
Rank 1
 answered on 08 Jul 2019
1 answer
154 views

Hi,

I'm working with VirtualGrid and I would like to send the selected row's data as a list to another page, when the user right clicks on a it.

Here is a simple version of my code:

List<xmlList> xmlListFilter = (xmlListMain.Where(x => x.Net == selectedNet).Where(x => x.Type == selectedType)).ToList();
DataProvider xml = new DataProvider(xmlListFilter);

virtualList.DataProvider = xml;

 

private void VirtualList_MouseRightButtonUp(object sender, MouseEventArgs e)
{
            EditPage editPage = new EditPage("The problem is here... How can I get the Values of the selected row");
            editPage.ShowDialog();
            editPage.Close();
}

 

Thanks in advance!

Dimitar Dinev
Telerik team
 answered on 08 Jul 2019
11 answers
1.2K+ views
I defined an editable RadComboBox with IsEditable="True" IsReadOnly="False"

 

 

 

 

    <Grid> 
        <telerik:RadComboBox Height="23" HorizontalAlignment="Left" Margin="99,136,0,0" Name="ComboBox1" VerticalAlignment="Top" Width="120" IsEditable="True" IsReadOnly="False" /> 
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="52,230,0,0" Name="Button1" VerticalAlignment="Top" Width="75" /> 
    </Grid> 

and added some items in code behind:

    Private Sub ComboBox1_Loaded(...  
        ComboBox1.Items.Add("aaa")  
        ComboBox1.Items.Add("bbb")  
        ComboBox1.Items.Add("ccc")  
    End Sub 

When the user enters a new value in the edit box this value disappears when leaving the RadComboBox to click a button.
The standard WPF ComboBox does not loose the new value.

Hot can I allow the user to enter a value that is not in the drop down list?

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 08 Jul 2019
6 answers
539 views

Hi to all,

I would create a new custom column.

I need a column to show Item No. and user need to write a code of article or click on button to lookup by articles list, click one and write into cell.

How can I do to do this?

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Jul 2019
6 answers
422 views

I am having some trouble with maximizing a RadRibbonWindow with the taskbar is at the top or on the left of the screen. I have set the maximum height and the maximum width of the window, which raises some other issues such as when the task bar is moved (which would rarely happen so I can overlook that at the moment).

In the attached Maximized.png image, you can see that it is only scaling to the size of the screen area without the taskbar, but the top is right at 0,0 on the screen which puts it under my taskbar.

How can I make it so that it will not be under the task bar?

Thanks

Dimitar Dinev
Telerik team
 answered on 04 Jul 2019
1 answer
337 views

I'm building keyboard navigation for our grids that relies heavily on the ordering of items in the visual tree. The problem I'm having is that the GridViewToggleButton for a GridViewRow with a nested grid comes after the nested grid in the visual tree.

 

I've been searching through Telerik.GridView.xaml of the appropriate theme to try to find the control template where I could change the ordering of controls, but I have been unable to find the control template responsible.

 

Can you tell me which control template I need to edit for a row inside a grouping that has a nested grid inside?

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jul 2019
1 answer
412 views

hi

i used fluent theme for radwindow

but that is transparent!

Dimitar Dinev
Telerik team
 answered on 03 Jul 2019
2 answers
181 views

In my gridview I want to prevent the user from deleting entire rows but allow to delete (multiple cells) by pressing the DEL-key. Works fine so far but how can I prevent that the user accidentally selectes multiple rows and presses delete. So far I just count the number of selected fields for delete and show a warning but there's got to be a nicer way.

Is there any property in the radgridview that tells me, if multiple rows are selected?

Row selection as such is needed for copy/paste so removing anything is not an option.

 

thanks for your help in advance!

Jan

Jan
Top achievements
Rank 1
 answered on 03 Jul 2019
5 answers
146 views
I have seen[checked with the WPF Inspector] that the Radtogglebutton control inside the RadComboBox has a default MinHeight of 26 [Where as it should be 0] because of this all the comboBox controls are being truncated if their height is set to less than 26. The only way to fix this is by coding the entire control Template for ComboBox. Why can't this be fixed directly by the telerik team.
Martin Ivanov
Telerik team
 answered on 03 Jul 2019
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?