Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
195 views
Telerik,

Are there any examples/tutorials that have radtabstrip and radmultipage with radpageview load on demand contenturl?

I want to be able to load a pageview with a contenturl on demand.  Something like the following:
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx

but with contenturl instead of usercontrol.

Thanks.
Kate
Telerik team
 answered on 07 Feb 2013
0 answers
91 views

I'm populating a treeview in c# asp.net and have bound data to it, all well and displays as it should. my problem now is that i'm looking to save any modifications to the checkboxes i.e if a user clicks an additional box and saves but i the checked state will stay false.

here's what i have so far which iterates through what was initially loaded and not what has been changed, I've tried many variations but haven't managed to get it working - anyone any ideas??

public void saveCheckedItems()
{

    if (treeListItems.CheckedNodes.Count > 0)
    {
        IList<RadTreeNode> allNodes = treeListItems.GetAllNodes();

        for (int i = 0; i < allNodes.Count; i++)
        {
            RadTreeNode node = (RadTreeNode)allNodes[i];
            string fileid = node.Value.ToString();
            if (node.Checked == true)
            {
                if (fileid.Length == 12)
                {
                    saveTreeChanges(Page.Request.QueryString["ID"], fileid,connectionStr);
                }
            }
        }
    }
}

edit -

creating treeview as follows

<telerik:RadTreeView ID="treeListItems" runat="server" CheckBoxes="True" Height="320px"
                            TriStateCheckBoxes="true" CheckChildNodes="true" Skin="WebBlue" CssClass="table table-bordered" OnNodeDataBound="RadTreeView1_NodeDataBound" >
                        </telerik:RadTreeView>

binding data like this

public void loadTreeList()
        {
            DataTable dt = treeMan.getTreeList(connectionStr);
            treeListItems.DataTextField = "Description";
            treeListItems.DataValueField = "FieldID";
            treeListItems.DataFieldID = "FieldID";
            treeListItems.DataFieldParentID = "ParentID";
            treeListItems.DataSource = dt;
            treeListItems.DataBind();
            treeListItems.ExpandAllNodes();
        }

in the example im testing its a 3 tier tree and one element is checked on third tier. When i click more items only this already checked item is visible in the list

Ciaran
Top achievements
Rank 1
 asked on 07 Feb 2013
3 answers
2.5K+ views

I am getting the Invalid length issue frequently in my application. Using of SessionPageStatePersister from earlier implementation  hiddenfieldpagestatepersister did not resolve the issue.

Can any body please help me out?

[FormatException: Invalid length for a Base-64 char array.]
at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String\ serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String\ serializedState)
at System.Web.UI.SessionPageStatePersister.Load()

[HttpException: The state information is invalid for this page and might be corrupted.]
at System.Web.UI.SessionPageStatePersister.Load()
at Telerik.Web.UI.RadSessionPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,\ Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,\ Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_appeal_appealaction_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Martin
Telerik team
 answered on 07 Feb 2013
1 answer
124 views
I am looking for a client or codebehind method to change the size of the Template Manager's iframe to match the sizing from User's template html.  A User will uploads various sized html templates and we want to adjust the size of the preview in iframe accordingly.   
Cheers,
Rumen
Telerik team
 answered on 07 Feb 2013
3 answers
135 views
HI All

We are getting an error while trying to upload an image using RadEditor Control. We are getting a javascript error.

Message: Object doesn't support this property or method
URI: /ScriptResource.axd?d=...........................

Message: Sys.ArgumentException:  does not derive from Sys.Component.
URI: /ScriptResource.axd?d=................................................


Don't know what is happening but the same control works in a different server where  we could upload images.

But in 2 other servers we get an error as mentioned above while uploading an image.

Thanks

Rumen
Telerik team
 answered on 07 Feb 2013
3 answers
282 views
hi,

you can write a message as well as the image of the loading? For example loading please wait ...

Bye
Pavlina
Telerik team
 answered on 07 Feb 2013
2 answers
132 views
Dear Telerik,

I'm using RadChart v2012.1.215.35 in an ASP.NET 3.5 application hosted on Win Server 2008 R2 / IIS 7.5 and I am getting a write permission error to the temporary images folder despite all users having full control access to the folder. The application is using the ASP.NET State Service for storing session state which was causing RadChart to throw a serialization error when using out of proc session state. Checking the forums for resolution I have changed Rad Chart to use a temporary folder for storing the chart images instead of session.

<telerik:RadChart ID="rcNAVHistory" SkinsOverrideStyles="true" runat="server" Skin="Vista"
    Width="880px" Height="400px" AutoLayout="true" IntelligentLabelsEnabled="true" UseSession="false" TempImagesFolder="~/Temp">
    <ChartTitle>
        <TextBlock Text="NAV Per Security and USD Totals" />
    </ChartTitle>
    <Appearance TextQuality="AntiAlias">
    </Appearance>
</telerik:RadChart>

The security on the Temp folder is setup with the app pool service account, ASPNET user, NETWORK SERVICE, and Everyone with Full Control to the directory but the application is throwing the following error:

A generic error occurred in GDI+. Check the folder specified in the TempImagesFolder property of the control. Current value is "/App/Temp". The folder should exist and must have been granted write permissions for the ASPNET user. *** Source *** Telerik.Web.UI *** Target Site *** Void RenderClassic(System.Web.UI.HtmlTextWriter) *** Stack Trace *** at Telerik.Web.UI.RadChart.RenderClassic(HtmlTextWriter writer) at Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) at Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any advice would be appreciated. 

Thanks,
Andrew.

Mich Meow
Top achievements
Rank 1
 answered on 07 Feb 2013
7 answers
151 views
Dear,
i have radajaxmanger in masterpage and radajaxManagerProxy in content page.
Is possible to do the same like your sample :
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

Thanks.
Giovanni
Marin Bratanov
Telerik team
 answered on 07 Feb 2013
1 answer
225 views
Hi,
I'm working with radgrid to insert and edit data.Insert delete command working fine.But update command is not firing.Please help me to solve this.


<%@ Page Title="" Language="C#" MasterPageFile="~/Development/MasterPageHome.master" AutoEventWireup="true" CodeFile="SuperAnnuationFundMaster.aspx.cs" Inherits="Development_SuperAnnuationFundMaster" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
 
.style2
{
width: 686px;
height: 22px;
}
.style3
{
width: 686px;
height: 14px;
}
</style>
 
 
<script type="text/JavaScript">
<!--
window.onload = function () {
 
 
document.getElementById('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_SPIN_1TextBox').disabled = true;
 
};
// -->
</script>
 
 
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table align="left" style="width: 100%">
<tr>
<td align="left" class="style2" valign="top">
<asp:Label ID="Label2" runat="server"
Font-Size="13pt" Font-Names="Tahoma" Font-Bold="True"
Font-Underline="False" ForeColor="#404040">Superannuation Fund Setup</asp:Label>
</td>
<td align="left" class="style2">
 </td>
</tr>
<tr>
<td align="left" class="style3" valign="top">
<asp:Label ID="Label11" runat="server" Font-Names="Tahoma"
Font-Size="10pt"></asp:Label>
<asp:Label ID="Label3" runat="server"></asp:Label>
</td>
<td align="left" class="style3">
 </td>
</tr>
<tr>
<td align="left" style="width: 686px" valign="top" colspan="2">
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"
CellSpacing="0" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource" Width="750px"
OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand"
OnItemCreated="RadGrid1_ItemCreated" OnUpdateCommand="RadGrid1_UpdateCommand"
OnPreRender="RadGrid1_PreRender" AutoPostback="True" OnItemUpdated="RadGrid1_ItemUpdated"
OnDeleteCommand="RadGrid1_DeleteCommand" AllowPaging="True" AllowSorting="True"
OnEditCommand="RadGrid1_EditCommand" PageSize="30">
<ClientSettings>
<Selecting CellSelectionMode="None" AllowRowSelect="True"></Selecting>
</ClientSettings>
<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" DataKeyNames="Id"
ClientDataKeyNames="Id">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="Id" Display="False" EditFormColumnIndex="1" FilterControlAltText="Filter Id column"
HeaderText="Id" UniqueName="Id" Visible="False">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="SFund_Code" FilterControlAltText="Filter SFund_Code column"
HeaderText="Superannuation_Fund_Code" SortExpression="SFund_Code" UniqueName="SFund_Code">
<EditItemTemplate>
<table style="width: 100%">
<tr>
<td style="width: 5px; color: #FF0000;">
*
</td>
<td style="width: 179px">
<asp:TextBox ID="SFund_CodeTextBox" runat="server" Height="18px" Text='<%# Bind("SFund_Code") %>'
Width="168px" MaxLength="12"></asp:TextBox>
</td>
<td align="left" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="SFund_CodeTextBox"
ErrorMessage="!" SetFocusOnError="True" ToolTip="Required Field"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="SFund_CodeLabel" runat="server" Text='<%# Eval("SFund_Code") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Fund_Name" FilterControlAltText="Filter Fund_Name column"
HeaderText="Fund_Name" SortExpression="Fund_Name" UniqueName="Fund_Name">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td style="width: 5px; color: #FF0000;">
*
</td>
<td style="width: 179px">
<asp:TextBox ID="Fund_NameTextBox" runat="server" Height="18px" Text='<%# Bind("Fund_Name") %>'
Width="168px" MaxLength="76"></asp:TextBox>
</td>
<td align="left" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Fund_NameTextBox"
ErrorMessage="!" SetFocusOnError="True" ToolTip="Required Field"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Fund_NameLabel" runat="server" Text='<%# Eval("Fund_Name") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Address_Line_1" FilterControlAltText="Filter Address_Line_1 column"
HeaderText="Address_Line_1" SortExpression="Address_Line_1" UniqueName="Address_Line_1">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td style="width: 5px; color: #FF0000;">
*
</td>
<td style="width: 179px">
<asp:TextBox ID="Address_Line_1TextBox" runat="server" Height="18px" Text='<%# Bind("Address_Line_1") %>'
Width="168px" MaxLength="38"></asp:TextBox>
</td>
<td align="left" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Fund_NameTextBox"
ErrorMessage="!" SetFocusOnError="True" ToolTip="Required Field"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Address_Line_1Label" runat="server" Text='<%# Eval("Address_Line_1") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Address_Line_2" FilterControlAltText="Filter Address_Line_2 column"
HeaderText="Address_Line_2" SortExpression="Address_Line_2" UniqueName="Address_Line_2"
Visible="False">
<EditItemTemplate>
<table style="width: 100%">
<tr>
<td style="width: 5px; color: #FF0000;">
   
</td>
<td style="width: 179px">
<asp:TextBox ID="Address_Line_2TextBox" runat="server" Height="18px" Text='<%# Bind("Address_Line_2") %>'
Width="168px" MaxLength="38"></asp:TextBox>
</td>
<td align="left" valign="top">
  
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Address_Line_2Label" runat="server" Text='<%# Eval("Address_Line_2") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Suburb" FilterControlAltText="Filter Suburb column"
HeaderText="Suburb" SortExpression="Suburb" UniqueName="Suburb">
<EditItemTemplate>
<table style="width: 100%; height: 19px;">
<tr>
<td class="style7" style="color: #FF0000;">
*
</td>
<td class="style8">
<asp:TextBox ID="SuburbTextBox" runat="server" Height="18px" Text='<%# Bind("Suburb") %>'
Width="168px" MaxLength="27"></asp:TextBox>
</td>
<td align="left" class="style9" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="SuburbTextBox"
ErrorMessage="!" SetFocusOnError="True" ToolTip="Required Field"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
             
<asp:Label ID="SuburbLabel" runat="server" Text='<%# Eval("Suburb") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="State" FilterControlAltText="Filter State column"
HeaderText="State" SortExpression="State" UniqueName="State" Visible="False">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
   
</td>
<td class="style8">
<telerik:RadComboBox ID="StateTextBox" runat="server" SelectedValue='<%# Bind("State") %>'
Width="174px">
<Items>
<telerik:RadComboBoxItem runat="server" Selected="True" />
<telerik:RadComboBoxItem runat="server" Text="ACT" Value="ACT" />
<telerik:RadComboBoxItem runat="server" Text="NSW" Value="NSW" />
<telerik:RadComboBoxItem runat="server" Text="NT" Value="NT" />
<telerik:RadComboBoxItem runat="server" Text="QLD" Value="QLD" />
<telerik:RadComboBoxItem runat="server" Text="SA" Value="SA" />
<telerik:RadComboBoxItem runat="server" Text="TAS" Value="TAS" />
<telerik:RadComboBoxItem runat="server" Text="VIC" Value="VIC" />
<telerik:RadComboBoxItem runat="server" Text="WA" Value="WA" />
</Items>
</telerik:RadComboBox>
</td>
<td align="left" class="style9" valign="top">
  
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="StateLabel" runat="server" Text='<%# Eval("State") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Postcode" DataType="System.Int32" FilterControlAltText="Filter Postcode column"
HeaderText="Postcode" SortExpression="Postcode" UniqueName="Postcode" Visible="False">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
*
</td>
<td class="style8">
<asp:TextBox ID="PostcodeTextBox" runat="server" Height="18px" Text='<%# Bind("Postcode") %>'
Width="168px" MaxLength="4"></asp:TextBox>
</td>
<td align="left" class="style9" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="PostcodeTextBox"
ErrorMessage="!" SetFocusOnError="True" ToolTip="Required Field"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="PostcodeTextBox"
ErrorMessage="!" ToolTip="Invalid Characters" ValidationExpression="[0-9]+"></asp:RegularExpressionValidator>
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="PostcodeLabel" runat="server" Text='<%# Eval("Postcode") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Country" FilterControlAltText="Filter Country column"
HeaderText="Country" SortExpression="Country" UniqueName="Country" Visible="False">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
   
</td>
<td class="style8">
<asp:TextBox ID="CountryTextBox" runat="server" Height="18px" Text='<%# Bind("Country") %>'
Width="168px" MaxLength="20"></asp:TextBox>
</td>
<td align="left" class="style9" valign="top">
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="CountryLabel" runat="server" Text='<%# Eval("Country") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Telephone" FilterControlAltText="Filter Telephone column"
HeaderText="Telephone" SortExpression="Telephone" UniqueName="Telephone">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
   
</td>
<td class="style8">
<telerik:RadMaskedTextBox ID="TelephoneTextBox" runat="server" EnableSingleInputRendering="True"
LabelWidth="64px" Mask="(###) ###-####" Text='<%# Bind("Telephone") %>' TextWithLiterals="() -"
Width="174px" SelectionOnFocus="CaretToBeginning">
</telerik:RadMaskedTextBox>
</td>
<td align="left" class="style9" valign="top">
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="TelephoneLabel" runat="server" Text='<%# Eval("Telephone") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Email" FilterControlAltText="Filter Email column"
HeaderText="Email" SortExpression="Email" UniqueName="Email" EditFormColumnIndex="1">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
   
</td>
<td class="style8">
<asp:TextBox ID="EmailTextBox" runat="server" Height="18px" Text='<%# Bind("Email") %>'
Width="168px" MaxLength="60"></asp:TextBox>
</td>
<td align="left" class="style9" valign="top">
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="EmailTextBox"
ErrorMessage="!" ToolTip="Invalid Email Address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="EmailLabel" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Website" FilterControlAltText="Filter Website column"
HeaderText="Website" SortExpression="Website" UniqueName="Website" Visible="False"
EditFormColumnIndex="1">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
   
</td>
<td class="style8">
<asp:TextBox ID="WebsiteTextBox" runat="server" Height="18px" Text='<%# Bind("Website") %>'
Width="168px" MaxLength="80"></asp:TextBox>
</td>
<td align="left" class="style9" valign="top">
  
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="WebsiteLabel" runat="server" Text='<%# Eval("Website") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="ABN" FilterControlAltText="Filter ABN column"
HeaderText="ABN" SortExpression="ABN" UniqueName="ABN" EditFormColumnIndex="1">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
*
</td>
<td class="style8">
<telerik:RadMaskedTextBox ID="ABNTextBox" runat="server" EnableSingleInputRendering="True"
LabelWidth="64px" Mask="###########" Text='<%# Bind("ABN") %>' Width="174px"
SelectionOnFocus="CaretToBeginning">
</telerik:RadMaskedTextBox>
</td>
<td align="left" class="style9" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ABNTextBox"
ErrorMessage="!" SetFocusOnError="True" ToolTip="Required Field"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="ABNLabel" runat="server" Text='<%# Eval("ABN") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="SMSF" DataType="System.Boolean" FilterControlAltText="Filter SMSF column"
HeaderText="SMSF" SortExpression="SMSF" UniqueName="SMSF" Visible="False" EditFormColumnIndex="1"
DefaultInsertValue="false">
<EditItemTemplate>
   
<script language="javascript" type="text/javascript">
 
 
 
function checkk(oSrouce, args) {
 
var c = document.getElementById('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_CheckBox1');
 
if (c.checked) {
 
var spin = document.getElementById('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_SPIN_1TextBox').disabled = false;
document.getElementById('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_SPIN_1TextBox').focus();
var AccountNo = document.getElementById('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_Account_NoTextBox').value;
 
if (!AccountNo.match(/\S/))
 
args.IsValid = false;
 
else
 
args.IsValid = true;
 
 
 
return true;
 
}
 
 
else {
document.getElementById('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_SPIN_1TextBox').disabled = true;
return false;
}
 
 
 
 
}
 
 
function ValidateCheckBox(sender, args) {
if (document.getElementById('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_CheckBox1').checked == true) {
 
var AccountNo = document.getElementById('ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl02_ctl02_Account_NoTextBox').value;
 
 
if (!AccountNo.match(/\S/))
 
args.IsValid = false;
 
else
 
args.IsValid = true;
 
 
 
}
 
else {
args.IsValid = true;
}
}
 
 
</script>
<asp:CheckBox ID="CheckBox1" runat="server" onchange="checkk()" Checked='<%# Bind("SMSF") %>' />
<br />
</EditItemTemplate>
<ItemTemplate>
   
<script language="javascript" type="text/javascript">
 
 
 
 
</script>
<asp:CheckBox ID="CheckBox2" runat="server" onchange="check" Checked='<%# Bind("SMSF") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="SPIN_1" FilterControlAltText="Filter SPIN_1 column"
HeaderText="SPIN" SortExpression="SPIN_1" UniqueName="SPIN_1" Visible="False"
EditFormColumnIndex="1">
<EditItemTemplate>
<table style="width: 100%; height: 0px">
<tr>
<td style="color: #FF0000;" class="style4">
   
</td>
<td class="style5">
<telerik:RadMaskedTextBox ID="SPIN_1TextBox" runat="server" EnableSingleInputRendering="True"
LabelWidth="64px" Mask="LLL####LL" PromptChar="#" Text='<%# Bind("SPIN_1") %>'
Width="174px" SelectionOnFocus="CaretToBeginning">
</telerik:RadMaskedTextBox>
</td>
<td align="left" valign="top" class="style6">
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="SPIN_1Label" runat="server" Text='<%# Eval("SPIN_1") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Account_No" FilterControlAltText="Filter BSB_1 column"
HeaderText="Account_No" SortExpression="Account_No" UniqueName="Account_No" Visible="False"
EditFormColumnIndex="1">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
   
</td>
<td class="style8">
<asp:TextBox ID="Account_NoTextBox" runat="server" Height="18px" Text='<%# Bind("ABN") %>'
Width="168px" MaxLength="9"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator2" runat="server" ClientValidationFunction="ValidateCheckBox"
ErrorMessage="!" ToolTip="Mandotory If SMSF tickbox is seton"></asp:CustomValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator19" runat="server"
ControlToValidate="Account_NoTextBox" ErrorMessage="!" ToolTip="Invalid Characters"
ValidationExpression="[0-9]+"></asp:RegularExpressionValidator>
</td>
<td align="left" class="style9" valign="top">
  
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Account_NoLabel" runat="server" Text='<%# Eval("Account_No") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="BSB_1" FilterControlAltText="Filter Account_No column"
HeaderText="BSB" SortExpression="Account_No" UniqueName="BSB_1" Visible="False"
DataType="System.Int32" EditFormColumnIndex="1">
<EditItemTemplate>
<table style="width: 100%; height: 0px">
<tr>
<td class="style4" style="color: #FF0000;">
   
</td>
<td class="style5">
<telerik:RadMaskedTextBox ID="BSB_1TextBox" runat="server" EnableSingleInputRendering="True"
LabelWidth="64px" Mask="###-###" PromptChar="#" Text='<%# Bind("BSB_1") %>' Width="174px"
SelectionOnFocus="CaretToBeginning">
</telerik:RadMaskedTextBox>
</td>
<td align="left" class="style6" valign="top">
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="BSB_1Label" runat="server" Text='<%# Eval("BSB_1") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="Account_Name" FilterControlAltText="Filter Account_Name column"
HeaderText="Account_Name" SortExpression="Account_Name" UniqueName="Account_Name"
Visible="False" EditFormColumnIndex="1">
<EditItemTemplate>
<table style="width: 100%; height: 19px">
<tr>
<td class="style7" style="color: #FF0000;">
   
</td>
<td class="style8">
<asp:TextBox ID="Account_Nametxtbx" runat="server" Height="18px" Text='<%# Bind("Account_Name") %>'
Width="168px" MaxLength="32"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ValidateCheckBox"
ErrorMessage="!" ToolTip="Mandotory If SMSF tickbox is seton"></asp:CustomValidator>
</td>
<td align="left" class="style9" valign="top">
</td>
</tr>
</table>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="BPAY_Biller_CodeLabel" runat="server" Text='<%# Eval("Account_Name") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<EditFormSettings ColumnNumber="3">
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid>
</td>
</tr>
<tr>
<td style="width: 686px" colspan="2">
 </td>
</tr>
<tr>
<td style="width: 686px" colspan="2">
 </td>
</tr>
<tr>
<td style="width: 686px" colspan="2">
 </td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentRightpanel" Runat="Server">
</asp:Content>
Kostadin
Telerik team
 answered on 07 Feb 2013
17 answers
1.8K+ views
Hello,

I have several grids on a page. This page is wrapped with an iframe with a height of 593px. All of the content renders beyond the height of the iframe, giving me a scroll-bar to see all of the data. When I edit a line item in the grid that's at the very bottom of the frame and it shows the RadWindow, it immediately scrolls back to the very top of the frame and I have to scroll down just to see my window again.

My question is: is there some kind of setting I can apply when that window opens so that it doesn't move back to the top of the frame? My ASP.NET AJAX version is 2009.3.1314.35.

Thanks in advance!

*EDIT* Just for better reference, I am using a RadWindowManager to manage multiple windows. There are a total of 3 grids on the page, all of which extend beyond the 593px height of the iframe. I have looked into using InitialBehaviors="Pin" for each RadWindow, which is fine because the window stays pinned, but upon opening the RadWindow, the iframe still resets itself to be scrolled to the very top.

*EDIT 2* I am using Firefox 3.6.16. I cannot recreate this issue in IE8
Marin Bratanov
Telerik team
 answered on 07 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?