MyTab tab = new MyTab();var win = this.dock.DockControl(tab, DockPosition.Fill, DockType.Document);win.TabStripItem.CloseButton.Visibility = ElementVisibility.Hidden;win.TabStripItem.MouseHover += new EventHandler(TabStripItem_MouseHover);win.TabStripItem.MouseLeave += new EventHandler(TabStripItem_MouseLeave);void TabStripItem_MouseLeave(object sender, EventArgs e){ var tabStripItem = (TabStripItem)sender; tabStripItem.CloseButton.Visibility = ElementVisibility.Hidden;}void TabStripItem_MouseHover(object sender, EventArgs e){ var tabStripItem = (TabStripItem)sender; tabStripItem.CloseButton.Visibility = ElementVisibility.Visible;}grid.MultiSelect = true;grid.SelectionMode = GridViewSelectionMode.CellSelect;
private void CountrySelector_MouseClick(object sender, MouseEventArgs e)
{ this.CountrySelector.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
this.CountrySelector.DropDownListElement.ShowImageInEditorArea = false;
}private void CountrySelector_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e){ this.CountrySelector.DropDownListElement.ShowImageInEditorArea = true; this.CountrySelector.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;}
Dim lu As LookupRow = DirectCast(rddlSite.SelectedItem.DataBoundItem, LookupRow)If lu.LookupID <> Globals.CurrentSite Then Dim currentGlobalSite As Integer = Globals.CurrentSite If Globals.CurrentSite > 0 AndAlso checkDirtyLabour() Then 'if dirty and selected to not change, but not when Globals.CurrentSite not set rddlSite.SelectedValue = Globals.CurrentSite
lh.rddlSite.SelectedValue = Globals.CurrentSite Return End If lh.rddlSite.Text = "" Globals.CurrentSite = lu.LookupID lh.rddlSite.SelectedText = lu.FieldID If Globals.CurrentSite > 0 Then refreshLabourOnSiteChange()End If
Hi,
is it possible to enable or disable a specific cell in Gridview. i am using Winforms Q1 2010 SP1 version.
Regards,
Nitin

this.radSchedulerControl.AppointmentAdded += new EventHandler<AppointmentAddedEventArgs>(radSchedulerControl_AppointmentAdded);
this.radSchedulerControl.Appointments.CollectionChanged += new Telerik.WinControls.Data.NotifyCollectionChangedEventHandler(Appointments_CollectionChanged);
....however the problem with this event is that it get triggered multiple times based on what was changed for on the existing appointment.
A different thread suggested using the ApplySettingsToEvent function in the CustomAppointmentEditDialog class when saving an appointment to add my custom logic. However, in ApplySettingsToEvent I could not determine how to differentiate when a new Appointment is created vs an existing one is saved since this function gets executed on both the creation of a new appointment and the save of an existing.
Your help in determining how to execute custom logic only on the save of an existing appointment and have it triggered only once would be appreciated.
Thanks!
Vijay
