Hi,
Im trying to implement this on one of my rad grids. http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
However this doesn't work and throws a "
"
Would anybody know a workaround this issue? The grid needs to be wrapped in an ajax panel due to the updates that it does while scrolling or filtering. But i'd also would like to be able to edit entries usint that methodology or something that looks very similar.
Thanks
Rafal
<telerik:RadAjaxPanel ID="uPanel" EnableAJAX="true" Width="100%" runat="server">
<MyGrid:MyRadGrid id="grvTypeList"
OnNeedDataSource="GrvTypeList_NeedData"
OnItemDataBound="GrvTypeList_ItemDataBound"
PageSize="30"
AllowSorting="true"
runat="server">
<MasterTableView UniqueName="miscInfoTypeID" >
<NoRecordsTemplate>
<div style="clear:both;text-align:center;padding:5px;">
<asp:Label CssClass="heading2" ID="labelNoRecords" ForeColor="Red" Text="None Found" runat="server" />
</div>
</NoRecordsTemplate>
<Columns>
<MyGrid:MyCheckboxColumn UniqueName="MiscInfoTypeIDCheckbox" DataField="miscInfoTypeID" HeaderStyle-Width="25" RowSelector="true" />
<telerik:GridBoundColumn DataField="miscInfoType" SortExpression="miscInfoType" HeaderText="Miscellaneous Type" HeaderStyle-Width="150" />
<telerik:GridBoundColumn DataField="exampleInfo" SortExpression="exampleInfo" HeaderText="Example Info" HeaderStyle-Width="100%" />
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Action">
<HeaderStyle Font-Bold="true" Width="50px" />
</telerik:GridEditCommandColumn >
</Columns>
<EditFormSettings UserControlName="MiscTypeControl.ascx" EditFormType="WebUserControl">
<EditColumn UniqueName="EditCommandColumn">
</EditColumn>
</EditFormSettings>
<SortExpressions>
<telerik:GridSortExpression FieldName="miscInfoType" SortOrder="Ascending" />
</SortExpressions>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowDblClick="RowDblClick" />
</ClientSettings>
</Mygrid:MyRadGrid>
<div style="display:none;">
<asp:Button ID="buttonDoPostback" OnClick="buttonDoPostback_Click" runat="server" />
</div>
</telerik:RadAjaxPanel>
</div>
Im trying to implement this on one of my rad grids. http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
However this doesn't work and throws a "
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
Would anybody know a workaround this issue? The grid needs to be wrapped in an ajax panel due to the updates that it does while scrolling or filtering. But i'd also would like to be able to edit entries usint that methodology or something that looks very similar.
Thanks
Rafal
<telerik:RadAjaxPanel ID="uPanel" EnableAJAX="true" Width="100%" runat="server">
<MyGrid:MyRadGrid id="grvTypeList"
OnNeedDataSource="GrvTypeList_NeedData"
OnItemDataBound="GrvTypeList_ItemDataBound"
PageSize="30"
AllowSorting="true"
runat="server">
<MasterTableView UniqueName="miscInfoTypeID" >
<NoRecordsTemplate>
<div style="clear:both;text-align:center;padding:5px;">
<asp:Label CssClass="heading2" ID="labelNoRecords" ForeColor="Red" Text="None Found" runat="server" />
</div>
</NoRecordsTemplate>
<Columns>
<MyGrid:MyCheckboxColumn UniqueName="MiscInfoTypeIDCheckbox" DataField="miscInfoTypeID" HeaderStyle-Width="25" RowSelector="true" />
<telerik:GridBoundColumn DataField="miscInfoType" SortExpression="miscInfoType" HeaderText="Miscellaneous Type" HeaderStyle-Width="150" />
<telerik:GridBoundColumn DataField="exampleInfo" SortExpression="exampleInfo" HeaderText="Example Info" HeaderStyle-Width="100%" />
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Action">
<HeaderStyle Font-Bold="true" Width="50px" />
</telerik:GridEditCommandColumn >
</Columns>
<EditFormSettings UserControlName="MiscTypeControl.ascx" EditFormType="WebUserControl">
<EditColumn UniqueName="EditCommandColumn">
</EditColumn>
</EditFormSettings>
<SortExpressions>
<telerik:GridSortExpression FieldName="miscInfoType" SortOrder="Ascending" />
</SortExpressions>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowDblClick="RowDblClick" />
</ClientSettings>
</Mygrid:MyRadGrid>
<div style="display:none;">
<asp:Button ID="buttonDoPostback" OnClick="buttonDoPostback_Click" runat="server" />
</div>
</telerik:RadAjaxPanel>
</div>