Telerik Forums
UI for WinForms Forum
0 answers
155 views
Hello...
I wanna create barcode for textentered... Telerik is providing a nice barcode generation in reports and my requirement is to use different "symbolize" to convert. I can go for any code but coding is different for each and every symbolize. My question is can i use reporting barcode in form...

If yes can u suggest me the code...
krishna
Top achievements
Rank 1
 asked on 29 Mar 2011
3 answers
131 views
I'm facing a problem while updating the DataTable. The SelectedRows list references the old objects when updating the DataTable using BeginUpdate and EndUpdate.

code snippet is as follows:
gridView.GridElement.BeginUpdate();
DataTable dt = gridView.DataSource as DataTable;
dt.Clear();
 
// Loops a list and add DataRows with dt.NewRow() function
 
gridView.GridElement.EndUpdate();

Upon execution of the above code, the SelectedRows should ideally be cleared. However, they are still having objects in the List. 
I'm not facing this issue when BeginUpdate() and EndUpdate() function is not used. 

I'm using Q1 2010 SP2.

I understand that this is a old version and it might have got resolved in latest versions, however, I'm not in a state to upgrade. Please suggest me some workaround for this.
Arunkumar Dharuman
Top achievements
Rank 1
 answered on 29 Mar 2011
3 answers
215 views
I have four ToolWindows added dynmaically to a RadControl.  These always render with equal sizes.  I want to make one of these a smaller fixed size with the others bigger to make up the difference.  I have tried setting the ToolWindow Height, the DockTabStrip Height, I've set the TabStrip.SizeInfo.SizeMode to Absolute, everything I try has no effect on the height.

I'm new to winforms and am struggling here.  Any help would be most welcome.
Stefan
Telerik team
 answered on 29 Mar 2011
5 answers
409 views
Hey all,

I have a multiview calendar that has 6 columns and 2 rows and I need to show January as the first month and December as the last month (for any selected year). I have set the rangemin to January 1st (selected year) and the rangemax to December 31st (selected year), however this does not cause January to be the first month, the first month is whatever the current month is (in this case March). So I tried setting the focusdate to January 1st (selected year) and that works, however it causes the calendar to look like January 1st is selected, which causes confusion because the user is looking at all of their scheduled working days for the year. I've tried to reset the focusdate to another date (that is a working day, thereby "hiding" the focusdate) within the selected year and that seems to work, however it seems like a workaround and I'm wondering if there is a better way to do what I'm doing.

I would think there is an easy way to set the first/last displayed month without having to set the focusdate. If anyone knows how to do this please let me know.

Also, how do I get rid of the border around today's date?

Thanks!

edit: Tried this, CalendarElement.Calendar.DefaultView.ViewStartDate = "1/1/" & GoalYear but that doesn't work either.

edit2: The above code allows me to click on the calendar header and then I can see that "View" and select it, however I need it auto selected of course

edit3: Ok, I'm seeing really weird behavior. I'm attaching 3 screenshots to show, but basically when the form loads the header says "January 2011-December 2011", however the calendar's start at March 2011 (screenshot 1). When I click on the header I get 2? view options, "January 2011-December 2011" and "December 2011-November 2012" (screenshot 2). If I select "January 2011-December 2011" (which is what I want it to load as) then the result is screenshot 3, which is correct.
Josh
Top achievements
Rank 1
 answered on 28 Mar 2011
1 answer
151 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
500 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
52 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
86 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
110 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
307 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
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)
Chart (obsolete as of Q1 2013)
Form
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Iron
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Iron
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?