<
telerikGridView:GridViewDataColumn
Width
=
"120"
DataMemberBinding
=
"{Binding ProposedRSUGrants}"
SortMemberPath
=
"ProposedRSUGrants"
>
<
telerikGridView:GridViewDataColumn.Header
>
<
TextBlock
Text
=
"Proposed RSU Grant # shares"
Style
=
"{StaticResource EditableHeader}"
/>
</
telerikGridView:GridViewDataColumn.Header
>
<
telerikGridView:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
Border
Background
=
"LightYellow"
>
<
TextBlock
Margin
=
"0,0,3,0"
HorizontalAlignment
=
"Right"
Text
=
"{Binding ProposedRSUGrants}"
/>
</
Border
>
</
DataTemplate
>
</
telerikGridView:GridViewDataColumn.CellTemplate
>
<
telerikGridView:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding ProposedRSUGrants, Mode=TwoWay,NotifyOnValidationError=True, ValidatesOnExceptions=True}"
GotFocus
=
"Grid_TextBox_GotFocus"
IsEnabled
=
"{Binding StockEligible}"
/>
</
DataTemplate
>
</
telerikGridView:GridViewDataColumn.CellEditTemplate
>
</
telerikGridView:GridViewDataColumn
>
in the setter i have the below code
public int ProposedRSUGrants
{
get
{
return _ProposedRSUGrants;
}
set
{
if (value != _ProposedRSUGrants)
{
_ProposedRSUGrants = value;
isPropertyUpdatedBy_ProposedRSUGrants = true;
onPropertyChanged(this, "ProposedRSUGrants");
if (!isPropertyUpdatedBy_ProposedRSUGrantValueCurrency)
{
ProposedRSUGrantValueCurrency = _ProposedRSUGrants * Guidelines.DefaultPrice;
onPropertyChanged(this, "ProposedRSUGrantValueCurrency");
}
isPropertyUpdatedBy_ProposedRSUGrantValueCurrency = false;
CalcWalkawayvalueofproposedRSUs_at8();
CalcWalkawayvalueofproposedRSUs_at12();
CalcWalkawayvalueofproposedRSUs_at16();
SetDirty();
SetRecalculateDirty();
//Proposed RSU Grant Value should be with in the Range of RSU GuideLines Value
//string strMsgTemplate = "The Proposed RSU Grant cannot be {0} than {1} (Press \"Escape\" to retain the old value)";
string strMsgTemplate = "Warning: The Proposed RSU Grant is {0} than {1}";
if ((value > RSUGuideLineMax) && (value != Guidelines.EQUITY_RANGE_GUIDENCE_DEFAULT_VALUE))
{
string strMsg = string.Format(strMsgTemplate, "greater", RSUGuideLineMax);
throw new InvalidDataException(strMsg);
}
else if ((value < RSUGuideLineMin) && (value != Guidelines.EQUITY_RANGE_GUIDENCE_DEFAULT_VALUE))
{
string strMsg = string.Format(strMsgTemplate, "less", RSUGuideLineMin);
throw new InvalidDataException(strMsg);
}
//end of new changes
}
}
}
Hi I have implemented RAD Grid under multiple TABs as attached. In few of the grid i have inline editing enabled based on some business functionality. Now if the user enters some invalid value in the editable column it throws the error from the setter as well as displays the red rectangle with the errro message.
My issue here is, after the error message is poped-up the user can go ahead and click on any of the TABs or the left vertical menu (Tom Fallon). sometimes when the user double clicks on the TAB or Left menu the system is throwing an exception.
What i need is, if there is an exception already shown, the user should not be able to do any further actions unless REFRESH or F5. How can i acheive this.
Thanks,
Shiras