Hi
How is it possible to change the backcolor of a ribbonTab if it's drop-downed.
I tried to change the following colors:
Hello,
Is there a simple way to open the DeleteRecurringAppointmentDialog? Just like adding an appointment with AddNewAppointmentWithDialog?
Best regards
Patrick Vossen
Hi- I'm having trouble with exporting grid contents to Excel- using winforms radgridview version 2018.1.220.40 in vb.net. (Hopefully this is a stupid question but I've spent an hour looking through documentation and I think I'm missing something.) I found the code snippet below in the documentation, but getting the error
gridViewExport is not defined, and gridviewExportOptions not defined...
I'm assuming that gridViewExport is supposed to be my radgridview object, but when I sub in the name of mine, it says 'export' is not a member of RadGridView...
Can you advise? Thanks very much.
-----------------------------------------
https://docs.telerik.com/devtools/wpf/controls/radgridview/export/export
Private Sub btnExport_Click(sender As Object, e As RoutedEventArgs)
Dim extension As String = "xls"
Dim dialog As New SaveFileDialog() With {
.DefaultExt = extension,
.Filter = String.Format("{1} files (.{0})|.{0}|All files (.)|.", extension, "Excel"),
.FilterIndex = 1
}
If dialog.ShowDialog() = True Then
Using stream As Stream = dialog.OpenFile()
gridViewExport.Export(stream, New GridViewExportOptions() With {
.Format = ExportFormat.Html,
.ShowColumnHeaders = True,
.ShowColumnFooters = True,
.ShowGroupFooters = False
})
End Using
End If
End Sub
Hello,
I have some issues with the MultiColumn ComboBox (in the following just CB) in Visual Studio, i'll show you some code steps:
step 1: init CB
With
myCB
.ClearTextOnValidation =
True
.DataBindings.Clear()
.BestFitColumns()
.ValueMember =
"wpno"
.DisplayMember =
"wpno"
.DataSource = myDataset.Tables(
"myTable"
)
.AutoFilter =
True
.AutoCompleteMode = AutoCompleteMode.Append
Dim
compositeFilter
As
New
CompositeFilterDescriptor()
Dim
selectField1
As
New
FilterDescriptor(
"fieldname1"
, FilterOperator.Contains,
""
)
Dim
selectField2
As
New
FilterDescriptor(
"fieldname2"
, FilterOperator.Contains,
""
)
Dim
selectField3
As
New
FilterDescriptor(
"fieldname3"
, FilterOperator.Contains,
""
)
compositeFilter.FilterDescriptors.Add(selectField1)
compositeFilter.FilterDescriptors.Add(selectField2)
compositeFilter.FilterDescriptors.Add(selectField3)
compositeFilter.LogicalOperator = FilterLogicalOperator.[
Or
]
.EditorControl.FilterDescriptors.Clear()
.EditorControl.FilterDescriptors.Add(compositeFilter)
.ValueMember =
"wpno"
.DisplayMember =
"wpno"
.DataSource = myDataset.Tables(
"myTable"
)
End
With
step 2: select an entry via the GUI or via
myCB.SelectedIndex = 2
works fine
step 3: open another form to edit some values of the selected entry
Me
.Enabled =
False
otherForm.Show()
step 4: Edit entry in other form, set a flag and return to first form (containing the CB)
updateEntry(updateField, updateValue)
updComboList =
True
firstForm.Enabled =
True
Me
.Close()
step 5: reload values for the CB
If
updComboList
Then
updateDataset()
updateCB()
'code from step1
CB.Enabled =
True
CB.SelectedIndex = 2
'doesn't work
End
If
From now on, no change of selection via SelectedIndex or even via the GUI is possible! The CB is still responsive in terms of colors while hovering cells, but no selection is made when I click anywhere on the drop-down table of the CB. This table doesn't close again either.
Do you have any suggestions? Or is there maybe a bug with this MultiColumn ComboBox?
Thanks heaps.
C#, Winforms
I have an XML data source (Main) that I am binding to my gridview. I want one column to be a combobox. I'm using a separate XML file (Options) for the combobox options.
Questions:
1) When I set the data source for the combobox to the Options dataset, the column is blank. I want it to be the value listed in the Main dataset. The result I seek is that when the grid loads, the values from the Main dataset are loaded. The user can then edit the combobox column by selecting from the drop down that is populated from the Options dataset. How can I achieve this?
2) Obviously, I want to save these back edits back to the main dataset. How can I rebind the column to the Main dataset?
Hello,
Is there a simple way to get the selected appointment in agenda view?
Or is there a way to convert a AgendaAppointmentWrapper to an Appointment?
Grtz and thnxs
Patrick Vossen
Dim btnElement As New RadButtonElement |
btnElement.Text = "try this" |
btnElement.Size = New Drawing.Size(20, 20) |
Dim textboxElement As RadTextBoxElement = txtSearchFor.TextBoxElement |
textboxElement.Children.Add(btnElement) |
AddHandler btnElement.Click, AddressOf btnClearSearh_Click |
I have gridview with string, date, and numeric columns. Once I set the data source and fill with data, I format each column to a suitable display - eg: short date, 2 decimal places for some, 4 decimals for others, etc. using the column.formatstring.
On a row click I need to get the formatted cell text, not the value and am wondering how I can do this? Eg: the underlying value of a cell is 12345.670000 but is formatted and displayed in the cell as 12,345.67. I could not find a "cell.text" property; and cell.value gives me the raw data.
How can I get the formatted cell text? Thanks, Brendan
Hello
I try to use the BrowseEditor in DialogType=FontFialog and I am faced with a few questions:
The value returned is a string ex: "Microsoft Sans Serif; 12pt; style=Bold"
1. How do I convert this string to a font type, taking into account that depending on the culture the size may be shown as 8,5 or 8.5
2. How do I set the initial value of the fonteditor from a fontvariable
4. Selecting "Modern 20, bold, size 8", I get the value: "Modern No. 20; 8,249999pt; style=Bold" (not that I want to use this font but I came across this anomality ,,,)
5. How do I change the initial text "(none)" in a localized text
And While I am on the BrowseEditor, in folderBrowseDialog, I select the intial directory on the .value property and it sets it properly but it is not always "visible" how can I insurevisible on the selected folder
Thanks in advance
Pierre-Jean