Hi,
I have a windows Rad Scheduler control on my page. I want to bind this scheduler with the database. I have added some customized fields on the edit appointment dialog. I want to bind all the fields with the database including customized.
I have tried to bind the control using SchedulerBindingDataSource but it is not binding the data with the control. I am not using AppointmentMappingInfo class. Instead of that i have created my own class that contains property like start, end, summary, description with some new customized property.
One more thing i am not using SchedulerDataSet and AppointmentsTableAdapter, instead of that
I am using SQL dataset and adapter. I do not require Resources also.
Could any one provide me the short and easy code. Its very urgent. Please HELP....
Thanks
Praveen
Hi, could you help me with RadGridView
I'm binding it to BindingSource object, selecting couple of columns in Grid's designer,
but when a start my aplication, and i'm setting my bindingSource DataSource property,
it generate lots of columns that I'm not interessted.
I set AutoGenerateHierarchy = false
Thanks in advance,
Nikodem Rafalski
{
try
{
if (sender is RadGridView)
{
RadGridView grid = (RadGridView)sender;
if (grid.CurrentCell.ColumnIndex == (int)enum_grid_sleeve.picked)
{
int picked = Convert.ToInt32(grid.ActiveEditor.Value);
int available = Convert.ToInt32(grid.CurrentRow.Cells[(int)enum_grid_sleeve.paqavailable].Value);
int required = Convert.ToInt32(grid.CurrentRow.Cells[(int)enum_grid_sleeve.paq].Value);
if (available < picked) { e.Cancel = true; MessageBox.Show("Picking more than available."); }
else if (required < picked) {e.Cancel = true; MessageBox.Show("Picking more than required."); }
}
}
}
catch { }
}
| // Resetting color |
| node.BackColor = Color.FromArgb(0, 0, 0, 0); |
| node.BackColor2 = Color.FromArgb(0, 0, 0, 0); |
| // Setting custom background |
| node.BackColor = Color.FromArgb(0xEA, 0xF3, 0xFB); |
| node.BackColor2 = Color.FromArgb(0x1E, 0x77, 0xD3); |