Dim _JS As String = "radconfirm('Selected : (" & RadGrid1.SelectedItems.Count.ToString & ") item Are you sure delete ?', CallBackDelete, 330, 100, null, 'Delete');"If Not (_JS Is "") ThenScriptManager.RegisterClientScriptBlock(Me.Page, Me.[GetType](), e.Item.Text.ToString & "_JScript", _JS, True)End Iffunction CallBackDelete(arg) { radalert('choose : ' + arg.toString());}RadGrid1.SelectedItems[0].Cells[RadGrid1.SelectedItems[0].Cells.Count - 1].Text = tbxEditRowWghtg.Text +
" %";
OrderBy="Name" to LinqDataSort. When ASP.NET form is opened first time everything is good but after paging the sort order is not right. As I understand the issue Linq does OrderBy just when querying data from the database. How to resolve this issue? I have to keep the column Name sorted all time.<asp:LinqDataSource ID="LinqIdDataSource" runat="server" AutoPage="false" TableName="V_ID_Dailies" Select="new (ID, Name)" ContextTypeName="IdLookupDataContext" OrderBy="Name" OnContextCreating="LinqIdDataSource_ContextCreating" OnSelected="LinqIdDataSource_Selected" OnSelecting="LinqIdDataSource_Selecting"> </asp:LinqDataSource> 
div.RadGrid .rgExpand,div.RadGrid .rgCollapse{ height:32px; width:32px;}
<Scrolling AllowScroll="true" UseStaticHeaders="true" />"="true" everything work fine, and it also work good with IE7.<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<%@ 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>
<telerik:RadCodeBlock id="rcb" runat="server">
<script type="text/javascript" language="javascript">
function pageLoad() {
// if ($telerik.isIE7 || $telerik.isIE6)
// document.body.setAttribute('dir', 'rtl');
// var arr = document.getElementById("<%=gvToDoList.ClientID%>");
}
</script>
</telerik:RadCodeBlock>
</head>
<body dir="rtl" >
<form id="form1" runat="server" >
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="gvToDoList">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="gvToDoList" LoadingPanelID="RadAjaxLoadingPanel1"/>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="gvToDoList" Skin="Office2007" runat="server"
BorderStyle="Solid" BorderWidth="1px" AllowSorting="True" Width="100%" Height="400px" CellSpacing="1"
AllowFilteringByColumn="True" AllowPaging="True" PageSize="25" EnableAJAX="True" ShowStatusBar="True" AutoGenerateColumns="False" meta:resourcekey="gvToDoListResource1">
<MasterTableView AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True"
>
<Columns>
<telerik:GridBoundColumn HeaderStyle-Width="100PX" FilterListOptions="VaryByDataTypeAllowCustom" FilterControlWidth="70px" DataField="candName" AllowSorting="true" SortExpression="candName"
HeaderText="candName" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderStyle-Width="100PX" FilterControlWidth="70px" AllowSorting="true" DataField="JobName" SortExpression="JobName"
HeaderText="JobName" meta:resourcekey="BoundFieldResource2">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderStyle-Width="100PX" FilterControlWidth="70px" AllowSorting="false" DataField="VacancyName" HeaderText="VacancyName "
>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings >
<Selecting AllowRowSelect="true" />
<Scrolling AllowScroll="true" UseStaticHeaders="true" ></Scrolling>
</ClientSettings>
<PagerStyle Mode="NextPrevAndNumeric" VerticalAlign="Top" Height="40px" PagerTextFormat="" />
</telerik:RadGrid>
<telerik:RadAjaxLoadingPanel HorizontalAlign="Center" valign="middle" Transparency="50" ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
</form>
</body>
</html>
