I might just be missing a very simple property here... the rows appear fine as soon as the application is run, but as soon as you click on a row, the value is rounded to two decimal places. Here's my code:
private
void
RadForm1_Load(
object
sender, EventArgs e)
{
RadPropertyStore PropertyStore =
new
RadPropertyStore();
radPropertyGrid1.SelectedObject = PropertyStore;
PropertyStore.Add(
new
PropertyStoreItem(
typeof
(
double
),
"test"
, 184.9484));
PropertyStore.Add(
new
PropertyStoreItem(
typeof
(
double
),
"test2"
, 341651.7823));
}
I tried to force the decimal places to remain the same using this, but it did not work:
private
void
radPropertyGrid1_EditorInitialized(
object
sender, PropertyGridItemEditorInitializedEventArgs e)
{
PropertyGridTableElement te = sender
as
PropertyGridTableElement;
PropertyGridSpinEditor editor = e.Editor
as
PropertyGridSpinEditor;
if
(editor !=
null
&& te !=
null
)
{
((BaseSpinEditorElement)editor.EditorElement).DecimalPlaces = 5;
}
}
How can I prevent my values from being rounded?
Thanks!
var doc = new RadPrintDocument();
doc.HeaderHeight = 20;
doc.FooterHeight = 18;
doc.HeaderFont = new Font("Arial", 10, FontStyle.Bold);
doc.FooterFont = new Font("Arial", 8, FontStyle.Regular);
doc.LeftHeader = "Test Header";
doc.Logo = System.Drawing.Image.FromFile(@"Z:\Home\Kurt\Y&M Logos\ymlogo_63x18.png");
doc.LeftFooter = "[Logo]";
doc.Landscape = true;
doc.AssociatedObject = radGridView1;
doc.Print();
Hello,
I want to make use of the AutoCompleteBox so the user has a nice autocomplete feature, without him being able to input other values then the ones in the autocomplete items. I've been looking for this some time now, but it seems like in WPF and Web it's the SelectionMode property. But in my Winform project, there is no such a property.
Can you tell me if this is possible and if so, how (which winform property i need to set). I'm using latest .net, latest telerik updates etc. Control is RadAutoCompleteBox.
Thanks a lot!
best regards,
Francois
Hi there,
There seems to be a bug with the PivotGrid when using the Export to Excel function.
Using the Demo Application for WinForms, you can just open the PivotGrid - Export to Excel example and then export one.
After that, minimize the Demo Application to task bar, and maximize it back. Some of the rows will be missing. If you keep minimizing and maximing, the rows that are disappearing will keep changing.
I'm not sure if this bug is just on my machine or if there's anything that that needs to be installed.
Thanks!
I have tried all sorts of things and I can get this to *almost* work.
I have a grid with "stacked" data entry columns, as such it can be a little tricky to see which one you are in.
I am wanting to highlight the header column for whichever column I am in, sort of like Excel does.
I can change the individual header colors through checking:
if (e.CellElement is GridHeaderCellElement || e.CellElement is GridGroupContentCellElement)
{
if (e.CellElement.ColumnInfo.Name == "podName")
But I cannot seem to get it to work just when I am in that cell.
I have tried setting a variable telling me when the cell is selected by doing something like:
private void radGridView1_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e)
{
var test = e.NewCell;
if (test.ColumnInfo.Name == "podName")
{
//currentcolor = System.Drawing.Color.Black;
currentCellIs = 1;
But that does not work correct either.
Has anybody else done this or have any suggestions?
Thank you,
Joe
Hi All,
I have a RadPanel on my form, and it contains several rad buttons, a toggle switch, etc. I noticed that in order to get a theme to be applied to the child controls, I have to set it individually on each one. I was expecting that if I set the theme on the parent panel, that the child controls would all use it as well. I just wanted to make sure that I'm not doing something wrong here...am I supposed to set the theme separately on all child controls within a panel? Thank you!