Protected Sub RadTabStrip1_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadTabStrip1.Unload Select Case RadTabStrip1.SelectedTab.Text Case "Case Info" Case "Client Info" Case "Experts" Case "Letter Details" 'get office phone numbers Dim db As New RFIDataContext Dim q = (From o In db.Offices _ Where o.OfficeId = rcbOffice.SelectedValue _ Select o.Fax, o.Fax2, o.Fax3).First With q If Not IsNothing(q.Fax) Then If q.Fax.Trim <> String.Empty Then ddlFaxes.Items.Add(FormatPhoneDots(q.Fax)) End If End If If Not IsNothing(q.Fax2) Then If q.Fax2.Trim <> String.Empty Then ddlFaxes.Items.Add(FormatPhoneDots(q.Fax2)) End If End If If Not IsNothing(q.Fax3) Then If q.Fax3.Trim <> String.Empty Then ddlFaxes.Items.Add(FormatPhoneDots(q.Fax3)) End If End If End With Case "Sign & Save" End Select
<Columns>
<telerik:GridBoundColumn HeaderText="OPPE Forms Not Started" HeaderImageUrl="../images/notstarted.png" ItemStyle-CssClass="gridNumberColumns" DataField="FormsNotStarted" DataType="System.Int32"
UniqueName="FormsNotStarted">
</telerik:GridBoundColumn>
</Columns>


<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script language="javascript" type="text/javascript"> function EditSchedule(taskid,rowIndex) { var grid = $find("<%=AstonishDataManagement.ClientID%>"); var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element(); grid.get_masterTableView().selectItem(rowControl, true); window.radopen("Datascheduledetail.aspx?TaskId=" + taskid, "UserListDialog"); ; return false; } function Openform() { window.radopen("Datascheduledetail.aspx", "UserListDialog"); return false; } </script> </telerik:RadCodeBlock> <telerik:RadWindowManager Behaviors="Close,Resize,Maximize,Move" runat="server" ID="RWinMgr" ShowContentDuringLoad="true" DestroyOnClose="true" KeepInScreenBounds="true" VisibleStatusbar="false" Modal="true" Style="z-index: 8000;" Skin="Office2007"> <Windows> <telerik:RadWindow ID="UserListDialog" runat="server" Title="Edit Schedule" Height="550px" Width="750px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" /> </Windows> </telerik:RadWindowManager>The grid caller partial code:<telerik:RadGrid ID="AstonishDataManagement" runat="server" AllowPaging="True" AllowSorting="True" ClientSettings-Scrolling-AllowScroll="false" AutoGenerateColumns="False" GridLines="None" Skin="Office2007" PageSize="10" OnNeedDataSource="AstonishDataManagement_NeedDataSource" ClientSettings-Resizing-AllowColumnResize="false" OnInsertCommand="AstonishDataManagement_InsertCommand" OnUpdateCommand="AstonishDataManagement_UpdateCommand" OnCreateColumnEditor="AstonishDataManagement_OnCreateColumnEditor" onitemcreated="AstonishDataManagement_ItemCreated" onitemcommand="AstonishDataManagement_ItemCommand"> <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" /> <MasterTableView Name="tblAstonishDataManagement" DataKeyNames="TaskId" AllowNaturalSort="false" CommandItemDisplay="None"> <Columns> <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" HeaderStyle-Width="5px"> <ItemTemplate> <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink> </ItemTemplate>
private void fillddlHeadline()
{
DataTable dt = oHead.GetDataActivateHeadlineObserved();
DrpHeadlineObType.DataSource = dt;
DrpHeadlineObType.DataTextField = "Module_Content_Text";
DrpHeadlineObType.DataValueField = "headline_Id";
DrpHeadlineObType.DataBind();
RadComboBoxItem item1 = new RadComboBoxItem();
item1.Text = "Select";
item1.Value = "0";
DrpHeadlineObType.Items.Add(item1);
}
Any ideas?
Thanks...
Hi,
We have grids with client side data binding. Setting "SaveScrollPosition" property of "ClientSettings" either to true or false, scroll remains on the same position as set on the previous page while navigating pages in the grid. We want for each page to be scrolled to the top. Is there anything we can do to solve this issue?
Regards