I have an issue where the menu var we have is no longer showing the drop downs (see video) Any ideas why it wouldn't be showing?
http://screencast.com/t/g2hlqXN8XET
Below is the code for the menu
<telerik:RadMenu ID="RadMenuMaster" runat="server" Style="top: 0px; left: 0px; z-index: 2900"
OnClientItemOpened="itemOpened">
<Items>
<telerik:RadMenuItem runat="server" Text="New Cars & Quotes" Width="160px" Owner="RadMenuMaster">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Vehicle Assistance" Width="160px" Owner="RadMenuMaster">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="End Of Agreement" Width="160px" Owner="RadMenuMaster">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Driver Assistance" Width="160px">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Your Scheme" Width="160px" Owner="RadMenuMaster">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Contact Us" Width="157px" Owner="RadMenuMaster">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>
System.InvalidCastException: Unable to cast object of type 'Telerik.Web.Apoc.Layout.BlockArea' to type 'Telerik.Web.Apoc.Layout.AreaContainer'. at Telerik.Web.Apoc.Fo.Flow.BlockContainer.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area) at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region) at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area) at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree) at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence) at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement() at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
<%
@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ExportGridDateTimeColumnError._Default" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body>
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function onRequestStart(sender, args) {
if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
args.get_eventTarget().indexOf(
"ExportToWordButton") >= 0 ||
args.get_eventTarget().indexOf(
"ExportToPdfButton") >= 0 ||
args.get_eventTarget().indexOf(
"ExportToCsvButton") >= 0) {
args.set_enableAjax(
false);
}
}
</script>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
<ClientEvents OnRequestStart="onRequestStart" />
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista">
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="RadGrid1" runat="server" Width="1024px" Skin="Vista"
AllowSorting="true"
AllowFilteringByColumn="true"
AllowPaging="true" PageSize="10"
ShowHeader="true"
ShowFooter="true"
ShowGroupPanel="true"
OnItemCommand="RadGrid1_ItemCommand">
<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
<Selecting AllowRowSelect="True"></Selecting>
<Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False"></Resizing>
</ClientSettings>
<GroupingSettings ShowUnGroupButton="true" />
<ExportSettings IgnorePaging="true" OpenInNewWindow="true">
<Pdf PageHeight="297mm" PageWidth="210mm" PageTitle="PDF Export Test" />
</ExportSettings>
<MasterTableView Width="80%" CommandItemDisplay="Top">
<PagerStyle Mode="NextPrevNumericAndAdvanced" />
<CommandItemSettings
ShowExportToWordButton="true"
ShowExportToExcelButton="true"
ShowExportToCsvButton="true"
ShowExportToPdfButton="true"
/>
</MasterTableView>
</telerik:RadGrid>
</div>
</form>
</
body>
</
html>
using
System;
using
System.Collections;
using
System.Configuration;
using
System.Data;
using
System.Linq;
using
System.Web;
using
System.Web.Security;
using
System.Web.UI;
using
System.Web.UI.HtmlControls;
using
System.Web.UI.WebControls;
using
System.Web.UI.WebControls.WebParts;
using
System.Xml.Linq;
namespace
ExportGridDateTimeColumnError
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
RadGrid1.DataSource = getDemoData();
}
public DataTable getDemoData()
{
DataTable dt = new DataTable();
DataColumn myDataColumn;
Random rnd = new Random();
myDataColumn =
new DataColumn();
myDataColumn.DataType =
Type.GetType("System.String");
myDataColumn.ColumnName =
"Guid";
dt.Columns.Add(myDataColumn);
myDataColumn =
new DataColumn();
myDataColumn.DataType =
Type.GetType("System.Int32");
myDataColumn.ColumnName =
"number";
dt.Columns.Add(myDataColumn);
myDataColumn =
new DataColumn();
myDataColumn.DataType =
Type.GetType("System.DateTime");
myDataColumn.ColumnName =
"date";
dt.Columns.Add(myDataColumn);
for (int i = 0; i < 1000; i++)
{
AddDataRowToTable(System.
Guid.NewGuid().ToString(), rnd.Next(), DateTime.Now, dt);
}
return dt;
}
private void AddDataRowToTable(string guid, int number, DateTime date, DataTable dataTable)
{
DataRow row;
row = dataTable.NewRow();
row[
"guid"] = guid;
row[
"number"] = number;
row[
"date"] = date;
dataTable.Rows.Add(row);
}
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == Telerik.Web.UI.RadGrid.ExportToExcelCommandName ||
e.CommandName == Telerik.Web.UI.
RadGrid.ExportToWordCommandName ||
e.CommandName == Telerik.Web.UI.
RadGrid.ExportToCsvCommandName ||
e.CommandName == Telerik.Web.UI.
RadGrid.ExportToPdfCommandName)
{
ConfigureExport();
}
}
public void ConfigureExport()
{
RadGrid1.ExportSettings.ExportOnlyData =
false;
RadGrid1.ExportSettings.IgnorePaging =
true;
RadGrid1.ExportSettings.OpenInNewWindow =
true;
}
}
}
I have created a very simple page to reproduce this error
This error is happening on ipad safari or chrome
you can also reproduce it on chrome by emulating Apple Ipad.
Once the page load, Select a radlistboxitem such as "2", now try to press the button. it won't postback.
Any help would be appreciated
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
asp:ScriptManager
runat
=
"server"
ID
=
"sm1"
></
asp:ScriptManager
>
<
div
>
Available
<
telerik:RadListBox
runat
=
"server"
ID
=
"lbUnselected"
Height
=
"250px"
SelectionMode
=
"Multiple"
AllowTransfer
=
"true"
TransferToID
=
"lbSelected"
AllowReorder
=
"true"
EnableDragAndDrop
=
"true"
/>
<
br
/><
br
/>
Selected
<
telerik:RadListBox
runat
=
"server"
ID
=
"lbSelected"
Height
=
"250px"
SelectionMode
=
"Multiple"
AllowTransfer
=
"true"
TransferToID
=
"lbUnselected"
AllowReorder
=
"true"
EnableDragAndDrop
=
"true"
/>
<
br
/><
br
/>
<
asp:Button
runat
=
"server"
ID
=
"btnDo"
Text
=
"Do"
/>
</
div
>
</
form
>
</
body
>
and code behind
Protected
Sub
Page_Load(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Me
.Load
If
Not
IsPostBack
Then
lbUnselected.Items.Add(
New
RadListBoxItem(
"1"
,
"1"
))
lbUnselected.Items.Add(
New
RadListBoxItem(
"2"
,
"2"
))
lbUnselected.Items.Add(
New
RadListBoxItem(
"3"
,
"3"
))
lbSelected.Items.Add(
New
RadListBoxItem(
"4"
,
"4"
))
lbSelected.Items.Add(
New
RadListBoxItem(
"5"
,
"5"
))
lbSelected.Items.Add(
New
RadListBoxItem(
"6"
,
"6"
))
End
If
End
Sub
Protected
Sub
btnDo_click(sender
As
Object
, e
As
EventArgs)
Handles
btnDo.Click
Dim
here
As
String
=
""
End
Sub
Hello,
I have a RadComboBox that contains a list of entities. When the user makes a selection from the combo box an entity is retrieved in the code behind and two RadDatePickers are populated using a start date and an end date from the entities.
This all works fine but if the user makes a selection using the ENTER key then the datapickers will not be populated. This is only a problem on Chrome also. On Internet Explorer it is fine. I haven't tried other browsers.
What is strange is that the OnSelectedIndexChanged event always fires (regardless of browser and whether the selection is made with a mouse click or a key press).
My date pickers are wrapped in an update panel which I call Update() on after the datepickers have been populated (by setting the SelectedDate attributes to the start/end date value).
Please let me know if you require additional information and thanks in advance.
John.
Hi there -
I currently have a page implemented where a radgrid is on the page, allowing each data item to have a radbutton which will open a radwindow as a modal. This Navigate URL is another aspx page, which in the Page_Load event does some database activity and generates a dynamic PDF as binary data, which it then writes out to the Response buffer of that child/report page. The effect of this is having a dynamic PDF load in a modal. This all works great.
However, this database query can take up to 8 seconds, and I wanted to give the user a loading panel (even simply spinning icon) in the radwindow until this data was ready, processed, and written to a byte array so it is ready for the response buffer.
What would be the best approach here? I know it gets a bit tricky due to the nature of this type of content (PDF) and AJAX knowing when the page is done loading so wanted to ask some pros.
I was thinking perhaps I can simply have that child/report page that comes in the modal contain just a simple ASP Panel , and then perhaps after the Page_Load events has fired and it has the byte array ready with the PDF content then I can simply write it to the response buffer in there and then make the panel visible?
I just wasn't sure the best approach.
Any help is greatly appreciated!
hello,
can you tell me, what do you mean with , for example span ="2"
what is "2" ??? I understand what span is, but I don't understand what 2 is.
best wishes Dimitri
Hello,
users of my web site are occasionally experiencing the "HTTP Error 503".
This is likely caused by some memory usage issue, and is occurring since I started adding Telerik UI For ASP.NET Ajax components to some pages.
In particular I created a page which features a RadScheduler and a RadListbox, both with server-side database binding. This page is continuously used by some 10 - 15 users during the day.
The application is deployed as a VS Website (not VS Web Application project), so there is a part of code that gets compiled at run-time.
The hosting is a shared one, with 500 MB of memory available, and is used only by employees of a private company (let's say 30 users).
My question is the following:
is there any suggestion on the best way to include Telerik components in ASP.NET pages in order to minimize memory usage?
For example: would converting from Website Project to Web Application Project be effective in reducing memory usage? Or whatever...
Thanks
Regards
Mike
I have a hierarchical radGrid where the user can expand a parent row and then click on a child row to edit it in-place. I would like to provide them with a button on the parent row that would put all the child rows (for that parent row) in edit mode at the same time so that they can edit them all and save them all with 1 click.
I have researched this and found lots of info on how to do this on the parent rows but found nothing on how to do it on the child rows.
The way it is constructed is that the parent rows are in a "RadGrid" and the child rows are in a "GridTableView". Maybe this is where my problem is.
So, I need to either figure out how to accomplish it with what I have or to get some detail on how to redesign the grid to be able to do it.
Thanks in advance for any help or advise!
Here is my grid:
<telerik:RadGrid ID="rgTraveler" runat="server"
DataSourceID="SqlDataSourceTravelerMain"
AutoGenerateColumns="False"
AllowSorting="True"
AllowPaging="True"
PageSize="25"
Width="1200px"
OnUpdateCommand="rgTraveler_UpdateCommand"
OnCancelCommand="rgTraveler_CancelCommand"
OnItemCommand="rgTraveler_ItemCommand"
OnItemDataBound="rgTraveler_ItemDataBound"
AllowAutomaticUpdates="True"
GroupPanelPosition="Top">
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView EnableNoRecordsTemplate="true"
CommandItemDisplay="None"
InsertItemDisplay="Bottom"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Center"
AlternatingItemStyle-HorizontalAlign="Center"
EditMode="InPlace"
DataKeyNames="PO">
<NoRecordsTemplate>
<div>There are no records to display.</div>
</NoRecordsTemplate>
<DetailTables>
<telerik:GridTableView DataSourceID="SqlDataSourceTravelerSub"
runat="server"
CommandItemDisplay="None"
Name="GridTableViewSub"
BackColor="White"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Center"
AlternatingItemStyle-HorizontalAlign="Center"
EditMode="InPlace"
DataKeyNames="DetailID,ProdOrder,Source">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="ProdOrder" MasterKeyField="PO" />
</ParentTableRelation>
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Edit" UniqueName="EditCommandColumn" />
<telerik:GridBoundColumn DataField="Source" HeaderText="" SortExpression="Source" UniqueName="Source" ItemStyle-Width="10px" ReadOnly="True" Visible="true" />
<telerik:GridBoundColumn DataField="DetailID" HeaderText="DetailID" ReadOnly="true" SortExpression="DetailID" Visible="false" />
<telerik:GridBoundColumn DataField="ProdOrder" HeaderText="ProdOrder" ReadOnly="true" SortExpression="ProdOrder" Visible="true" />
<telerik:GridBoundColumn DataField="SerialNumber" HeaderText="SerialNumber" ReadOnly="true" SortExpression="SerialNumber" ItemStyle-Width="100px" />
<telerik:GridBoundColumn DataField="PassToStockDate" HeaderText="Pass To Stock Date" SortExpression="PassToStockDate" DataType="System.DateTime" ReadOnly="True" UniqueName="PassToStockDate" DataFormatString="{0:d}" ItemStyle-Width="200px" />
<telerik:GridCheckBoxColumn DataField="FinalPassedToStock" HeaderText="Final Passed To Stock" SortExpression="FinalPassedToStock" UniqueName="FinalPassedToStock" ItemStyle-Width="200px" />
<telerik:GridDateTimeColumn DataField="FinalPassedToStockDate" HeaderText="Final Passed To Stock Date" SortExpression="FinalPassedToStockDate" ItemStyle-Width="200px" UniqueName="rdpFinalPassedToStockDate" DataFormatString="{0:d}" />
<telerik:GridCheckBoxColumn DataField="HasIssue" HeaderText="HasIssue" SortExpression="HasIssue" UniqueName="HasIssue" />
<telerik:GridBoundColumn DataField="Comments" HeaderText="Comments" SortExpression="Comments" UniqueName="txtComments" ItemStyle-Width="500px" />
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridBoundColumn DataField="Source" HeaderText="" SortExpression="Source" UniqueName="Source" ItemStyle-Width="10px" ReadOnly="True" Visible="true" />
<telerik:GridBoundColumn DataField="ID" HeaderText="ID" ReadOnly="true" SortExpression="ID" DataType="System.Int32" Visible="false" />
<telerik:GridBoundColumn DataField="PO" HeaderText="Prod Order" SortExpression="PO" UniqueName="PO" ItemStyle-Width="200px" ReadOnly="True" />
<telerik:GridBoundColumn DataField="SalesOrder" HeaderText="Sales Order" SortExpression="SalesOrder" UniqueName="SalesOrder" ItemStyle-Width="200px" ReadOnly="True" />
<telerik:GridBoundColumn DataField="SalesItem" HeaderText="Sales Item" SortExpression="SalesItem" ReadOnly="true" ItemStyle-Width="50px" />
<telerik:GridBoundColumn DataField="Part" HeaderText="Part" SortExpression="Part" UniqueName="Part" ItemStyle-Width="200px" ReadOnly="True" />
<telerik:GridBoundColumn DataField="Comments" HeaderText="Comments" SortExpression="Comments" UniqueName="Comments" ItemStyle-Width="600px" ReadOnly="True" />
<telerik:GridBoundColumn DataField="InspectionCompleteDate" HeaderText="Inspection Complete Date" SortExpression="InspectionCompleteDate" DataType="System.DateTime" ReadOnly="True" UniqueName="InspectionCompleteDate" DataFormatString="{0:d}" ItemStyle-Width="200px" />
</Columns>
<EditFormSettings>
<EditColumn ButtonType="ImageButton" />
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSourceTravelerMain" runat="server" ConnectionString="<%$ ConnectionStrings:SetoutsConnectionString %>"
SelectCommand="sp_GetTravelerMainRecords" SelectCommandType="StoredProcedure" CancelSelectOnNullParameter="False">
<SelectParameters>
<asp:ControlParameter ControlID="tbProdOrderNumberSearch" Name="PONumber" PropertyName="Text" Type="String" DefaultValue="" />
<asp:ControlParameter ControlID="tbSalesOrderNumberSearch" Name="SONumber" PropertyName="Text" Type="String" DefaultValue="" />
<asp:ControlParameter ControlID="rdpStartDateSearch" Name="StartDate" PropertyName="SelectedDate" Type="DateTime" DefaultValue="" />
<asp:ControlParameter ControlID="rdpEndDateSearch" Name="EndDate" PropertyName="SelectedDate" Type="DateTime" DefaultValue="" />
<asp:ControlParameter ControlID="rblIsPTS" Name="IsPTS" PropertyName="SelectedValue" Type="Int32" />
<asp:ControlParameter ControlID="rblHasIssue" Name="HasIssue" PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSourceTravelerSub" runat="server" ConnectionString="<%$ ConnectionStrings:SetoutsConnectionString %>"
SelectCommand="sp_GetTravelerSubRecords" SelectCommandType="StoredProcedure"
UpdateCommand="sp_UpdateTravelerSubRecord" UpdateCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter Name="ProdOrder" />
</SelectParameters>
</asp:SqlDataSource>
Is the response in the following thread still valid given that it's 5 years old now?
http://www.telerik.com/forums/tab-getting-cut-off-on-multi-row