or
i have a radtextbox with TextMode="MultilLine". i want to have a list of items in it but the problem is that in a radgrid, the textbox shrinks vertically and you have to use scroll bars to see all the content.
i have tried...
height="100%" on the textbox itself
(another recommendation)
OVERFLOW-X: visible; OVERFLOW-Y: visible; WORD-WRAP: break-word; HEIGHT: 100%;
on the CSS Class of the textbox
is there a quick and easy way to show all the vertical content and stretch the textbox to fix the vertical content? if not in edit mode then at least in read-only mode?
if i can achieve the effect with another control or htmlcontrol, what would you recommend?
<html xmlns="http://www.w3.org/1999/xhtml" > |
<head runat="server"> |
<title></title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<telerik:RadToolBar ID="RadToolBar1" runat="server" style="width:100%;"> |
<Items> |
<telerik:RadToolBarSplitButton runat="server" EnableDefaultButton="true" DefaultButtonIndex="0" > |
<Buttons> |
<telerik:RadToolBarButton Value="first" ImageUrl="Images/ticket1-16.png" /> |
<telerik:RadToolBarButton Value="second" ImageUrl="Images/tickets16.png" /> |
</Buttons> |
</telerik:RadToolBarSplitButton> |
</Items> |
</telerik:RadToolBar> |
<hr /> |
<telerik:RadToolBar ID="RadToolBar2" runat="server" style="width:100%;"> |
<Items> |
<telerik:RadToolBarSplitButton runat="server" EnableDefaultButton="true" DefaultButtonIndex="0" > |
<Buttons> |
<telerik:RadToolBarButton Value="first" ImageUrl="Images/ticket1-16.png" Text="One Ticket" /> |
<telerik:RadToolBarButton Value="second" ImageUrl="Images/tickets16.png" Text="Multiple Tickets" /> |
</Buttons> |
</telerik:RadToolBarSplitButton> |
</Items> |
</telerik:RadToolBar> |
</form> |
</body> |
</html> |
<%@ Page Title="TMS Carrier" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"head"
runat
=
"Server"
>
</
asp:Content
>
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
runat
=
"Server"
>
<
div
class
=
"gridHolderLarge"
>
<
h3
class
=
"tableDesc"
>
Carriers</
h3
>
<
telerik:RadGrid
ID
=
"grdCarrier"
runat
=
"server"
AutoGenerateColumns
=
"False"
GridLines
=
"None"
DataSourceID
=
"objDataCarrier"
>
<
MasterTableView
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"CarrierId"
DataSourceID
=
"objDataCarrier"
EditMode
=
"InPlace"
NoMasterRecordsText
=
"No carriers to display."
>
<
DetailTables
>
<
telerik:GridTableView
runat
=
"server"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
DataSourceID
=
"objDataContact"
NoDetailRecordsText
=
"No contacts to display."
CommandItemDisplay
=
"Top"
DataKeyNames
=
"ContactId,CountryCode"
>
<
ParentTableRelation
>
<
telerik:GridRelationFields
DetailKeyField
=
"CarrierId"
MasterKeyField
=
"CarrierId"
/>
</
ParentTableRelation
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
/>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
/>
</
ExpandCollapseColumn
>
<
CommandItemSettings
AddNewRecordText
=
"Add new contact"
ShowRefreshButton
=
"False"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Name"
HeaderText
=
"Contact Name"
MaxLength
=
"50"
UniqueName
=
"column4"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Position"
HeaderText
=
"Position"
MaxLength
=
"50"
UniqueName
=
"column5"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Phone"
HeaderText
=
"Phone"
MaxLength
=
"50"
UniqueName
=
"column6"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Address"
HeaderText
=
"Address"
MaxLength
=
"50"
UniqueName
=
"column7"
Visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"City"
HeaderText
=
"City"
MaxLength
=
"50"
UniqueName
=
"column8"
Visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"State"
HeaderText
=
"State/Province"
MaxLength
=
"50"
UniqueName
=
"column1"
Visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PostalCode"
HeaderText
=
"Postal Code"
MaxLength
=
"30"
UniqueName
=
"column2"
Visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridDropDownColumn
DataField
=
"CountryCode"
DataSourceID
=
"objDataCountry"
HeaderText
=
"Country"
ListTextField
=
"Country"
ListValueField
=
"CountryCode"
UniqueName
=
"column"
DefaultInsertValue
=
"USA"
Visible
=
"False"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridBoundColumn
DataField
=
"Email"
HeaderText
=
"Email"
MaxLength
=
"200"
UniqueName
=
"column3"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Comment"
HeaderText
=
"Comment"
MaxLength
=
"4000"
UniqueName
=
"column10"
Visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
CancelImageUrl
=
"~/images/Cancel.gif"
EditImageUrl
=
"~/images/Edit.gif"
InsertImageUrl
=
"~/images/Update.gif"
Reorderable
=
"False"
Resizable
=
"False"
UpdateImageUrl
=
"~/images/Update.gif"
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridButtonColumn
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
ConfirmDialogType
=
"RadWindow"
ConfirmText
=
"Are you sure you wish to permanently delete this contact?"
ConfirmTitle
=
"Delete Contact"
ImageUrl
=
"~/images/Delete.gif"
Reorderable
=
"False"
Resizable
=
"False"
Text
=
"Delete"
UniqueName
=
"column9"
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridButtonColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
</
EditFormSettings
>
</
telerik:GridTableView
>
</
DetailTables
>
<
CommandItemSettings
AddNewRecordText
=
"Add new carrier"
/>
<
ExpandCollapseColumn
Visible
=
"True"
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Name"
HeaderText
=
"Carrier"
MaxLength
=
"50"
UniqueName
=
"column1"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AccountNumber"
HeaderText
=
"Account Number"
MaxLength
=
"50"
UniqueName
=
"column2"
>
</
telerik:GridBoundColumn
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
CancelImageUrl
=
"~/images/Cancel.gif"
EditImageUrl
=
"~/images/Edit.gif"
InsertImageUrl
=
"~/images/Update.gif"
Reorderable
=
"False"
Resizable
=
"False"
UpdateImageUrl
=
"~/images/Update.gif"
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridButtonColumn
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
ConfirmDialogType
=
"RadWindow"
ConfirmText
=
"Do you wish to permanently delete this carrier?"
ConfirmTitle
=
"Delete Carrier"
ImageUrl
=
"~/images/Delete.gif"
Reorderable
=
"False"
Resizable
=
"False"
Text
=
"Delete"
UniqueName
=
"column"
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridButtonColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
</
EditFormSettings
>
<
AlternatingItemStyle
BackColor
=
"#EAF2FA"
Font-Bold
=
"False"
Font-Italic
=
"False"
Font-Overline
=
"False"
Font-Strikeout
=
"False"
Font-Underline
=
"False"
Wrap
=
"True"
/>
</
MasterTableView
>
</
telerik:RadGrid
>
<
asp:ObjectDataSource
ID
=
"objDataCarrier"
runat
=
"server"
DeleteMethod
=
"DeleteCarrier"
InsertMethod
=
"InsertCarrier"
OldValuesParameterFormatString
=
"original_{0}"
SelectMethod
=
"GetCarriers"
TypeName
=
"Carrier"
UpdateMethod
=
"UpdateCarrier"
>
<
DeleteParameters
>
<
asp:Parameter
Name
=
"original_CarrierId"
Type
=
"Int32"
/>
</
DeleteParameters
>
<
UpdateParameters
>
<
asp:Parameter
Name
=
"Name"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"AccountNumber"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"original_CarrierId"
Type
=
"Int32"
/>
</
UpdateParameters
>
<
InsertParameters
>
<
asp:Parameter
Name
=
"Name"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"AccountNumber"
Type
=
"String"
/>
</
InsertParameters
>
</
asp:ObjectDataSource
>
<
asp:ObjectDataSource
ID
=
"objDataContact"
runat
=
"server"
OldValuesParameterFormatString
=
"original_{0}"
SelectMethod
=
"GetContacts"
TypeName
=
"CarrierContact"
>
<
SelectParameters
>
<
asp:Parameter
Name
=
"CarrierId"
Type
=
"Int32"
DefaultValue
=
""
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
<
asp:ObjectDataSource
ID
=
"objDataCountry"
runat
=
"server"
OldValuesParameterFormatString
=
"original_{0}"
SelectMethod
=
"GetCountries"
TypeName
=
"Country"
></
asp:ObjectDataSource
>
</
div
>
</
asp:Content
>
<
div
style
=
"width: 100%; max-width: 1000px;"
>
<
telerik:RadTabStrip
runat
=
"server"
ID
=
"RadTabStrip2"
MultiPageID
=
"RadMultiPage1"
SelectedIndex
=
"0"
Skin
=
"BlackMetroTouch"
Width
=
"100%"
>
<
Tabs
>
<
telerik:RadTab
Text
=
"Sign In"
Width
=
"50%"
></
telerik:RadTab
>
<
telerik:RadTab
Text
=
"Sign Out"
Width
=
"50%"
></
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
</
div
>