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.
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!
| <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 |
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?

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
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?

hi
i used fluent theme for radwindow
but that is transparent!
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
