views:

93

answers:

0

Hi All,

We are just migrating from silverlight 3 to Silverlight 4. and also from telerik 2009 to 2010. There is one functionality of GridView, that when click on the cell it will open the popup.

Because of the upgration, we have newly implement some classes like "Public Class GridViewCustomColumnCellProperty : GridViewBoundColumnBase"

    public override FrameworkElement CreateCellEditElement(Telerik.Windows.Controls.GridView.GridViewCell cell, object dataItem)
    {

     ((WordValuePropertyControl)cellEditElement).EditButtonClick += new EditClick(TableEditButton_Click);
             ((WordValuePropertyControl)cellEditElement).ClearButtonClick += new ClearClick(TableClearButton_Click);
             if (TableEditButtonClick != null)
                   TableEditButtonClick();

}

It is working fine with as previous one, but sometimes it is giving me error that "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" That is going to embarrassed me, because i am not able to find proper solution for same.

Can anyone please help me to solve the problem?

For reference => Stack Trace

   bij MS.Internal.XcpImports.CheckHResult(UInt32 hr)

bij MS.Internal.XcpImports.GetValue(IManagedPeerBase managedPeer, DependencyProperty property) bij System.Windows.DependencyObject.GetValueInternal(DependencyProperty dp) bij System.Windows.FrameworkElement.GetValueInternal(DependencyProperty dp) bij System.Windows.DependencyObject.GetValue(DependencyProperty dp) bij Telerik.Windows.Controls.GridViewBoundColumnBase.GetNewValueFromEditor(Object editor) bij Telerik.Windows.Controls.GridView.GridViewCell.GetNewValueFromEditor() bij Telerik.Windows.Controls.GridView.GridViewCell.TryConvertValueFromEditor(Object& returnValue) bij Telerik.Windows.Controls.GridView.GridViewDataControl.RaiseCellValidatingEvent(GridViewCell cell) bij Telerik.Windows.Controls.GridView.GridViewDataControl.ValidateCell(GridViewCell cell) bij Telerik.Windows.Controls.GridView.GridViewDataControl.PerformCellValidation(GridViewCell cell) bij Telerik.Windows.Controls.GridView.GridViewDataControl.CommitCellEdit(GridViewCell currentCell, Boolean isLeavingRow) bij Telerik.Windows.Controls.GridView.GridViewDataControl.OnCurrentCellInfoChanging(GridViewCellInfo oldCell, GridViewCellInfo newCell) bij Telerik.Windows.Controls.GridView.GridViewDataControl.set_CurrentCellInfo(GridViewCellInfo value) bij Telerik.Windows.Controls.GridView.GridViewCell.OnGotFocus(RoutedEventArgs e) bij System.Windows.Controls.Control.OnGotFocus(Control ctrl, EventArgs e) bij MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

Thanks in advance.

Mahesh