Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
112 views
I am trying to set up a grid with automatic crud operations and the date field is crashing my app.  Seems the date is getting entered as 00-00-0000 on update or insert.

Everything displays fine in the grid.

Any idea how to correct?
Andrey
Telerik team
 answered on 01 Oct 2012
1 answer
99 views
I'm a little stuck trying to figure out the best way to do this.

Scenario: Using the TreeView to allow a user to create, edit, and sort menu items. It's going to allow an end user to build the menu of their web site.

The data table is simple, an ID, Parent ID, Display Text, and a Sort column (Int).

I am connecting the data table to a LinqDataSource which is then attached to the TreeView. I have the data source ordering by the sort column.

I have everything set up to allow drag and drop and I'm using the NodeDrop event to handle the dragging and dropping of nodes. However, I'm running into a problem trying to get to the data in the Node. I need to access the Sort column of that row so I can resort the list. DataItem is null, which the documentation says it will be and to use custom properties or the value property. I don't use Value for anything, but even if I saved the ID to that, I would still need the sort property. Plus, since the data source orders by the sort column, I wouldn't be able to just put the sort column in as a custom property as that won't properly sort the list.

Is there a way to get and change the underlying data that is attached to that node?
Plamen
Telerik team
 answered on 01 Oct 2012
1 answer
88 views
I am getting Access Denied on the following line of code, within the Telerik.Web.UI.WebResource.axd file only when using IE
    g=e.screenLeft-top.screenLeft-top.document.documentElement.scrollLeft+2

My site is hosted in an IFrame, the main site is https://www.somesite.com/page.aspx this hosts an IFrame which points to my pages at https://www.mysite.com/default.aspx 

I have tride some of the solutions here but none of them seem to make any difference. One post had an answer that there is no solution for this issue, as i think this is a cross domain issue is that still the case?

Julian
Tsvetina
Telerik team
 answered on 01 Oct 2012
1 answer
106 views

I want to display Line Chart Programmatically. I do not want to display anything on X-Axis. I want to display some integer values on Y-Axis. By using the below code Line chart is getting displayed but some series are not fully getting displayed.

I am using dataTable (dt) to bind the chart.
Below are the two different approaches.

With first approach, i am getting the series in chart, but which is not using full length of x-axis irrespective of series item data for each series.

With second approach, i am not able to view the series in the chart. In order to resolve the issue with first approach, i also tried this second approach.

if (dt != null && dt.Rows.Count > 0)
{
    //First approach STARTS
    RadChartBiddingLineGraph.DefaultType = Telerik.Charting.ChartSeriesType.Line;
    RadChartBiddingLineGraph.PlotArea.YAxis.AutoScale = false;
    RadChartBiddingLineGraph.PlotArea.YAxis.AddRange(Convert.ToInt32(dt.Rows[0][3]), Convert.ToInt32(dt.Rows[0][4]), 10);
    RadChartBiddingLineGraph.DataGroupColumn = "Hotel";
    RadChartBiddingLineGraph.DataManager.ValuesYColumns = new String[] { "RateValue" };
    RadChartBiddingLineGraph.DataSource = dt;
    RadChartBiddingLineGraph.DataBind();
    foreach (Telerik.Charting.ChartSeries series in RadChartBiddingLineGraph.Series)
    {
        series.Appearance.LabelAppearance.Visible = false;
        RadChartBiddingLineGraph.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false;
    }
    //First approach ENDS
 
 
    //Second approach STARTS
    DataTable dt2 = new DataTable();
    // Get the distinct records. HERE dt1 is the table in which there are all records(which are retrieved from SP)
    dt2 = dt.DefaultView.ToTable(true, dt.Columns[0].ColumnName);
    int s = 0;
    RadChartBiddingLineGraph.PlotArea.YAxis.AutoScale = false;
    RadChartBiddingLineGraph.PlotArea.YAxis.AddRange(120, 185, 5);
    foreach (DataRow item in dt2.Rows) //dt2 is the datatable in if have now distinct AuctionInviteIDs
    {
        //just get the data on basis of AuctionInviteId
        //if want the result in datatable
        DataTable dtFilteredTable = (from a in dt.AsEnumerable()
                                     where a.Field<Int32>("AuctionInviteID").Equals(item["AuctionInviteID"])
                                     select a).CopyToDataTable();
        ChartSeries chartSeries = new ChartSeries();
        chartSeries.Name = s.ToString();
        RadChartBiddingLineGraph.AddChartSeries(chartSeries);
        chartSeries.Type = ChartSeriesType.Line;
 
        foreach (DataRow item2 in dtFilteredTable.Rows)
        {
            chartSeries.AddItem(Convert.ToInt32(item2["RateValue"]));
            //RadChartBiddingLineGraph.Series[s].AddItem(Convert.ToInt32(item2["RateValue"]));
        }                                       
        RadChartBiddingLineGraph.Series.Add(chartSeries);
        s = s + 1;                                   
    }
    RadChartBiddingLineGraph.DataGroupColumn = "Hotel";
    RadChartBiddingLineGraph.DataSource = dt;
    RadChartBiddingLineGraph.DataBind();
 
    foreach (Telerik.Charting.ChartSeries series in RadChartBiddingLineGraph.Series)
    {
        series.Appearance.LabelAppearance.Visible = false;
        RadChartBiddingLineGraph.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false;
    }
    //Second approach ENDS
 
}

With first approach, i am getting the graph "Result.jpg" as in the attachment, which is not using the full length of x-axis for each series.
I need the graph to be displayed as in "Approach-1.jpg" attachment, which uses the full length of x-axis for each series.

Your help would be appreciated.

Peshito
Telerik team
 answered on 01 Oct 2012
4 answers
70 views
I am looking for some way to display a progress bar for a survey.  The progress would increase with each question completed.  I see a RadProgressArea tool in the list but I can't figure out how to use it for this purpose.  Any suggestion to point me in the right direction would be greatly appreciated.
Peter Filipov
Telerik team
 answered on 01 Oct 2012
1 answer
155 views
Hi, I have a problem when I try to use the radwindow (confirm or alert) with javascript, please help me!

Here is my code:

function ShowOverCash() {
  var strOver = "";
  strOver = $("#<%=hdMsg.ClientID%>").attr("innerHTML");
  //alert(strOver);
  //var oConfirm = radconfirm(strSobreGiro, "aprSobreGiro", 700, 350, null, "La solicitud presenta Sobregiro");
 
  var oConfirm = radalert("hello", "aprSobreGiro");
}
 
function aprSobreGiro(arg) { 
  alert(arg);
  return false;
}

I have commented thr original code for test, but doesn't work.

when the program call the function ShowOverCash, fire a Error like this:
 Microsoft JScript runtime Error: can´t get the property value from '_visibilityMode': the object is undefined or null 

Marin Bratanov
Telerik team
 answered on 01 Oct 2012
3 answers
222 views
I need to add GridHeaderItem just like the way it is done in this link with the GridView
http://csharpdotnetfreak.blogspot.com/2008/11/merging-gridview-headers-to-have.html

Here's the part of the code from the link:
protected void grvMergeHeader_RowCreated
(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Header)
{
    GridView HeaderGrid = (GridView)sender;
    GridViewRow HeaderGridRow =
    new GridViewRow(0, 0, DataControlRowType.Header,
    DataControlRowState.Insert);
    TableCell HeaderCell = new TableCell();
    HeaderCell.Text = "Department";
    HeaderCell.ColumnSpan = 2;
    HeaderGridRow.Cells.Add(HeaderCell);

    HeaderCell = new TableCell();
    HeaderCell.Text = "Employee";
    HeaderCell.ColumnSpan = 2;
    HeaderGridRow.Cells.Add(HeaderCell);

    grvMergeHeader.Controls[0].Controls.AddAt
    (0, HeaderGridRow);

}
}

I tried on my own up to this point but with no sucess. MyRadGrid is the name of the RadGrid.

 

 

protected

void RollUpDataRadGrid_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridHeaderItem)

 

{

 

RadGrid HeaderGrid = (RadGrid)sender;

 

 

GridHeaderItem headerItem = new GridHeaderItem(MyRadGrid.MasterTableView, 0, 0);

 

 

TableCell headerCell = new TableCell();

 

headerCell.Text =

"Department";

 

headerCell.ColumnSpan = 2;

headerItem.Cells.Add(headerCell);

headerCell =

new TableCell();

 

headerCell.Text =

"Employee";

 

headerCell.ColumnSpan = 2;

headerItem.Cells.Add(headerCell);

MyRadGrid.Controls[0].Controls.AddAt(0, headerItem);

}

}

 

 

 

 

I will appreciate if anyone has some inputs to it.

Thanks,
Raju
Tsvetoslav
Telerik team
 answered on 01 Oct 2012
6 answers
464 views
I have a fixed position div that is always at the bottom of my page.  Inside that is a RadComboBox with around 30 items.  Sometimes it expands upwards, sometimes it expands downwards and so out of view and unusable. 

How can I force the RadComboBox to always expand upwards?

Thanks.
Vivek
Top achievements
Rank 1
 answered on 01 Oct 2012
1 answer
54 views
Hi,
I need create chart with possibiliti to display pictures below x-axis line in 2 (or more) rows. In sample picture you can see 2 rows 'act' and 'fcst'. The pictures should be displayed for each hour depends on data .
Is it possible in RadChart (or any different Telerik charts?)
Regards.
Leszek
Vladimir Milev
Telerik team
 answered on 01 Oct 2012
4 answers
455 views
I am Fresher and also very new to telerik,so
Is their any good site or tutorial to learn telerik control self from basic
Thank U
Kate
Telerik team
 answered on 01 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?