I recently upgraded Ajax Controls Toolkit to latest version and when I opened up my page which I used RadDock, the look and feel just changed. Now, a dock has a black top border which i donno where it came from. I opened up the source and it seems like there's this line:
<telerik:RadEditor ID="txtBookmark" runat="server" Height="70px"
Width="415px" OnClientLoad="SetCorrectSize" EditModes="Design" EnableResize="False" Skin="Office2007"> <Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="AjaxSpellCheck" />
</telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>
Thanks!
Rich

function ClientTransferring(sender, e)
{
var lbChoices = $find("<%= lbYourChoices.ClientID %>");
var newitems = lbChoices.get_items();
e.set_cancel(
true);
var items = e.get_items();
for (var i = 0; i < items.length; i++)
{
var item = items[i];
var itemx = new Telerik.Web.UI.RadListBoxItem();
itemx = items[i];
if (item.get_text() != "Select item(s)") {
lbChoices.trackChanges();
lbChoices.get_items().add(itemx);
lbChoices.commitChanges();
sender.transferItem(item, e.get_sourceListBox(), e.get_destinationListBox());
}
}
}
<telerik:RadPageView ID="RadPageView7" runat="server">
<telerik:RadListBox ID="lbYourChoices" runat="server" AllowDelete="True"
style="top: 15px; left: 0px; height: 150px; width: 225px"
Height="175px" Width="225px" AutoPostBack="True">
</telerik:RadListBox>
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView1" runat="server">
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
RepeatDirection="Horizontal"
style="top: 15px; font-family: Arial, Helvetica, sans-serif; font-size: x-small">
<asp:ListItem Selected="True">List View</asp:ListItem>
<asp:ListItem>Tree View</asp:ListItem>
</asp:RadioButtonList>
<telerik:RadListBox ID="RadListBox3" runat="server" AllowTransfer="True"
DataKeyField="item_id" DataSortField="item_id" DataSourceID="obj_Accounts"
DataTextField="item_name" DataValueField="item_id"
style="top: 15px; left: 0px; height: 150px; width: 175px"
TransferToID="RadListBox4" Height="150px"
AllowTransferOnDoubleClick="True" EnableDragAndDrop="True" Width="180px"
OnClientTransferring="ClientTransferring">
</telerik:RadListBox>
<telerik:RadListBox ID="RadListBox4"
style="top: 15px; left: 0px; height: 150px; width: 175px"
AllowTransferOnDoubleClick="True" EnableDragAndDrop="True" runat="server"
Height="150px" Width="180px"
AutoPostBack="True"
AutoPostBackOnTransfer="True"></telerik:RadListBox>
<asp:ObjectDataSource ID="obj_Accounts" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetByDimensionName"
TypeName="fvTempDAL.DimensionItemsDataSetTableAdapters.DimensionItems">
<SelectParameters>
<asp:Parameter DefaultValue="Accounts" Name="DimensionName" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<br />
</telerik:RadPageView>
49|error|500|The field 'Id' is read-only and can't be changed.|
If I enable the column Id i don't have any error but the item is not update but created.
I try also to use UpdateCommand Event and UpdateParameters but i received the same error.
Any experience with LLBLgen and Telerik ?
Thanks is advance for your help.
Edwin.
Bellow my code for the Grid :
<telerik:RadGrid ID="GridBranche" runat="server" AutoGenerateColumns="false" PageSize="20" GridLines="None" AllowPaging="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" DataSourceID="_objDataSource" PagerStyle-AlwaysVisible="True" OnItemDeleted="GridBranche_OnItemDeleted"> <PagerStyle Mode="Slider" /> <MasterTableView EditMode="InPlace" CommandItemDisplay="Top" HorizontalAlign="NotSet" AutoGenerateColumns="false" DataKeyNames="Id"> <Columns> <telerik:GridBoundColumn HeaderText="Id" DataField="Id" DataType="System.Int32" SortExpression="Id" UniqueName="BrancheId" ReadOnly="true" /> <telerik:GridBoundColumn HeaderText="Naam" DataField="Name" /> <telerik:GridDropDownColumn HeaderText="Taal" DataField="LanguageId" DataSourceID="_objLanguageSource" DataType="System.Int32" ListValueField="Id" ListTextField="Name" SortExpression="Id" UniqueName="Languages"> </telerik:GridDropDownColumn> <telerik:GridDropDownColumn HeaderText="Land" DataField="CountryId" DataSourceID="_objCountrySource" DataType="System.Int32" ListValueField="Id" ListTextField="Name" SortExpression="Id" UniqueName="Country"> </telerik:GridDropDownColumn> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderText="Bewerken" /> <telerik:GridButtonColumn ConfirmText="Delete this branche?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" HeaderText="Wissen" /> </Columns> <EditFormSettings ColumnNumber="3" CaptionDataField="Name" CaptionFormatString="Aanpassen branche: {0}"> <FormTableItemStyle Wrap="false" /> <FormMainTableStyle GridLines="None" CellPadding="3" BackColor="White" Width="100%" /> <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" /> <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> <EditColumn ButtonType="ImageButton" InsertText="Insert banner type" UpdateText="Update banner type" UniqueName="EditCommandColumn1" CancelText="Cancel edit"> </EditColumn> </EditFormSettings> </MasterTableView> </telerik:RadGrid> <asp:ObjectDataSource ID="_objDataSource" runat="server" InsertMethod="SaveBranche" SelectMethod="GetBranchesForOverview" UpdateMethod="SaveBranche" DeleteMethod="DeleteBranche" TypeName="Adver.Service.Domain.BranchesService" DataObjectTypeName="Adver.Business.EntityClasses.BranchesEntity"> </asp:ObjectDataSource> <asp:ObjectDataSource ID="_objLanguageSource" runat="server" SelectMethod="GetLanguages" TypeName="Adver.Service.Domain.LanguageService"> </asp:ObjectDataSource> <asp:ObjectDataSource ID="_objCountrySource" runat="server" SelectMethod="GetCountries" TypeName="Adver.Service.Domain.CountryService"> </asp:ObjectDataSource>
code for the service layer
public bool SaveBranche(BranchesEntity entity) { if(entity.Id > 0) { entity.IsNew = true; } return repository.SaveBranche(entity); } public bool UpdateBranche(BranchesEntity entity, int id) { entity.Fields[(int)BranchesFieldIndex.Id].ForcedCurrentValueWrite(id); entity.IsNew = false; return repository.SaveBranche(entity); }