I am trying to persisting grid (save grid layout), with following example
I have copied the same GridSettingsPersister.vb as have in the above link example
filtering, sorting, column moving everthing is working fine but after button click of savegrid or loadgrid i m getting error like this
Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
please check my below code and error and let me know what am i doing wrong.
version: RadControls for ASP.NET AJAX Q3 2009
aspx
Users: <asp:dropdownlist id="cmbMode" runat="server" width="200" >
<asp:ListItem Value="user1">user 1</asp:ListItem>
<asp:ListItem Value="user2">user 2</asp:ListItem>
<asp:ListItem Value="user3">user 3</asp:ListItem>
</asp:dropdownlist>
<telerik:RadGrid AutoGenerateColumns="False" ID="RadGrid1" ClientSettings-Scrolling-ScrollHeight="500" |
| AllowFilteringByColumn="True" ClientSettings-Scrolling-UseStaticHeaders="true" EnableLinqExpressions="false" |
| ClientSettings-Scrolling-AllowScroll="true" ClientSettings-Selecting-AllowRowSelect="true" |
| AllowSorting="True" runat="server"> |
| <GroupingSettings CaseSensitive="false" /> |
| <MasterTableView TableLayout="Fixed" ClientDataKeyNames="KEYID"> |
| <Columns> |
| <telerik:GridNumericColumn Aggregate="Count" HeaderText="Employee Number" DataField="KEYID" |
| UniqueName="KEYID" SortExpression="KEYID" FilterControlWidth="30px" AutoPostBackOnFilter="true" |
| Visible="false" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" /> |
| <telerik:GridBoundColumn HeaderText="Employee Name" DataField="Name" UniqueName="Name" |
| SortExpression="Name" HeaderStyle-Width="300px" FilterControlWidth="140px" AutoPostBackOnFilter="true" |
| CurrentFilterFunction="contains" ShowFilterIcon="false" /> |
| <telerik:GridBoundColumn HeaderText="SSN" DataField="EMP_SSN" HeaderStyle-Width="205px" |
| UniqueName="SSN" SortExpression="EMP_SSN" FilterControlWidth="90px" AutoPostBackOnFilter="true" |
| CurrentFilterFunction="contains" ShowFilterIcon="false" /> |
| </Columns> |
| </MasterTableView> |
| <
ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
<Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
AllowColumnResize="True"></Resizing>
<ClientEvents OnRowSelected="RowSelected" />
</ClientSettings>
|
| </telerik:RadGrid> |
| <asp:SqlDataSource ID="SqlDataSource1" runat="server" ></asp:SqlDataSource> |
| <asp:Button runat="server" OnClick="SaveGrid" ID="btnSaveGrid" Text="SAVE GRID" /> |
| <asp:Button runat="server" ID="btnLoadGrid" OnClick="LoadGrid" Text="LOAD GRID" /> |
codebehind
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles |
| form1.Load |
| SetSource() |
| End Sub |
| Protected Sub SaveGrid(ByVal sender As Object, ByVal e As EventArgs) |
| Dim user As String = cmbMode.SelectedValue |
| Dim SavePersister As New GridSettingsPersister(RadGrid1) |
| Session(user) = SavePersister.SaveSettings() |
| End Sub |
| Protected Sub LoadGrid(ByVal sender As Object, ByVal e As EventArgs) |
| Dim user As String = cmbMode.SelectedValue |
| Dim LoadPersister As New GridSettingsPersister(RadGrid1) |
| If Not Session(user) Is Nothing Then |
| Dim settings As String = DirectCast(Session(user), String) |
| LoadPersister.LoadSettings(settings) |
| End If |
| End Sub |
| Protected Sub SetSource() |
| SqlDataSource1.ConnectionString = |
| ConfigurationManager.AppSettings.Item("ConnectString") |
| SqlDataSource1.SelectCommand = "spFilterEmployee" |
| SqlDataSource1.SelectCommandType = |
| SqlDataSourceCommandType.StoredProcedure |
| SqlDataSource1.SelectParameters.Clear() |
| SqlDataSource1.SelectParameters.Add("Mode", cmbMode.SelectedIndex) |
| SqlDataSource1.SelectParameters.Add("gtxtEnhancedSQL", "1=1") |
| SqlDataSource1.SelectParameters.Add("Term", "0") |
| SqlDataSource1.SelectParameters.Add("strAdditionalCriteria", "1=1") |
| SqlDataSource1.SelectParameters.Add("NUMERICEMPNBR", "Y") |
| sqlDataSource1.SelectParameters.Add("EMPVALIDATION", "N") |
| RadGrid1.DataSourceID = "SqlDataSource1"</P> |
| End Sub |
| <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <cc1:ToolkitScriptManager runat="server" ID="test"> |
| </cc1:ToolkitScriptManager> |
| <table> |
| <tr> |
| </tr> |
| <tr> |
| <td> |
| <asp:RequiredFieldValidator ID="RFV_rdDescription" runat="server" ErrorMessage="Please enter Description" |
| ControlToValidate="rdDescription" Display="None" SetFocusOnError="True" ValidationGroup="MyGen"></asp:RequiredFieldValidator> |
| <cc1:ValidatorCalloutExtender ID="VCE_RFV_rdDescription" runat="server" PopupPosition="TopLeft" |
| TargetControlID="RFV_rdDescription"> |
| </cc1:ValidatorCalloutExtender> |
| <telerik:RadEditor ID="rdDescription" runat="server" Width="98%"> |
| <ImageManager ViewPaths="~/UserData/RadEditor/Images/GenericContent" DeletePaths="~/UserData/RadEditor/Images/GenericContent" |
| MaxUploadFileSize="1053000" UploadPaths="~/UserData/RadEditor/Images/GenericContent" /> |
| <MediaManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" |
| ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> |
| <TemplateManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" |
| ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> |
| <DocumentManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" |
| ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> |
| <FlashManager UploadPaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" |
| DeletePaths="~/UserData/RadEditor/Documents/GenericContent" ViewPaths="~/UserData/RadEditor/Documents/GenericContent" /> |
| <ImageManager ViewPaths="~/UserData/RadEditor/Documents/GenericContent" DeletePaths="~/UserData/RadEditor/Documents/GenericContent" |
| MaxUploadFileSize="1053000" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> |
| <Content></Content> |
| </telerik:RadEditor> |
| </td> |
| </tr> |
| <tr> |
| <td align="right"> |
| <asp:Button ID="Button1" ValidationGroup="MyGen" runat="server" Text="Button" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </form> |
| </body> |
| </html> |

I have a rad window designed following way, Width and height ( dimensions) I would like to give % relative to parent window. How do I do this?
Thanks
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default" InitialBehavior="None"
Left="0" NavigateUrl="~/CommonPages/AvailableFinancialInstitutionList.aspx" Style="display: none;"
Top="0" OpenerElementID="<%# lnkFiInstitution.ClientID %> " Width="800px" Height="600px"
AutoSize="false" Animation="Resize" KeepInScreenBounds="True" Modal="False"
VisibleStatusbar="False" Skin="Telerik" Title="Privacy Statement" VisibleTitlebar="True">
</telerik:RadWindow>
</Windows>

function
RowSelected(sender, args)
{
var combo = <%=cmbCondQn.ClientID %>;
var value = args.getDataKeyValue("Question");
combo.FindItemByText(value).Selected =
true;
}
Below is my grid code
<
telerik:RadGrid ID="RadGrid1"
Width="97%" AllowSorting="True" PageSize="15" AllowPaging="True" runat="server" AllowAutomaticDeletes="True"
Gridlines="None" DataSourceID="dsConditionalQuestion" OnItemDataBound="RadGrid1_ItemDataBound" OnItemDeleted="RadGrid1_ItemDeleted"><%--OnRowCommand="RadGrid1_RowCommand" OnRowDataBound="RadGrid1_RowDataBound" OnRowDeleted="RadGrid1_RowDeleted" OnRowDeleting="GridView1_RowDeleting"--%>
<MasterTableView Width="100%" AutoGenerateColumns="false" DataSourceID="dsConditionalQuestion" DataKeyNames="ID"
ClientDataKeyNames="Question,Answer,Action,Dependent_QuestionID" >
<
ClientSettings>
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowSelected="RowSelected" />
</ClientSettings>
</telerik:RadGrid>
Regards,
Lubna.