I have a user that demands we cannot continue with the project because the textbox height increases after selecting and account. I have attached an image to show that they are seeing. Can someone let me know how I can prevent the textbox height from changing?
Thank you!
Here is my code
<
telerik:RadAutoCompleteBox
ID
=
"RadAutoCompleteBoxESI"
EmptyMessage
=
"Please type ESI Number here"
InputType
=
"Text"
DropDownWidth
=
"200"
Width
=
"200"
runat
=
"server"
>
<
TextSettings
SelectionMode
=
"Single"
/>
</
telerik:RadAutoCompleteBox
>
<telerik:RadTabStrip ID=
"RadTabStrip1"
runat=
"server"
MultiPageID=
"RadMultiPage1"
SelectedIndex=
"0"
CausesValidation=
"False"
Skin=
"Black"
Width=
"100%"
></telerik:RadTabStrip>
<telerik:RadMultiPage ID=
"RadMultiPage1"
runat=
"server"
SelectedIndex=
"0"
></telerik:RadMultiPage>
public
int
_Page;
protected
void
Page_Load(
object
sender, EventArgs e)
{
int
_FID = Convert.ToInt32(Session[
"_FID"
]);
int
_AID = Convert.ToInt32(Session[
"_AID"
]);
IMasterPage masterPage = Page.Master
as
IMasterPage;
if
(masterPage.bodyID ==
"DB"
)
{
_Page = 1;
Page.Title =
string
.Format(
"Virtual Law Desk :: Dashboard"
);
}
else
if
(masterPage.bodyID ==
"CM"
)
{
_Page = 2;
Page.Title =
string
.Format(
"Virtual Law Desk :: Client Management"
);
}
StandardClass SC =
new
StandardClass();
{
if
(!SC.IsError)
{
SC.ReturnLawfirmUser(_FID, _AID);
{
fnLbl.Text = SC.FirstName;
lnLbl.Text = SC.LastName;
}
}
}
NavigationClass NC =
new
NavigationClass();
{
if
(!NC.IsError)
{
RadMenu1.DataSource = NC.ReturnTabNavigation();
RadMenu1.DataTextField =
"tabname"
;
RadMenu1.DataNavigateUrlField =
"url"
;
RadMenu1.DataValueField =
"pid"
;
RadMenu1.DataFieldID =
"id"
;
RadMenu1.DataBind();
RadTabStrip1.DataSource = NC.ReturnSubTabNavigation(_Page);
RadTabStrip1.DataTextField =
"tabname"
;
//RadTabStrip1.DataNavigateUrlField = "url";
RadTabStrip1.DataValueField =
"pid"
;
RadTabStrip1.DataFieldID =
"id"
;
RadTabStrip1.SelectedIndex = -1;
RadTabStrip1.DataBind();
RadPageView pageView =
new
RadPageView();
pageView.ID =
"pid"
;
RadMultiPage MultiPage1 = RadMultiPage1;
MultiPage1.PageViews.Add(pageView);
NC.ReturnUserControls(_Page);
{
Control userControl = Page.LoadControl(NC.URL);
pageView.Controls.Add(userControl);
}
}
}
}
public
class
OldYearGroup : IComparable, IComparable<OldYearGroup>, IEquatable<OldYearGroup>
{
public
OldYearGroup()
{
}
internal
OldYearGroup(
int
year)
{
this
.year = year;
}
public
int
year
{
get
;
set
;
}
public
override
string
ToString()
{
if
(year > DateTime.Now.AddYears(-5).Year)
return
string
.Format(CultureInfo.InvariantCulture.NumberFormat,
"{0}"
,
this
.year);
return
string
.Format(CultureInfo.InvariantCulture.NumberFormat,
"{0}-{1}"
,
this
.year, DateTime.Now.AddYears(-5).Year);
}
public
override
int
GetHashCode()
{
return
this
.year * 7933;
}
public
override
bool
Equals(
object
obj)
{
return
this
.Equals(obj
as
OldYearGroup);
}
public
int
CompareTo(
object
obj)
{
if
(obj
is
OldYearGroup)
{
return
this
.CompareTo(obj
as
OldYearGroup);
}
throw
new
ArgumentException(
"Can not compare."
,
"obj"
);
}
public
int
CompareTo(OldYearGroup other)
{
if
(other ==
null
)
{
throw
new
ArgumentNullException(
"other"
);
}
return
this
.year.CompareTo(other.year);
}
public
bool
Equals(OldYearGroup other)
{
return
other !=
null
&&
this
.year < DateTime.Now.AddYears(-5).Year;
}
}
public
class
DefaultDateTimeGroupingDescription : PropertyGroupDescriptionBase
{
public
int
Year {
get
;
set
; }
public
DefaultDateTimeGroupingDescription()
{
}
protected
override
object
GroupNameFromItem(
object
item,
int
level)
{
var baseValue =
base
.GroupNameFromItem(item, level);
DateTime? year = ((DateTime?)baseValue);
if
(!year.HasValue)
return
null
;
return
new
OldYearGroup(year.Value.Year);
}
protected
override
void
CloneOverride(Cloneable source)
{
var castedSource = source
as
DefaultDateTimeGroupingDescription;
if
(castedSource ==
null
)
return
;
if
(castedSource.Year <
this
.Year)
this
.Year = castedSource.Year;
}
protected
override
Cloneable CreateInstanceCore()
{
return
new
DefaultDateTimeGroupingDescription();
}
}
public
class
DefaultDateTimeGroupingField : PivotGridColumnField
{
private
GroupDescription _groupDescription;
public
override
GroupDescription GroupDescription
{
get
{
if
(_groupDescription==
null
)
{
_groupDescription =
new
DefaultDateTimeGroupingDescription();
}
return
_groupDescription;
}
set
{
base
.GroupDescription = value;
}
}
}
<EditItemTemplate>
<asp:TextBox ID="txbDescription" Style="width: 390px; margin-left: 4px;" runat="server"
TextMode="MultiLine" Rows="3" Text='<%# Bind("Description") %>' MaxLength="1000" Wrap="true" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txbDescription"
ErrorMessage="A Document description is required" Enabled="true" runat="server">
</asp:RequiredFieldValidator>
<asp:CustomValidator ID="val_txbDescription" Enabled="true" runat="server"
ErrorMessage="Description is too large. Please limit text to 1000 characters."
OnServerValidate="val_txbDescription_ServerValidate" Display="Dynamic" ControlToValidate="txbDescription">
</asp:CustomValidator>
</EditItemTemplate>
protected
void val_txbDescription_ServerValidate(object source, ServerValidateEventArgs args)
{
args.IsValid =
true;
if (args.Value.Length > 1000) args.IsValid = false;
}