Hello,
I'm using a WebUserControl to edit/insert data into my radgrid. I experience some inconsistent behavior when I tried to access the data inside my WebUserControl. The way I access the data is
The update/insert operation can be initiate from different control in the page, so it doesn't always go through the ItemCommand event of my radgrid. Every control that can initiate an update/insert is using ajax. Here's a part to illustrate the situation
_lbtnAdd is a LinkButton. If _radgrig is in edit mode and the user click on _lbtnAdd, I'm suppose to check for modification than act accordingly. But, code that work in other situation, doesn't work here,
EditManager 'editedItem.EditManager' threw an exception of type 'Telerik.Web.UI.GridBindingException' Telerik.Web.UI.GridEditManager {Telerik.Web.UI.GridBindingException}
Going deeper, reveal:
base {"The current EditFormType does not support the requested editing capabilities."} System.Exception {Telerik.Web.UI.GridBindingException}
This one is driving me nuts since it come and go. How can I make sure to always be able to access the data? What can cause the exception? Is it related to event order? Please help!!!
Thank you for your time,
Louis-Philippe
I'm using a WebUserControl to edit/insert data into my radgrid. I experience some inconsistent behavior when I tried to access the data inside my WebUserControl. The way I access the data is
GridEditFormItem editedItem = (GridEditFormItem)_radgNiv3.MasterTableView.GetItems(GridItemType.EditFormItem)[0];if (editedItem.CanExtractValues){ UserControl userControl = (UserControl)editedItem.FindControl(GridEditFormItem.EditFormUserControlID);...The update/insert operation can be initiate from different control in the page, so it doesn't always go through the ItemCommand event of my radgrid. Every control that can initiate an update/insert is using ajax. Here's a part to illustrate the situation
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="_lbtnAdd"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="_radgrig" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting>..._lbtnAdd is a LinkButton. If _radgrig is in edit mode and the user click on _lbtnAdd, I'm suppose to check for modification than act accordingly. But, code that work in other situation, doesn't work here,
editedItem.CanExtractValues = false. Of course, if I tried to find my form, it stays null. Looking inside of editedItem, I can see that there is an exception inside the object:EditManager 'editedItem.EditManager' threw an exception of type 'Telerik.Web.UI.GridBindingException' Telerik.Web.UI.GridEditManager {Telerik.Web.UI.GridBindingException}
Going deeper, reveal:
base {"The current EditFormType does not support the requested editing capabilities."} System.Exception {Telerik.Web.UI.GridBindingException}
This one is driving me nuts since it come and go. How can I make sure to always be able to access the data? What can cause the exception? Is it related to event order? Please help!!!
Thank you for your time,
Louis-Philippe