I'm a creating my own theme using the Visual Style Builder for WinForms. I have styled much of the RadGridView the way that I want to except the Relationship tabs (Captions). They are confusing me. I don't see them. Are they under another control? I don't see them in the preview or design mode for the RadGridView. What I am referring to is the GridViewRelation when there is more than one for a GridViewTemplate, it shows tabs. I want to style those in a theme (hopefully not in code at runtime).
Hi,
Is it possible to define a background color for radgridview.
As on the brown rectangle on the attached file. We are on the grille but no rows.
I hope that you are understand.
Thanks for response
Smart Tag in Rad Grid view not visible.
When right click on the gridview and select the 'open Property Builder', error occurred as "Object Reference not set to an instance of an object".
Hi.
I'd like to use the scheduler for a work time recording software where users can enter their worktime by creating events in the scheduler.
There is also a time clock in the office and I'd like to highlight the times when users came in or left the office, just like the ruler does.
So, is it possible to draw two rulers per day? Or is it possible to draw custom lines?
Right now, I am changing the background color of the timespan where the user is in the office, but that approach has a low performance
because I handle that in the CellFormatting event and I have to check if the current cell is in that timespan.
The grid is loaded through the Bindingsource, adding, deleting, editing is included in the grid. How to make so that in the first column there was a comboBox and at data loading in, to the combo box the data was substituted.
I did, but I do not understand correctly.
_bindingSourceSurvey = new BindingSource { DataSource = commandServer.GetDataGridSet(@"select * from GetSurvey(" + _keyAlone + ")").Tables[0] };
radGridView2.Invoke(new MethodInvoker(delegate ()
{
GridViewComboBoxColumn comboColumn = new GridViewComboBoxColumn("Phone");
comboColumn.DataSource = _bindingSpeziolist;
radGridView2.Columns[1] = comboColumn;
radGridView2.DataSource = _bindingSourceSurvey;
}));
I have several GridViewDecimalColumn columns, and I am using this string format: {0:N3}, I want to show 3 decimals, but if the value is zero I would like to show the value as an empty string.
1.12 = 1.120
0.8 = 0.800
2.9 = 2.900
0.0 = " " ?
Is there a way to accomplish this?
Regards,
Alberto
Hi,
I am trying to show on a grid a list of files where each file can expand to show the employees in that file (Each file contains multiple employees. It's an one-many relationship). My code looks like this so far but I only get a plus sign showing next to each file record on the grid but it won't expand to show the employees. Please advise how I can correct this? Thanks.
GridViewTemplate template = new GridViewTemplate();
template.Columns.Add(new GridViewTextBoxColumn("File_no"));
template.Columns.Add(new GridViewTextBoxColumn("File_Type"));
template.Columns.Add(new GridViewTextBoxColumn("Date_Received"));
template.Columns.Add(new GridViewTextBoxColumn("Date_Closed"));
template.Columns.Add(new GridViewTextBoxColumn("Title"));
template.Columns.Add(new GridViewTextBoxColumn("Status_Name"));
template.Columns.Add(new GridViewTextBoxColumn("Year"));
template.Columns.Add(new GridViewTextBoxColumn("Category_Name"));
template.Columns.Add(new GridViewTextBoxColumn("SubCategory_Name"));
template.Columns.Add(new GridViewTextBoxColumn("ERC_Name"));
template.Columns.Add(new GridViewTextBoxColumn("UnionName"));
template.Columns.Add(new GridViewTextBoxColumn("Union_Rep"));
template.Columns.Add(new GridViewTextBoxColumn("Business_Area_Name"));
template.Columns.Add(new GridViewTextBoxColumn("Resolution_Code"));
GridViewTemplate Childtemplate = new GridViewTemplate();
Childtemplate.Columns.Add(new GridViewTextBoxColumn("File_no"));
Childtemplate.Columns.Add(new GridViewTextBoxColumn("Employee_no"));
Childtemplate.Columns.Add(new GridViewTextBoxColumn("First_name"));
Childtemplate.Columns.Add(new GridViewTextBoxColumn("Last_name"));
Childtemplate.Columns.Add(new GridViewTextBoxColumn("Work_location"));
Childtemplate.Columns.Add(new GridViewTextBoxColumn("position"));
this.FileGrid.MasterTemplate.Templates.Add(template);
template.Templates.Add(Childtemplate);
GridViewRelation relation = new GridViewRelation(template);
relation.ChildTemplate = Childtemplate;
relation.RelationName = "FileEmployees";
relation.ParentColumnNames.Add("File_no");
relation.ChildColumnNames.Add("File_no");
FileGrid.Relations.Add(relation);
FileBusiness _fb = new FileBusiness();
_filelist = _fb.FindFile(null, null, null, null, null, null, null, null, null, null, null); //this returns a list of files
var _orderedList = _filelist.OrderByDescending(x => x.File_no).ToList();
FileEmployeeView _ev = new FileEmployeeView();
this.FileGrid.DataSource = _orderedList;
template.DataSource = _orderedList;
Childtemplate.DataSource = _fb.GetAllFileEmployees(); //this returns all employees record and cooresponding file_id
this.FileGrid.Columns["ProcessStatus"].IsVisible = false;
this.FileGrid.Columns["ProcessStatusMessage"].IsVisible = false;
this.FileGrid.Columns["UpdatedBy"].IsVisible = false;
this.FileGrid.Columns["LastUpdated"].IsVisible = false;
this.FileGrid.Columns["CreatedOn"].IsVisible = false;
this.FileGrid.Columns["CreatedBy"].IsVisible = false;
this.FileGrid.Columns["isactive"].IsVisible = false;
this.FileGrid.Columns["Isdeleted"].IsVisible = false;
this.FileGrid.Columns["Code"].IsVisible = false;
this.FileGrid.Columns["ID"].IsVisible = false;
this.FileGrid.Columns["File_no"].HeaderText = "File #";
this.FileGrid.Columns["File_Type"].HeaderText = "File Type";
this.FileGrid.Columns["Date_Received"].HeaderText = "Date Received";
this.FileGrid.Columns["Date_Closed"].HeaderText = "Date Closed";
this.FileGrid.Columns["Title"].HeaderText = "Title";
this.FileGrid.Columns["Status_Name"].HeaderText = "Status Name";
this.FileGrid.Columns["Year"].HeaderText = "Year";
this.FileGrid.Columns["Category_Name"].HeaderText = "Category Name";
this.FileGrid.Columns["SubCategory_Name"].HeaderText = "Sub-Category Name";
this.FileGrid.Columns["ERC_Name"].HeaderText = "ERC";
this.FileGrid.Columns["UnionName"].HeaderText = "Union Name";
this.FileGrid.Columns["Union_Rep"].HeaderText = "Union Rep";
this.FileGrid.Columns["Business_Area_Name"].HeaderText = "Business Area Name";
this.FileGrid.Columns["Resolution_Code"].HeaderText = "Resolution Code";