or
InitialDelayTime
="0"
MinDisplayTime="500"

| <?xml version="1.0" standalone="yes"?> |
| <DocumentElement> |
| <CoordsInput> |
| <comuna>ECE</comuna> |
| <name>ECT023</name> |
| <xCoord>-29.90716572</xCoord> |
| <yCoord>-70.7073</yCoord> |
| </CoordsInput> |
| <CoordsInput> |
| <comuna>MAI</comuna> |
| <name>MAI001</name> |
| <xCoord>-33.56446522</xCoord> |
| <yCoord>-70.78931253</yCoord> |
| </CoordsInput> |
| </DocumentElement> |
Thanks
Imtiaz
<asp:button id="btnUpdate" text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>'></asp:button>
<asp:button id="btnInsert" text="Insert" runat="server" CommandName="PerformInsert" Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>'></asp:button>

| this.radRollingChart.AutoLayout = true; |
| this.radRollingChart.AutoTextWrap = true; |
| Telerik.Charting.ChartSeries peopleSeries = new Telerik.Charting.ChartSeries("People", Telerik.Charting.ChartSeriesType.Area); |
| this.radRollingChart.Series.Add(peopleSeries); |
| peopleSeries.PlotArea.XAxis.AutoScale = false; |
| int currentMonth = 0; |
| foreach (DataRow row in traffic.Rows) |
| { |
| DateTime ddate = (DateTime)row["ddate"]; |
| if (ddate.Month != currentMonth) |
| { |
| string date = ddate.ToString("MMM dd yyyy"); |
| this.radRollingChart.PlotArea.XAxis.AddItem(date); |
| currentMonth = ddate.Month; |
| } |
| else |
| this.radRollingChart.PlotArea.XAxis.AddItem(""); |
| peopleSeries.AddItem((int)row["Count"]); |
| } |
I'm binding an Rad menu to two data tables. The code below is working but I can't get rid of the root node generated by the code. Any ideas?, Or is there a better approach?
Return XML ..
| public static string GetMenuItemsFromSQL() |
| { |
| string xml = string.Empty; |
| string queryString = @"SELECT Department.Name AS name, Department.DepartmentID AS id, |
| Department.Description AS desription, Category.Name AS name, |
| Category.CategoryID AS id |
| FROM Department AS department INNER JOIN |
| Category AS category ON department.DepartmentID = category.DepartmentID |
| ORDER BY department.DepartmentID |
| FOR XML Auto, ROOT('departments')"; |
| string connectionString = WebSiteConfiguration.DbConnectionString; |
| using (SqlConnection connection = new SqlConnection(connectionString)) |
| { |
| SqlCommand SelectCommand = new SqlCommand(queryString, connection); |
| connection.Open(); |
| XmlReader xr = SelectCommand.ExecuteXmlReader(); |
| xr.MoveToContent();// move to the root node |
| xml = xr.ReadOuterXml(); |
| } |
| return xml; |
| } |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| XmlDataSource1.Data = CatalogAccess.GetMenuItemsFromSQL(); |
| } |
| protected void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e) |
| { |
| if (e.Item.Level > 0)//set tooltip only for child items |
| { |
| XmlElement element = (XmlElement)e.Item.DataItem; |
| e.Item.Text = element.Attributes["name"].Value; |
| } |
| } |
| <telerik:RadMenu ID="RadMenu1" Runat="server" |
| EnableTheming="True" DataSourceID="XmlDataSource1" |
| onitemdatabound="RadMenu1_ItemDataBound" > |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </telerik:RadMenu> |
| <asp:XmlDataSource ID="XmlDataSource1" runat="server"></asp:XmlDataSource> |