Hi,
One issue I am facing in Cell validating.i.e when I change the cell value from current to closed it should allow the user to do any action after showing one alert but I am not able to save or do any thing.If I make IsValid true then also it restrict.
if (e.NewValue != null)
{
//Making current iteration closed
if (e.NewValue.ToString() == LeMonNextResource.IterationClosedStatusID)
{
MessageBox.Show("Once you close an iteration, You won't be able to make further changes to it." +
"\n" + "Are you sure, You want to continue?");
if (MessageBoxButton.OK == 0)
e.IsValid = false;
}
}
Should I write this inside GridViewComboBox selection change event?I tried with this but I am not getting SelectionChangedEvent.
Is this "RadComboBox" the name of GridViewComboBoxColumn?
My xaml is
<telerik:GridViewComboBoxColumn x:Name="ComboBox"
DataMemberBinding="{Binding IterationStatusID,Mode=TwoWay}"
SelectedValueMemberPath="IterationStatusId"
DisplayMemberPath="IterationStatusName"
UniqueName="IterationStatus" Width="80"
IsResizable="False" ItemsSource="{Binding Path = StatusList,Mode=TwoWay}"
HeaderCellStyle="{StaticResource CustomHeaderCellStyle}"
CellTemplate="{StaticResource StatusComboBoxSelectionBoxTemplate}"/>
Regards,
Sulagna
One issue I am facing in Cell validating.i.e when I change the cell value from current to closed it should allow the user to do any action after showing one alert but I am not able to save or do any thing.If I make IsValid true then also it restrict.
if (e.NewValue != null)
{
//Making current iteration closed
if (e.NewValue.ToString() == LeMonNextResource.IterationClosedStatusID)
{
MessageBox.Show("Once you close an iteration, You won't be able to make further changes to it." +
"\n" + "Are you sure, You want to continue?");
if (MessageBoxButton.OK == 0)
e.IsValid = false;
}
}
Should I write this inside GridViewComboBox selection change event?I tried with this but I am not getting SelectionChangedEvent.
Is this "RadComboBox" the name of GridViewComboBoxColumn?
this.RadGridView1.AddHandler(RadComboBox.SelectionChangedEvent, new SelectionChangedEventHandler(OnSelectionChanged));
private void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
// TODO: Implement this method
throw new NotImplementedException();
}
<telerik:GridViewComboBoxColumn x:Name="ComboBox"
DataMemberBinding="{Binding IterationStatusID,Mode=TwoWay}"
SelectedValueMemberPath="IterationStatusId"
DisplayMemberPath="IterationStatusName"
UniqueName="IterationStatus" Width="80"
IsResizable="False" ItemsSource="{Binding Path = StatusList,Mode=TwoWay}"
HeaderCellStyle="{StaticResource CustomHeaderCellStyle}"
CellTemplate="{StaticResource StatusComboBoxSelectionBoxTemplate}"/>
Regards,
Sulagna