Hi all
I have downloaded the trial today for Winforms and the main reason for this is to be able to theme the controls so it will display the way I want it to on all versions of Windows (I am a bit picky when it comes to my user interface :) ).
I have in my application three distinct modules and each module has its own color base, green, blue and red (and buttons also have a fourth, grey). The application is currently a Flash Builder Application, so achieving the different colors was not an issue, changing it to a C# application has meant major time delays as I attempt to replicate what was so easily achievable as a Flash Builder application.
Anyway, the controls I mainly use are TextBoxes, ComboBoxes, CheckBoxes, DataGrids, Buttons and Custom popup forms. I played with the buttons today (yes I chose the easiest first) and I have this working perfectly. I then tried TextBoxes and ComboBoxes and hit a wall. The text highlight color and mouse hover over colors, I can't seem to locate to change.
Other things I currently do is that my have alternating row colors, so do my . I also have specific row and text formatting for some if a certain cell contains a specific qualifier.
Is it possible for a Checkbox to have an X instead of a tick?
Is this all possible with this or am I needing to look at something else?
I also would prefer the main application form to be unthemed, running as it would natively, just the controls within the application to be themed, is that possible?
Hopefully, this will be what I am after, I have tried Nevron Controls and even though it looks like that can achieve this, their documentation and examples have no meat on the bones, so it is difficult to pick up quickly without support's assistance.
thanks.

I was wondering how I can vertically align the text input in the center? I can horizontally align, but my text still appears at the top of the TextBoxControl and I want it vertically centered.
Thanks.

I'm currently using 2009.1.9.414 and i made sure the Multiselect option was set to true and the selectionmode was row but with no results. Here is the designer code for the grid
| Me.RadGridView_SessionData.AllowShowFocusCues = True |
| resources.ApplyResources(Me.RadGridView_SessionData, "RadGridView_SessionData") |
| Me.RadGridView_SessionData.BackColor = System.Drawing.Color.Black |
| Me.RadGridView_SessionData.Cursor = System.Windows.Forms.Cursors.Default |
| Me.RadGridView_SessionData.EnableFastScrolling = True |
| Me.RadGridView_SessionData.EnableHotTracking = False |
| Me.RadGridView_SessionData.ForeColor = System.Drawing.Color.White |
| ' |
| ' |
| ' |
| Me.RadGridView_SessionData.MasterGridViewTemplate.AllowAddNewRow = False |
| Me.RadGridView_SessionData.MasterGridViewTemplate.AllowCellContextMenu = False |
| Me.RadGridView_SessionData.MasterGridViewTemplate.AllowColumnChooser = False |
| Me.RadGridView_SessionData.MasterGridViewTemplate.AllowColumnHeaderContextMenu = False |
| Me.RadGridView_SessionData.MasterGridViewTemplate.AllowDeleteRow = False |
| Me.RadGridView_SessionData.MasterGridViewTemplate.AllowEditRow = False |
| Me.RadGridView_SessionData.MasterGridViewTemplate.AllowRowResize = False |
| GridViewTextBoxColumn1.AllowGroup = False |
| GridViewTextBoxColumn1.AllowResize = False |
| GridViewTextBoxColumn1.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| resources.ApplyResources(GridViewTextBoxColumn1, "GridViewTextBoxColumn1") |
| GridViewTextBoxColumn1.FieldName = "DeviceName" |
| GridViewTextBoxColumn1.IsAutoGenerated = True |
| GridViewTextBoxColumn1.Multiline = True |
| GridViewTextBoxColumn1.ReadOnly = True |
| GridViewTextBoxColumn1.UniqueName = "DeviceName" |
| GridViewTextBoxColumn1.VisibleInColumnChooser = False |
| GridViewTextBoxColumn1.Width = 118 |
| GridViewTextBoxColumn1.WrapText = True |
| GridViewTextBoxColumn2.AllowGroup = False |
| GridViewTextBoxColumn2.AllowResize = False |
| GridViewTextBoxColumn2.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| GridViewTextBoxColumn2.DataType = GetType(System.TimeSpan) |
| resources.ApplyResources(GridViewTextBoxColumn2, "GridViewTextBoxColumn2") |
| GridViewTextBoxColumn2.FieldName = "AirTime" |
| GridViewTextBoxColumn2.IsAutoGenerated = True |
| GridViewTextBoxColumn2.ReadOnly = True |
| GridViewTextBoxColumn2.UniqueName = "qwer" |
| GridViewTextBoxColumn2.VisibleInColumnChooser = False |
| GridViewTextBoxColumn2.Width = 80 |
| GridViewDecimalColumn1.AllowGroup = False |
| GridViewDecimalColumn1.AllowResize = False |
| GridViewDecimalColumn1.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| GridViewDecimalColumn1.DataType = GetType(Integer) |
| resources.ApplyResources(GridViewDecimalColumn1, "GridViewDecimalColumn1") |
| GridViewDecimalColumn1.FieldName = "qew" |
| GridViewDecimalColumn1.ImageLayout = System.Windows.Forms.ImageLayout.None |
| GridViewDecimalColumn1.ReadOnly = True |
| GridViewDecimalColumn1.StretchVertically = False |
| GridViewDecimalColumn1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter |
| GridViewDecimalColumn1.UniqueName = "qewr" |
| GridViewDecimalColumn1.VisibleInColumnChooser = False |
| GridViewDecimalColumn1.Width = 80 |
| GridViewImageColumn1.AllowResize = False |
| GridViewImageColumn1.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| GridViewImageColumn1.DataType = GetType(System.Drawing.Image) |
| resources.ApplyResources(GridViewImageColumn1, "GridViewImageColumn1") |
| GridViewImageColumn1.FieldName = "qwe" |
| GridViewImageColumn1.UniqueName = "ewr" |
| GridViewImageColumn1.VisibleInColumnChooser = False |
| GridViewImageColumn1.Width = 70 |
| GridViewImageColumn2.AllowResize = False |
| GridViewImageColumn2.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| GridViewImageColumn2.DataType = GetType(System.Drawing.Image) |
| resources.ApplyResources(GridViewImageColumn2, "GridViewImageColumn2") |
| GridViewImageColumn2.FieldName = "asd" |
| GridViewImageColumn2.UniqueName = "asdf" |
| GridViewImageColumn2.VisibleInColumnChooser = False |
| GridViewImageColumn2.Width = 70 |
| GridViewImageColumn3.AllowResize = False |
| GridViewImageColumn3.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| GridViewImageColumn3.DataType = GetType(System.Drawing.Image) |
| resources.ApplyResources(GridViewImageColumn3, "GridViewImageColumn3") |
| GridViewImageColumn3.FieldName = "asdf" |
| GridViewImageColumn3.UniqueName = "asdf" |
| GridViewImageColumn3.VisibleInColumnChooser = False |
| GridViewImageColumn3.Width = 60 |
| GridViewImageColumn4.AllowResize = False |
| GridViewImageColumn4.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| GridViewImageColumn4.DataType = GetType(System.Drawing.Image) |
| resources.ApplyResources(GridViewImageColumn4, "GridViewImageColumn4") |
| GridViewImageColumn4.FieldName = "Range" |
| GridViewImageColumn4.UniqueName = "Range" |
| GridViewImageColumn4.VisibleInColumnChooser = False |
| GridViewImageColumn4.Width = 80 |
| GridViewTextBoxColumn3.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| resources.ApplyResources(GridViewTextBoxColumn3, "GridViewTextBoxColumn3") |
| GridViewTextBoxColumn3.FieldName = "Assignment" |
| GridViewTextBoxColumn3.IsAutoGenerated = True |
| GridViewTextBoxColumn3.ReadOnly = True |
| GridViewTextBoxColumn3.UniqueName = "Assignment" |
| GridViewTextBoxColumn3.VisibleInColumnChooser = False |
| GridViewTextBoxColumn3.Width = 80 |
| GridViewTextBoxColumn4.CustomDataOperation = Telerik.WinControls.UI.CustomDataOperation.Sorting |
| resources.ApplyResources(GridViewTextBoxColumn4, "GridViewTextBoxColumn4") |
| GridViewTextBoxColumn4.FieldName = "Division" |
| GridViewTextBoxColumn4.IsAutoGenerated = True |
| GridViewTextBoxColumn4.ReadOnly = True |
| GridViewTextBoxColumn4.UniqueName = "Division" |
| GridViewTextBoxColumn4.VisibleInColumnChooser = False |
| GridViewTextBoxColumn4.Width = 100 |
| GridViewImageColumn5.DataType = GetType(Byte()) |
| resources.ApplyResources(GridViewImageColumn5, "GridViewImageColumn5") |
| GridViewImageColumn5.FieldName = "DeviceID" |
| GridViewImageColumn5.IsAutoGenerated = True |
| GridViewImageColumn5.IsVisible = False |
| GridViewImageColumn5.UniqueName = "qwer" |
| GridViewImageColumn5.Width = 200 |
| GridViewDecimalColumn2.DataType = GetType(Integer) |
| resources.ApplyResources(GridViewDecimalColumn2, "GridViewDecimalColumn2") |
| GridViewDecimalColumn2.FieldName = "IncidentID" |
| GridViewDecimalColumn2.IsAutoGenerated = True |
| GridViewDecimalColumn2.IsVisible = False |
| GridViewDecimalColumn2.UniqueName = "IncidentID" |
| GridViewDecimalColumn3.DataType = GetType(Integer) |
| resources.ApplyResources(GridViewDecimalColumn3, "GridViewDecimalColumn3") |
| GridViewDecimalColumn3.FieldName = "UserID" |
| GridViewDecimalColumn3.IsAutoGenerated = True |
| GridViewDecimalColumn3.IsVisible = False |
| GridViewDecimalColumn3.UniqueName = "UserID" |
| GridViewDecimalColumn3.Width = 124 |
| GridViewDecimalColumn4.DataType = GetType(Integer) |
| resources.ApplyResources(GridViewDecimalColumn4, "GridViewDecimalColumn4") |
| GridViewDecimalColumn4.FieldName = "SessionID" |
| GridViewDecimalColumn4.IsAutoGenerated = True |
| GridViewDecimalColumn4.IsVisible = False |
| GridViewDecimalColumn4.ReadOnly = True |
| GridViewDecimalColumn4.UniqueName = "SessionID" |
| GridViewDecimalColumn5.DataType = GetType(Integer) |
| resources.ApplyResources(GridViewDecimalColumn5, "GridViewDecimalColumn5") |
| GridViewDecimalColumn5.FieldName = "NodeID" |
| GridViewDecimalColumn5.IsAutoGenerated = True |
| GridViewDecimalColumn5.IsVisible = False |
| GridViewDecimalColumn5.UniqueName = "NodeID" |
| GridViewDecimalColumn6.DataType = GetType(Integer) |
| resources.ApplyResources(GridViewDecimalColumn6, "GridViewDecimalColumn6") |
| GridViewDecimalColumn6.FieldName = "TankMaxPressure" |
| GridViewDecimalColumn6.IsAutoGenerated = True |
| GridViewDecimalColumn6.IsVisible = False |
| GridViewDecimalColumn6.UniqueName = "TankMaxPressure" |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewTextBoxColumn1) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewTextBoxColumn2) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn1) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn1) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn2) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn3) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn4) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewTextBoxColumn3) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewTextBoxColumn4) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewImageColumn5) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn2) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn3) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn4) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn5) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.Columns.Add(GridViewDecimalColumn6) |
| Me.RadGridView_SessionData.MasterGridViewTemplate.DataSource = Me.SessionBindingSource |
| Me.RadGridView_SessionData.MasterGridViewTemplate.ShowGroupedColumns = True |
| Me.RadGridView_SessionData.MultiSelect = True |
| Me.RadGridView_SessionData.Name = "RadGridView_SessionData" |
| Me.RadGridView_SessionData.NewRowEnterKeyMode = Telerik.WinControls.UI.RadGridViewNewRowEnterKeyMode.None |
| Me.RadGridView_SessionData.ReadOnly = True |
| ' |
| ' |
| ' |
| Me.RadGridView_SessionData.RootElement.ForeColor = System.Drawing.Color.White |
| Me.RadGridView_SessionData.RootElement.Text = Global.ScottHealthSafety.SEMS.UI.Windows.My.Resources.Resources.Appcopyright |
| Me.RadGridView_SessionData.ThemeName = "BlueGrid3" |

CType(e.CurrentRow, GridViewNewRowInfo).Cells("Acct_Code").CellElement.Focus()
but it has no effect. I looked into some of the other events, RowChanging and DefaultValuesNeeded, but CellElement is nothing at that point.



Dear Team,
How do I set the image of button control to TelerikWebui Glyphs Icons or if possible a link to download the TeleriWebUI Icons.
I Try the below code and it works fine but is there a better way to set only the button image to the glyphs icon
sub new
Dim font1 = ThemeResolutionService.GetCustomFont("TelerikWebUI")
btnSave.ButtonElement.CustomFont = font1.Name
btnSave.ButtonElement.Text = ChrW(&HE109).ToString() & " Save"
end sub

Hello
I have a dynamically loaded textboxcontrol to which I attach an image from a file as background image.
At some point I need to remove the textboxcontrol from the RadPanel into which it has been added and I need to delete the image file used as background image
The File.delete(imagefilename) generates an error telling the it cannot delete the file because it is in use by another process.
I have tried to set the backgroundimage to nothing before the file delete but it does not help
Does anyone know how can I release the file ?
Thanks in advance
Pierre-Jean

I need to be able to add a checkbox into the appointment on the scheduler its to allow staff to say that someone has arrived for the appointment. I am using c# and the 30 day demo thanks.

I am trying to bind resources to my appointments which has a field called ProviderId that provider id maps to a provider table, however the text is not showing
01.private void BindScheduler()02. {03. try04. 05. {06. SchedulerBindingDataSource dataSource = new SchedulerBindingDataSource();07. AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo();08. BindingSource _bindingsource = new BindingSource();09. 10. ResourceMappingInfo _resource = new ResourceMappingInfo();11. appointmentMappingInfo.Start = "ApptDate";12. appointmentMappingInfo.End = "AppEnd";13. appointmentMappingInfo.Duration = "ApptLength";14. 15. appointmentMappingInfo.UniqueId = "ID";16. 17. appointmentMappingInfo.Location = "Location";18. 19. appointmentMappingInfo.Summary = "THIS IS A TEST FOR SUMMARY";20. appointmentMappingInfo.Description = "NAME";21. 22. dataSource.EventProvider.Mapping = appointmentMappingInfo;23. dataSource.EventProvider.DataSource = _bindingsource;24. 25. _bindingsource.DataSource = SourceDal.getAppointments(monthCalendar1.SelectionRange.Start);26. 27. appointmentMappingInfo.ResourceId = "ProviderID";28. 29. 30. 31. BindingList<CustomResource> resources = new BindingList<CustomResource>();32. ResourceMappingInfo resourceMappingInfo = new ResourceMappingInfo();33. resourceMappingInfo.Name = "Name";34. resourceMappingInfo.Id = "Id";35. resources = SourceDal.GetProviders();36. dataSource.ResourceProvider.Mapping = resourceMappingInfo;37. dataSource.ResourceProvider.DataSource = resources;38. 39. 40. 41. this.sourceNetAppointments.GroupType = GroupType.Resource;42. 43. 44. 45. 46. this.sourceNetAppointments.ElementProvider = new MyElementProvider(this.sourceNetAppointments);47. 48. this.sourceNetAppointments.DataSource = dataSource;49. 50. 51. }52. catch (Exception ex)53. {54. 55. }56. 57. }
Here you can see my get providers call.
01.public BindingList<CustomResource> GetProviders()02. {03. BindingList<CustomResource> resources = new BindingList<CustomResource>();04. 05. try06. {07. var q = from lookup in _sourceEntities.Providers08. orderby lookup.FirstName09. select new10. {11. Code = lookup.ID,12. Description = lookup.FirstName.Trim() + "" + lookup.LastName.Trim()13. };14. 15. if (q != null)16. {17. Array.ForEach(q.ToArray(), l =>18. {19. for (int i = 0; i < 5; i++)20. {21. CustomResource resource = new CustomResource();22. resource.Id = i + 1;23. resource.Name = "Resource " + l.Description;24. resources.Add(resource);25. }26. });27. }28. }29. catch (Exception ex)30. {31. throw new EntityContextException("GetProviders failed.", ex);32. }33. 34. return resources;35. }
Here is the data is ment to print out for the appointments with ProviderID =1
But they are not showing can someone help