I have a RadTextBox defined like this:
<telerik:RadTextBox ID="newNoteTextArea" Runat="server" EmptyMessage="Enter new note here." Skin="Office2007" TextMode="MultiLine" Rows="4" width="99%" ShowButton="false" style="border: none;" ValidationGroup="undr_AddNote" MaxLength="2000000" ></telerik:RadTextBox>
When the user types a lot of text into the RadTextbox, the texbox will scroll back toward the top of the textbox and bounce back between the top and the typing line in-between typing. This is happening in IE7, but dos not seem to in Chrome. I have not tested Firefox or any other browsers. I have confirmed that this same thing happens in the online demo found here: http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx
To see it copy this into the multi-line input:
;sdlgj s;lkfjg ;slkgj;lskgj;lksdfg;skfg;lsfjg;sfgsfjglksfjd;kf;lksjd ; dfgks dfg;lksj dfg;jsf ;lksdf g;slkfg ;slkgj s;lfk ;sdlgj s;lkfjg ;slkgj;lskgj;lksdfg;skfg;lsfjg;sfgsfjglksfjd;kf;lksjd ; dfgks dfg;lksj dfg;jsf ;lksdf g;slkfg ;slkgj s;lfk;sdlgj s;lkfjg ;slkgj;lskgj;lksdfg;skfg;lsfjg;sfgsfjglksfjd;kf;lksjd ; dfgks dfg;lksj dfg;jsf ;lksdf g;slkfg ;slkgj s;lfk;sdlgj s;lkfjg ;slkgj;lskgj;lksdfg;skfg;lsfjg;sfgsfjglksfjd;kf;lksjd ; dfgks dfg;lksj dfg;jsf ;lksdf g;slkfg ;slkgj s;lfk ;sdlgj s;lkfjg ;slkgj;lskgj;lksdfg;skfg;lsfjg;sfgsfjglksfjd;kf;lksjd ; dfgks dfg;lksj dfg;jsf ;lksdf g;slkfg ;slkgj s;lfk;sdlgj s;lkfjg ;slkgj;lskgj;lksdfg;skfg;lsfjg;sfgsfjglksfjd;kf;lksjd ; dfgks dfg;lksj dfg;jsf ;lksdf g;slkfg ;slkgj s;lfk;sdlgj s;lkfjg ;slkgj;lskgj;lksdfg;skfg;lsfjg;sfgsfjglksfjd;kf;lksjd ; dfgks dfg;lksj dfg;jsf ;lksdf g;slkfg ;slkgj s;lfk;sdlgj s;lkfjg ;slkgj;lskgj;lksdfg;skfg;lsfjg;sfgsfjglksfjd;kf;lksjd ; dfgks dfg;lksj dfg;jsf ;lksdf g;slkfg ;slkgj s;lfk
Then type, you’ll see it bounce up and down. This become VERY annoying for the user.
RadComboBox1.ClearSelection();
RadComboBox1.Text = string.Empty;
RadComboBox1.Items.Clear();
RadComboBox1.DataSource = null;
RadComboBox1.DataBind();
while (RadComboBox1.Items.Count > 0)
{
RadComboBox1.Items.Remove(0);
}
<telerik:RadNumericTextBox ID=
"txtPrice"
Runat=
"server"
Culture=
"tr-TR"
Width=
"125px"
>
<NumberFormat AllowRounding=
"False"
KeepNotRoundedValue=
"True"
DecimalSeparator=
","
GroupSeparator=
"."
GroupSizes=
"3"
DecimalDigits=
"2"
/>
</telerik:RadNumericTextBox>
protected
override
void
OnInit(EventArgs e)
{
base
.OnInit(e);
Page.ClientScript.RegisterStartupScript(
typeof
(Adapter20),
this
.ID,
"_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;"
,
true
);
if
(
this
.Page.Form !=
null
)
{
string
formOnSubmitAtt =
this
.Page.Form.Attributes[
"onsubmit"
];
if
(!
string
.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt ==
"return _spFormOnSubmitWrapper();"
)
this
.Page.Form.Attributes[
"onsubmit"
] =
"_spFormOnSubmitWrapper();"
;
}
// Register the ScriptManager
ScriptManager scriptManager = ScriptManager.GetCurrent(Page);
if
(scriptManager ==
null
)
{
scriptManager =
new
ScriptManager();
scriptManager.ID =
"CWScriptManager"
;
scriptManager.EnablePartialRendering =
true
;
Controls.AddAt(0, scriptManager);
}
//scriptManager.EnablePartialRendering = true;
scriptManager.LoadScriptsBeforeUI =
false
;
}
Hello,
My question is pretty same as the following one:
http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/rad-tab-click-event-not-firing-the-first-time.aspx
I followed the demo "TabStrip / Load on Demand RadPageView" and i can say that most of the code is missing so i had to combine the code from the other demoS in order to achieve what i want (please refer the code below).
However the thing is that i can't make it loads the very first pageview when tabs are created. After you click another tabpage it works as expected.
It is something similar to windows button control which has a "PerformClick" event.
Thanks
ASP.NET (HTML)
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
SelectedIndex
=
"0"
CssClass
=
"multiPage"
/>
<
telerik:RadTabStrip
OnClientTabSelecting
=
"onTabSelecting"
ID
=
"RadTabStrip1"
SelectedIndex
=
"0"
CssClass
=
"tabStrip"
runat
=
"server"
MultiPageID
=
"RadMultiPage1"
Skin
=
"Office2007"
Orientation
=
"HorizontalBottom"
/>
CODE BEHIND (VB.NET)
Imports
Telerik.Web.UI
Public
Class
_Default
Inherits
System.Web.UI.Page
Protected
Sub
Page_Load(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Me
.Load
If
Not
Page.IsPostBack
Then
AddTab(
"Corporate"
)
AddTab(
"Personal"
)
End
If
End
Sub
Private
Sub
AddTab(
ByVal
tabName
As
String
)
Dim
tab
As
New
RadTab
tab.Text = tabName
tab.Value = tabName &
".ascx"
tab.PageViewID = tabName.Replace(
" "
c,
""
) &
".ascx"
RadTabStrip1.Tabs.Add(tab)
End
Sub
Private
Sub
AddPageView(
ByVal
pageViewID
As
String
)
Dim
pageView
As
New
RadPageView()
pageView.ID = pageViewID
RadMultiPage1.PageViews.Add(pageView)
End
Sub
Protected
Sub
TabStrip1_TabClick(
ByVal
sender
As
Object
,
ByVal
e
As
RadTabStripEventArgs)
Handles
RadTabStrip1.TabClick
AddPageView(e.Tab.Value)
e.Tab.PageView.Selected =
True
End
Sub
Private
Sub
MultiPage1_PageViewCreated(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.RadMultiPageEventArgs)
Handles
RadMultiPage1.PageViewCreated
Dim
userControlName
As
String
= e.PageView.ID
Dim
userControl
As
Control = Page.LoadControl(userControlName)
userControl.ID = e.PageView.ID +
"_userControl"
e.PageView.Controls.Add(userControl)
End
Sub
End
Class