I would like to know how to access the values that are typed in all the "Value Filter" and "Label Filter" options, which appear in the PivotGrid filters in the RowGroupDescriptions and ColumnGroupDescriptions parts, since I require those values to perform additional calculations.
I have tried to reach the values but I only reach the Type of condition and the value, I provide the code that I use for what I mention:
foreach (PropertyGroupDescriptionBase gd in this.radPivotGrid1.RowGroupDescriptions)
{
ValueGroupFilter Filtroporvalor = gd.GroupFilter as ValueGroupFilter;
if (Filtroporvalor.Condition != null)
{
ComparisonCondition condition = Filtroporvalor.Condition as ComparisonCondition;
var condicionaux = condition.Condition;
var valorthan = condition.Than;
switch (condicionaux.ToString())
{
case "Equals":
//Code that performs additional calculations
break;
case "IsGreaterThan":
//Code that performs additional calculations
break;
case "IsDoesNotEqual":
//Code that performs additional calculations
break;
}
}
}
But I cannot reach the other values, for example if I use "Equals", I would also like to obtain the name of the field that is used to perform that condition and so on for the other options of "Value Filter", that field is the one that is you can select in the window that is displayed when the filter is applied:
Thank you for your support.
Hello,
I have question about diagram zooming behavior. I would expect standard behavior, when zooming by mouse wheel, diagram should zoom with keeping point behind mouse cursor on the same position, zooming by toolbar buttons (programatically by ZoomIn / ZoomOut methods) should do the same, but keeping center point on the same position. It's almost working like this, but the first zoom (either by mouse or by buttons) do some strange first "move", and then it works like expected.
I
set zoom/position on startup to fit main shape to all control space,
also I added button "Zoom Fit" that makes the same. And I think that
control "remembers" some other zoom center and it does the first zoom by
this point. Next zooms work like expected. I have attached my test
project. I have also attached animations of behavior as attachments (I tried to add it to question as images, but I couldn't submit question with them, it have always ended with error).
When a user attempts to resize a column (yea, the columns are set to be resizeable) and the grid's horizontal scroll bar is visible, the column will not resize. We get the re-size icon, but nothing happens. As soon as the scroll bars are gone, the columns will then resize as excepted.
Anyone have a work around for this. It's driving our customers crazy....
Hello,
I am trying to get the ClearButton of the RadTextBox next to the TextBoxElement to work but when I place it next to it (via Margin and a bit of Padding) the ClearButton does not react to any mouse events anymore. All the mouse releated hover properties of the ClearButton are false, as well (ContainsMouse, IsHovered, IsMouseOver).
Most interesting here is that the tbxWithMargin.TextBoxElement.MouseMove event is triggered but it does not recognize that the mouse is over the ClearButton. I've also tried to check here if the cursor is over its BoundingRectangle without success.
You can see this behaviour in the attached project.
If this would be possible (without a general mouse move check event of the whole form!), I'd also would like to use this ClearButton placement for a RadTextBoxControl.
Not able to identify Automation ID inside Radlistview each cell.
Please bellow snapshot.
GridViewComboBoxColumn col5 = new GridViewComboBoxColumn("ResultType"); |
col5.DataSource = Enum.GetValues(typeof(EnumResultType)); |
col5.ValueMember = "???"; |
col5.DisplayMember = "???"; |
dgvDisciplines.MasterGridViewTemplate.Columns.Add(col5); |
public enum EnumResultType |
{ |
Maximum, |
Minimum, |
Summe, |
Durchschnitt |
} |
In my code, i want to add many items in radlistview and then save to sql server table in windows forms app. Here below is my code, but this code isnt working as radlistview does not contain definition for text
The ones i have lebelled in green color.
Note: This code normally works with normal windows list view control, but i want to use radlistview to implement the same.
if(ListView1.Items.Count == 0) { ListViewItem lst = new ListViewItem(txtCustomer.Text); lst.SubItems.Add(txtPhone.Text); lst.SubItems.Add(txtAddress.Text); lst.SubItems.Add(txtLoadNo.Text); lst.SubItems.Add(txtDriver.Text); lst.SubItems.Add(txtDriverPhone.Text); lst.SubItems.Add(txtHauler.Text); lst.SubItems.Add(txtPlateNo.Text); lst.SubItems.Add(txtProduct.Text); lst.SubItems.Add(txtDescription.Text); lst.SubItems.Add(txtQty.Text); lst.SubItems.Add(txtDate.Text); ListView1.Items.Add(lst); txtProduct.Text = ""; txtDescription.Text = ""; txtQty.Text = ""; return; } for(int j = 0; j <= ListView1.Items.Count - 1; j++) { if(ListView1.Items[j].SubItems[1].Text == txtCustomer.Text) { ListView1.Items[j].SubItems[1].Text = txtCustomer.Text; ListView1.Items[j].SubItems[2].Text = txtPhone.Text; ListView1.Items[j].SubItems[3].Text = txtAddress.Text; ListView1.Items[j].SubItems[4].Text = txtLoadNo.Text; ListView1.Items[j].SubItems[5].Text = txtDriver.Text; ListView1.Items[j].SubItems[6].Text = txtDriverPhone.Text; ListView1.Items[j].SubItems[7].Text = txtHauler.Text; ListView1.Items[j].SubItems[8].Text = txtPlateNo.Text; ListView1.Items[j].SubItems[9].Text = txtProduct.Text; ListView1.Items[j].SubItems[10].Text = txtDescription.Text; ListView1.Items[j].SubItems[11].Text = txtQty.Text; ListView1.Items[j].SubItems[12].Text = txtDate.Text; txtProduct.Text = ""; txtDescription.Text = ""; txtQty.Text = ""; return; } } ListViewItem lst1 = new ListViewItem(txtCustomer.Text); lst1.SubItems.Add(txtPhone.Text); lst1.SubItems.Add(txtAddress.Text); lst1.SubItems.Add(txtLoadNo.Text); lst1.SubItems.Add(txtDriver.Text); lst1.SubItems.Add(txtDriverPhone.Text); lst1.SubItems.Add(txtHauler.Text); lst1.SubItems.Add(txtPlateNo.Text); lst1.SubItems.Add(txtProduct.Text); lst1.SubItems.Add(txtDescription.Text); lst1.SubItems.Add(txtQty.Text); lst1.SubItems.Add(txtDate.Text); ListView1.Items.Add(lst1); txtProduct.Text = ""; txtDescription.Text = ""; txtQty.Text = ""; } catch(Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }
I'm trying to intercept the Open and Save As Buttons for special handling
I have tried
AddHandler RadPdfViewerNavigator1.CommandBarElement.Rows(0).Strips(0).MouseDown, AddressOf OpenButton_MouseDown
But the addressof sub never gets hit.
Also, when I try to get to the Save As button with the following code; it throws an error. So, I'm approaching this the wrong way I guess.
AddHandler RadPdfViewerNavigator1.CommandBarElement.Rows(0).Strips(1).MouseDown, AddressOf SaveButton_MouseDown
After searching the forums, I'm not seeing any way to do this (so, I must be missing something).
Can you please tell me how to intercept these buttons?
Hello!
I *LOVE* your PDF Viewer - wish I'd found this a few years back! I only wish it had TIFF support but that's for another time.
My users deal with large documents and having the Thumbnails is a nice navigation element.
They are NOT allowed to make bookmarks and for the life of me I can't figure out how to hide the Thumbnail menu button "Bookmarks"
In a perfect world, I'd like to hide that menu that sits directly above the thumbnail images entirely (two buttons. Left Button when clicked shows the Thumbnails. Right button when clicked shows Bookmarks.
How do I hide this menu OR if no way to hide it, how do i hide that "Bookmarks" button?
Cheers!
-c