Telerik Forums
UI for WinForms Forum
1 answer
208 views

Hi

I want to use the grouping function of radScheduler to only group visible resources.
But it does not work, it always shows all resources.
What am I doing wrong?

*** sample code loading Resources

            Resource tempResource = null;

            recResourceGroup[] resourceGroups = plannerSettings.recResourceGroup;
            foreach (recResourceGroup resourceGroup in resourceGroups)
            {
                tempResource = new Resource("G-"+resourceGroup.No,resourceGroup.Name);
                tempResource.Visible = false;
                tempResource.Color = Color.Orange;
                plannerSchedule.Resources.Add(tempResource);

                recResource[] resources = resourceGroup.recResource;
                foreach (recResource resource in resources)
                {
                    string sKey = resource.IsRentalItem.ToString() == "1" ? "M" : "R";
                    sKey += resource.VirtualResource.ToString() == "1" ? "V-" : "-";
                    tempResource = new Resource(sKey+resource.No,resource.Name);
                    tempResource.Visible = false;
                    tempResource.Color = Color.Green;
                    plannerSchedule.Resources.Add(tempResource);
                }
            }

*** sample code loading Appointment-Resources

foreach (recResourceAssigned planningAssignedResource in planningAssignedResources)
{
    string sKey = null;
    switch (planningAssignedResource.Type.ToString())
    {
        case "0":  //resource
            {
                sKey = "R-" + planningAssignedResource.No.ToString();
            }
            break;
        case "1":  //resourceGroup
            {
                sKey = "G-" + planningAssignedResource.No.ToString();
            }
            break;
        case "2":  //workPlace
            {
                sKey = "W-" + planningAssignedResource.No.ToString();
            }
            break;
        default:
            {
                //error not supported
            }
            break;
    };
    schedulerApp.ResourceIds.Add(plannerSchedule.Resources.GetById(sKey).Id);
}

*** Sample code switching visibility of Resources

  foreach (Resource resource in radScheduler1.Resources)
  {
      string tempKey = resource.Id.KeyValue.ToString();
      switch(groupby)
      {
          case "resource":
              resource.Visible = tempKey.Contains("R-") ? true : false;
              break;
          case "resourceGroup":
              resource.Visible = tempKey.Contains("G-") ? true : false;
              break;
          case "workplace":
              resource.Visible = tempKey.Contains("W-") ?  true : false;
              break;
          case "order":
              resource.Visible = tempKey.Contains("J-") ? true : false;
              break;
         default:
              resource.Visible = false;
              break;
       }
...
  

 

 

radScheduler1.RepaintElements();

 

 

 


any ideas?
Daniel

Dobry Zranchev
Telerik team
 answered on 28 Mar 2011
3 answers
650 views

Hello!

Is it possible to set the font of the dropdown grid other then default "Segoe UI" ?

The expected behavior is that the grid must use the same font as RadMultiColumnComboBox.

The code I tried to use is similar to this:

RadMultiColumnComboBox combo = new RadMultiColumnComboBox();
combo.Font =new System.Drawing.Font("Microsoft Sans Serif", 8.25F); 
combo.EditorControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);

But the dropdown grid still uses Segoe UI Font.

Richard Slade
Top achievements
Rank 2
 answered on 28 Mar 2011
2 answers
124 views
FYI...you might already know this, but there appears to be a slight alignment bug in the GridView property builder.  I tried resizing the window but it did not fix it.  No real issue but just a friendly heads up.  See screenshot.

Stefan
Telerik team
 answered on 28 Mar 2011
1 answer
169 views
I'm making a system that takes data from the database and export pro excel. But that has hours of this error and can no longer export. Can anyone help me?

See end of this message for details on invoking
debugging just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

   em Sistema.bll.clnRelatorio.relatoriosEmpresas(String numgEmprsas)
   em Sistema.frmImportacao.relatorios(List`1 numg_Empresas, String empresa)
   em Sistema.frmPesquisa.btnImportar_Click(Object sender, EventArgs e)
   em System.Windows.Forms.Control.OnClick(EventArgs e)
   em Telerik.WinControls.RadControl.OnClick(EventArgs e)
   em Telerik.WinControls.UI.RadButton.ButtonElement_Click(Object sender, EventArgs e)
   em Telerik.WinControls.RadItem.OnClick(EventArgs e)
   em Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
   em Telerik.WinControls.RadItem.DoClick(EventArgs e)
   em Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   em Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
   em Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   em System.Windows.Forms.Control.WndProc(Message& m)
   em System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   em Telerik.WinControls.RadControl.WndProc(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Conjuntos de Módulos (Assemblies) Carregados **************
mscorlib
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.4062 (QFE.050727-4000)
    Base de Código: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
mscorlib.resources
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.4062 (QFE.050727-4000)
    Base de Código: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Sistema
    Versão do Conjunto de Módulos (Assembly): 2010.2.713.0
    Versão do Win32: 2010.2.713.0
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/Sistema.exe
----------------------------------------
System.Windows.Forms
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Telerik.WinControls.UI
    Versão do Conjunto de Módulos (Assembly): 2010.2.10.713
    Versão do Win32: 2010.2.10.0713
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/Telerik.WinControls.UI.DLL
----------------------------------------
Telerik.WinControls
    Versão do Conjunto de Módulos (Assembly): 2010.2.10.713
    Versão do Win32: 2010.2.10.0713
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/Telerik.WinControls.DLL
----------------------------------------
TelerikCommon
    Versão do Conjunto de Módulos (Assembly): 2010.2.10.713
    Versão do Win32: 2010.2.10.0713
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/TelerikCommon.DLL
----------------------------------------
System.Xml
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3074 (QFE.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
ptauwmit
    Versão do Conjunto de Módulos (Assembly): 2010.2.10.713
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms.resources
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_pt-BR_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Data
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
ExportExcel
    Versão do Conjunto de Módulos (Assembly): 1.0.0.0
    Versão do Win32: 1.0.0.0
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/ExportExcel.DLL
----------------------------------------
System.Data.resources
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Data.resources/2.0.0.0_pt-BR_b77a5c561934e089/System.Data.resources.dll
----------------------------------------

************** JIT Debugging **************
To enable debugging just-in-time (JIT), the. config this
application or computer (machine.config) must have the value
jitDebugging defined in section system.windows.forms.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
     <system.windows.forms jitDebugging="true" />
</ configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 

Richard Slade
Top achievements
Rank 2
 answered on 28 Mar 2011
4 answers
163 views
Ok, I don't know if this is an issue with RadControls, or just Visual Studio in general, but basically, I can't select different pages on a pageview, or anything that has child controls within the designer. Also, the bottom gray area of the designer now shows ALL controls that are on the form, instead of just things like timers, background workers, etc. (see screenshot).

If anyone has run into this before, any ideas what's up?

Thanks!!

Stefan
Telerik team
 answered on 28 Mar 2011
2 answers
417 views
Dim col = New GridViewDecimalColumn()
col.Name = "Calculated Column"
col.HeaderText = "Order value"
RadGridView1.Columns.Add(col)
RadGridView1.Columns("Calculated Column").Expression = "UnitsOnOrder * UnitPrice"
'=========================================================
I want to use Function math.round("UnitsOnOrder * UnitPrice",3) in Column("Calculated Column").Expression
How can i calculate ?

Thank you.
Daniel
Top achievements
Rank 1
 answered on 28 Mar 2011
1 answer
130 views
After upgrading to Q1 2011, drag and drop within a single treeview is no longer working in an existing project.  The treeview is bound to a DataTable.

 

 

 

tv.AllowDragDrop = true;
tv.DataSource = _subOptions;
tv.DisplayMember = "optionDesc";
tv.ValueMember = "OptionID";

According to the documentation, this simple example should work. Any idea why it doesn't?

Svett
Telerik team
 answered on 28 Mar 2011
2 answers
97 views
I've added all the themes manually to Visual Basic 2010 Express, and I add a theme to the form1.vb, and it does nothing! Do you have to code it out to tell it to run the theme on that form manually? If so please tell me the code becuase it took forever downloading the installation for it. So if someone can just help me, please do.....
Ivan Petrov
Telerik team
 answered on 28 Mar 2011
1 answer
340 views
HI

I have a Gridview with 5 columns one of them is  "Posted" column. it has 'Yes' or 'No'  ,only two possible values...
If value of a perticular row is 'Yes' for Posted column then the row should be readonly....

Let me know How can I achive this....

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 28 Mar 2011
2 answers
190 views
On a standard bar chart the item's value sits on top of the bar (see pic).  That's fine if you have a lot of space.  Does anyone know how or if it's possible to have the item value popup when the mouse is moved over the item.  Same can be said for the spleen mode and some of the over chart types in fact,
Nick Jones
Top achievements
Rank 1
 answered on 28 Mar 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?