Hi,
I have just upgraded my RadControls for WinForms from Q1 2010 SP1 to Q1 2011.
Since I have been using RadToolStrips in my project, I got warnings telling me to use CommandBars instead of RadToolStrip.
So, I tried switching all the RadToolStrips to CommandBars, but I noticed the only way to add RadioButtons in a CommandBar is to use CommandBarHostItem. However, I couldn't put more than 1 RadioButton in a CommandBarHostItem. I had to create 1 CommandBarHostItem for each RadioButton, and if I do it that way, multiple RadioButtons can be selected at one time, which defeated my purpose of using RadioButtons because I want only one button in a group of radio buttons can be selected at one time.
Are there any solutions for my case?
Thanks
Something is overriding my settings.
RadImageItem image1 =
new
RadImageItem();
image1.Image = rl.RootElement.GetAsBitmap(Brushes.White, 0,
new
SizeF(1, 1));
rl.RootElement.GetAsBitmap(Brushes.White, 0,
new
SizeF(1, 1));
RadImageItem image2 =
new
RadImageItem();
image2.Image = grid.RootElement.GetAsBitmap(Brushes.White, 0,
new
SizeF(1, 1));
RadItemsContainer ric =
new
RadItemsContainer();
ric.Items.Add(image1);
ric.Items.Add(image2);
RadImageItem image3 =
new
RadImageItem();
image3.Image = ric.GetAsBitmap(Brushes.White, 0,
new
SizeF(1, 1));
image3.ImageKey = imageKey;
Private Sub rgvWechselProtokoll_GroupSummaryEvaluate(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GroupSummaryEvaluationEventArgs) Handles rgvWechselProtokoll.GroupSummaryEvaluate
If e.Parent Is Me.rgvWechselProtokoll.MasterTemplate Then
Dim fulltime As String
fulltime = Date.FromOADate(CDbl(e.Value) / 86400)
e.FormatString = String.Format("Gesamtzeit = {0:T}", fulltime)
End If
End Sub
Me.rgvWechselProtokoll.Columns.Add("Sekunden")
Me.rgvWechselProtokoll.Columns("Sekunden").IsVisible = False
Dim summaryItem As New GridViewSummaryItem()
summaryItem.Name = "Start"
summaryItem.AggregateExpression = "Sum(Sekunden)"
summaryItem.FormatString = "Gesamt = {0}"
Dim summaryRowItem As New GridViewSummaryRowItem()
summaryRowItem.Add(summaryItem)
Me.rgvWechselProtokoll.SummaryRowsBottom.Add(summaryRowItem)
Private Sub rgvWechselProtokoll_GroupSummaryEvaluate(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GroupSummaryEvaluationEventArgs) Handles rgvWechselProtokoll.GroupSummaryEvaluate
If e.Parent Is Me.rgvWechselProtokoll.MasterTemplate Or IsNumeric(e.Value) Then
Dim fulltime As String
fulltime = Date.FromOADate(CDbl(e.Value) / 86400)
e.FormatString = String.Format("Gesamtzeit = {0:T}", fulltime)
End If
End Sub
Hi
I have in my object couple columns of type DateTime. I use built in functionality for sorting. On the column header user can type date. My problem is that I can define only date, hours, minutes and seconds are always zero (take a look at the screenshot).
Is there any possibility to let the user define also hours?
Regards
This is the error:
Value of '1' is not valid for 'Value'. 'Value' must be between 'Minimum' and 'Maximum'.
Parameter name: Value
at Telerik.WinControls.UI.RadScrollBarElement.set_Value(Int32 value)\r\n
at Telerik.WinControls.UI.GridTableElement.EnsureRowVisible(GridViewRowInfo rowInfo)\r\n
at Telerik.WinControls.UI.GridTableElement.UpdateCurrentPosition()\r\n
at Telerik.WinControls.UI.GridViewInfo.SetCurrentRow(GridViewRowInfo row, Boolean setPosition, Boolean shift, Boolean control)\r\n
at Telerik.WinControls.UI.GridViewTemplate.SetCurrentRow(GridViewRowInfo rowInfo)\r\n
at Telerik.WinControls.Data.DataAccessComponent.InitDataGrid()\r\n
at Telerik.WinControls.Data.DataAccessComponent.currencyManager_ListChanged(Object sender, ListChangedEventArgs e)\r\n
at System.Windows.Forms.CurrencyManager.OnListChanged(ListChangedEventArgs e)\r\n
at System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)\r\n
at System.Windows.Forms.BindingSource.OnListChanged(ListChangedEventArgs e)\r\n
at System.Windows.Forms.BindingSource.SetList(IList list, Boolean metaDataChanged, Boolean applySortAndFilter)\r\n
at System.Windows.Forms.BindingSource.ResetList()\r\n
at System.Windows.Forms.BindingSource.ParentCurrencyManager_MetaDataChanged(Object sender, EventArgs e)\r\n
at System.EventHandler.Invoke(Object sender, EventArgs e)\r\n
at System.Windows.Forms.CurrencyManager.OnMetaDataChanged(EventArgs e)\r\n
at System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)\r\n
at System.Windows.Forms.BindingSource.OnListChanged(ListChangedEventArgs e)\r\n
at System.Windows.Forms.BindingSource.SetList(IList list, Boolean metaDataChanged, Boolean applySortAndFilter)\r\n
at System.Windows.Forms.BindingSource.ResetList()\r\n at System.Windows.Forms.BindingSource.set_DataSource(Object value)\r\n
I can't figure out what is wrong based on the error description.
private
void
raddock_DockWindowClosing(
object
sender, Telerik.WinControls.UI.Docking.DockWindowCancelEventArgs e)
{
//closing windows
System.Windows.Forms.Form WindowClosing;
//dockwindow
if
(e.DockWindow
is
Telerik.WinControls.UI.Docking.HostWindow)
//can convert
if
(((Telerik.WinControls.UI.Docking.HostWindow)e.DockWindow).Content
is
System.Windows.Forms.Form)
//save the closing window
WindowClosing = (System.Windows.Forms.Form)((Telerik.WinControls.UI.Docking.HostWindow)e.DockWindow).Content;
((Telerik.WinControls.UI.Docking.HostWindow)e.DockWindow).Content
is always null.