Hi,
I have a xamDataGrid with 3 Radiobuttons in a row.(Group). The things which I want to do are
1. Bind the grid with a datasource. The datasourse may have many columns. But In grid I don't want show all.
2. I have to pre-select the radiobutton based on the value from the datasource. ex. Yes,No and N/A should be the three radiobuttons in a column in the xamGrid.
3. After the initial load, I have to read the values from the xamDataGrid(changed values) to update the DB. For this how can I read all rows and how can I read the value from the radiobuttons?
I am trying to use the "findcontrol" to read the value from the grid. I know the logic whic we usually do for gridview. The samething how can we do in xamDatagrid?
Please provide a solution on this.
Thanks,
Sree.
Is there any replacement for RadioButton in Infragistics control library..? I can see RadioButttonTool in Ribbon namespace but not able to use it as RadioButton.
I am using all infragistics controls on my Window except RadioButton and it dose not match the theme what other infragistics controls shows.
Pleas suggest me any infragistics control which I can use as RadioButton with required code to be written ..
Hello,
Sorry for the late response. I am not completely sure where the problem is coming from. When I test this on my sample, it works as expected. In your sample, the incorrect behavior happens from time to time. I think it is best to contact the developer support here so that we can look into the sample deeper.
Hi Alex Please here with find the sample project.
Please see the code behind click event of btnReload. When the window loads with data and user clicks on radio buttons it changes the status of window. When I click the Reload button, the window should reload the data (as it was during windows gets loaded). But I see the radio buttons doesnt get refreshed to its original state.
Any help in this regard, would be helpful.
Meanwhile When user changes the radiobutton selection, I would need to present user with Messagebox, I was wondering which event I should handle to capture the situation.
Thanks
Srinivas Gundeti
Srinivas,
A sample would definitely help, so if you could attach one that would be great.
Hi Alex,
I downloaded your sample project and modified the same to suit to my requirements by writing a custom converter which deals with string. I have found couple of questions while working with xamdatagrid
1. The Grid correctly displays the data (by correctly converting the data) during the initial loading of window. But if I redo the reloading of the data of the grid, by assiging the datasource of the grid, the values it displays are off... I tested your sample test project by taking the populating datasource and assigning datasource to datagrid to separate function. If I call this function during the window load, it works perfectly well.. Lets suppose i have a button which refreshes the data in the grid, I call the above function when i click the button, even the sample project gives me an error in converter. Do I have to invalidate the grid and assign the datasource to refresh the grid.
2. I was successfully able to code for radiobuttons using your sample. One of the requirements for my application asking confirmation from the user if the selection in radiobutton change (not click). the confirmation is asking for user whether he really wants to change the selection in radio buttons. When I see the radiobuttons, I see the method IsChecked is now being used to displaying the radiobuttons while converting EnumValues to correct boolean value. So I cannot use Checked event to capture whether the user has changed the value as that gets fired during initial loading and refresh of grid(from above). In this context, I would like to know how can i capture that checked event and also cancel the selection and cancels the update of checked action, if he doesnt confirm and wanted to cancel.
If you want me to send my sample project, please let me know, I will send the same.
Thanks again
Srinivas Gundeti.