I have a datamodel that I'm adding to my UltraGrid.
My datamodel values are: Text, Bool, Bool, Bool.
When the datamodel loads into the Ultragrid the last three columns are displaying as text boxes. Is it possible to display them as radio buttons so if the user changes the value they act like radio buttons?
Hi Cipher,
You can accomplish this by handling the CellChange event. Whenever the user clicks a cell in one column, set the values in the other two columns to false. You can also use UltraCheckEditor to display radio button glyphs instead of checkboxes in the cells. I've attached a sample project that demonstrates how you can accomplish this.
Please let me know if you have any questions.
Is there a way to add a column and hide it and now allow changes to that column? I want to duplicate the name column. The user can change that column but I need to know if it is changed. Also, if the user is on the activerow can the changes be cancelled?
Figured it out. Put below in the Initialize.
e.Layout.Bands[0].Columns["ColumnName"].Hidden
Thanks for sharing your solution. Is there anything further that I can do to assist you?
There is one thing but it doesn't have to do with the UltraGrid. It is in relation to the LiveTile.
if (size.Trim() == string.Empty) staticTile.CurrentSize = TileSize.Medium; else if (size.Trim() == "Small") staticTile.CurrentSize = TileSize.Small; else if (size.Trim() == "Medium") staticTile.CurrentSize = TileSize.Medium; else if (size.Trim() == "Large") staticTile.CurrentSize = TileSize.Large; else staticTile.CurrentSize = TileSize.Medium;
I'm using the above code to set my tile size. The code works. The issue I'm having is that TileSize.Large and TileSize.Medium sets the tile to the same size. Any idea why? TileSize.Small works fine but I need to see a difference between Medium and Large.
Thanks
I'm using StaticTile for above.
StaticTile staticTile = tileGroup.Tiles.AddStaticTile(TileName);
Static tiles can only be Medium or Small. In order to add a large tile, you should use a LiveTile and add a LiveTileFrameLarge to its DefaultView:
LiveTile tile = new LiveTile();tile.CurrentSize = TileSize.Large;tile.DefaultView.LargeFrames.Add(new LiveTileFrameLarge());ultraLiveTileView1.Groups[0].Tiles.Add(tile);
Thanks. How do I add Image and Text to it as I would for a staticTile?
staticTile.DefaultView.Image.AllResolutions.Image = diskImage;
staticTile.DefaultView.Text = myText;
And can I still have my small Image?
staticTile.SmallImage.AllResolutions.Image = diskImage;
Normally, you would do this sort of thing using the designer. Please check out this article to see how you can use the designer to configure your tiles:http://help.infragistics.com/doc/WinForms/2016.1/CLR4.0/?page=WinLiveTileView_Adding_WinLiveTileView_Using_the_Designer.html
If you need to do it in code, here is one way you might accomplish that:
TileLargeBlockAndText02 largeTileContent = new TileLargeBlockAndText02();largeTileContent.Image.AllResolutions.Image = diskImage;LiveTile tile = new LiveTile() { CurrentSize = TileSize.Large };tile.DefaultView.LargeFrames.Add(new LiveTileFrameLarge() { Content = largeTileContent });ultraLiveTileView1.Groups[0].Tiles.Add(tile);