I am using a grid in my page for the user to insert data into. on opening the page I want the grid to open the insert mode. I put this in and it works but the default values are not showing in the fields. if I just load the page and click on the insert link the values are there. is there a way I can get my default values to show while opening this on the page load?
protected
void RadGrid2_PreRender(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
RadGrid2.MasterTableView.IsItemInserted =
true;
RadGrid2.Rebind();
}
}
my column editor looks like this<
telerik:GridNumericColumnEditor ID="CCTavelCostColumnEditor" runat="server">
<NumericTextBox runat="server" ID="NumericTextBox3" Width="80px" Value="0" NumberFormat-DecimalDigits="0" Type="Currency"
</NumericTextBox>
</telerik:GridNumericColumnEditor>
if it helps my column is like this
<
telerik:GridNumericColumn Aggregate="Sum" DataField="TRAVELCOST" HeaderText="TRAVEL COST" UniqueName="TRAVELCOST" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
DataType="System.Decimal" DataFormatString="{0:C}" ColumnEditorID="CCTavelCostColumnEditor" ItemStyle-Width="80px"
FooterAggregateFormatString="{0:C}" FooterStyle-HorizontalAlign="Right">
<FooterStyle HorizontalAlign="Right"></FooterStyle>
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</telerik:GridNumericColumn >
HeaderText="Data" SortExpression="Data" UniqueName="Data" EditFormHeaderTextFormat="{0:dd/MM/yyyy HH:mm:ss}" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">
</telerik:GridBoundColumn>
or to use:
<
telerik:GridDateTimeColumn DataField="Data" DataType="System.DateTime" HeaderText="Data" SortExpression="Data" UniqueName="Data" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" >
</telerik:GridDateTimeColumn>
I get always the same error, what can I do to solve?
DropDownCompany.Items.Insert(0,
New RadComboBoxItem("All Companies", "-1"))
this "All Companies" Text is displaying with no styles.
how to make that text as Italic font while selected.
Regards,
Surya Murthy.
<t
elerik:RadPanelBar ID="RadPanelBar1" runat="server" onitemclick="RadPanelBar1_ItemClick" CausesValidation="False" ExpandMode="FullExpandedItem" BorderWidth="0px"height="100%" Width="100%">
<Items>
<telerik:RadPanelItem runat="server" Expanded="True" Selected="True" Text="HOME" Value="parent">
<Items>
<telerik:RadPanelItem runat="server" Text="LINKS" Value="links">
</telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" Text="about us" Value="aboutus">
</telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" Text="contact us" Value="contactus">
</telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" Text="portal login" Value="login">
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</telerik:RadPanelBar>
My Table is 1 row 2 columns. The background of column 1 is gray. This is where the RadPanel lives.
In IE8 and Chrome the page renders as expected. The panel is expanded and i can see all of HOMEs child items.
In Firefox the panel is shrunk and only displays the first child "LINKS" under home. However, the column in which it resides is full height because i can see the gray background in the open space.
Any thoughts as to how to increase the height of the RadPanelItem to fill the column?
Thanks
