Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
I currently am using Visual studio 2010 and connecting to the Telerik tool on my computer by using the file location of:
C:\Program Files (x86)\Progress\Telerik UI for ASP.NET AJAX R1 2018. Here I connect to the folder called Bin40 to connect to the UI for asp.net  ajax. 
I see that I could connect to the folder called Bin45 if I want to use Visual Studio 2012. 
However, I would like to upgrade my application to using a newer version of Visual Studio 2012.
Thus if I want to use a newer version of Visual Studio, what versions can I use? Also if I use a newer version of Visual Studio, how would I connect to a newer compatible version of the Telerik tool? Would I need a new download file? If not, where in the directory path would I connect the newer version of Visual studio to the Telerik tool to?
Marin Bratanov
Telerik team
 answered on 23 Aug 2018
2 answers
244 views

I currently am using Visual studio 2010 and connecting to the Telerik tool on my computer by using the file location of:

C:\Program Files (x86)\Progress\Telerik UI for ASP.NET AJAX R1 2018. Here I connect to the folder called Bin40 to connect to the UI for asp.net  ajax. 

I see that I could connect to the folder called Bin45 if I want to use Visual Studio 2012. 

However, I would like to upgrade my application to using a newer version of Visual Studio 2012.

Thus if I want to use a newer version of Visual Studio, what versions can I use? Also if I use a newer version of Visual Studio, how would I connect to a newer compatible version of the Telerik tool? Would I need a new download file? If not, where in the directory path would I connect the newer version of Visual studio to the Telerik tool to?

 

 

Marin Bratanov
Telerik team
 answered on 23 Aug 2018
1 answer
72 views

Hello

 

When I zoom into my html chart by drawing a box, is there a property that I can use to get the zoom levels? 

In other words, let's say I zoomed into the graph by drawing a box, but I needed to do something else on the graph so I needed to post-back, graph is rebuilt but unzoomed. I need to be able to get the previous zoom levels so that I can recover the zoom. 

 

Thanks !

 

 

Thanks.

Marin Bratanov
Telerik team
 answered on 23 Aug 2018
1 answer
183 views

Hi, I have a date valued x-axis for my radhtmlchart and 2 additional yaxis programmed which are by default aligned to left side.

I am trying to position those additional y-axis to right side of the chart through "axis crossing points", but i am not able to do so. 

Here is my code:

objRadChart.ID = "radChart";
            objRadChart.Width = 800;
            objRadChart.Height = 650;
            objRadChart.ChartTitle.Text = DreamConstants.OACLEENERGY_WELLPERCOMPL + UWBI + " ," + WellZone;
            objRadChart.Zoom.Enabled = true;
            objRadChart.Zoom.MouseWheel.Enabled = true;
            objRadChart.Zoom.Selection.Enabled = true;
            objRadChart.Zoom.Selection.ModifierKey = Telerik.Web.UI.HtmlChart.ModifierKey.Shift;
            objRadChart.Zoom.MouseWheel.Lock = Telerik.Web.UI.HtmlChart.AxisLock.Y;
            objRadChart.Pan.Enabled = true;
            objRadChart.Legend.Appearance.Position = Telerik.Web.UI.HtmlChart.ChartLegendPosition.Bottom;
            objRadChart.Legend.Appearance.Visible = true;
            objRadChart.Legend.Appearance.BackgroundColor = Color.Transparent;

            objRadChart.PlotArea.XAxis.Name = DreamConstants.MONTH;
            objRadChart.PlotArea.YAxis.Color = Color.Green;
            objRadChart.PlotArea.XAxis.BaseUnit = Telerik.Web.UI.HtmlChart.DateTimeBaseUnit.Days;
            objRadChart.PlotArea.XAxis.Type = Telerik.Web.UI.HtmlChart.AxisType.Date;
            objRadChart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "MMM yyyy";
            objRadChart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 45;
            objRadChart.PlotArea.XAxis.MaxDateValue = DateTime.Parse("01/Sep/2011");
            objRadChart.PlotArea.XAxis.TitleAppearance.Text = DreamConstants.MONTH; ;

            objRadChart.PlotArea.YAxis.Name = DreamConstants.OIL_BBLPERD;
            objRadChart.PlotArea.YAxis.MinValue = 0;
            objRadChart.PlotArea.YAxis.MaxValue = 14000;
            objRadChart.PlotArea.YAxis.TitleAppearance.Text = DreamConstants.OIL_BBLPERD;

            objRadChart.PlotArea.XAxis.AxisCrossingPoints.Add(0);
            objRadChart.PlotArea.XAxis.AxisCrossingPoints.Add(objDataRange.Rows.Count);
            AxisY yAxisGasMFC = new AxisY();
            yAxisGasMFC.Name = DreamConstants.GAS_MCFPERD;
            yAxisGasMFC.TitleAppearance.Text = DreamConstants.GAS_MCFPERD;
            yAxisGasMFC.TitleAppearance.TextStyle.Color = Color.Red;
            yAxisGasMFC.MinValue = 0;
            yAxisGasMFC.MaxValue = 18000;
            objRadChart.PlotArea.AdditionalYAxes.Add(yAxisGasMFC);

            objRadChart.PlotArea.XAxis.AxisCrossingPoints.Add(0);
            objRadChart.PlotArea.XAxis.AxisCrossingPoints.Add(objDataRange.Rows.Count);
            AxisY yAxisGOR = new AxisY();
            yAxisGOR.TitleAppearance.Text = DreamConstants.GOR;
            yAxisGOR.Name = DreamConstants.GOR;
            yAxisGOR.MinValue = 0;
            yAxisGOR.MaxValue = 2000;
            objRadChart.PlotArea.AdditionalYAxes.Add(yAxisGOR);

            //Data ops
            objDataRange = objDotNetResponseHandler.GetResponseRange();
            DataView objDataView = objDataRange.DefaultView;
            objDataView.Sort = DreamConstants.MONTH_ASC;

            ScatterLineSeries sls1 = new ScatterLineSeries();
            sls1.DataFieldX = "Month";
            sls1.DataFieldY = "Gas";
            sls1.AxisName = DreamConstants.GAS_MCFPERD;
            sls1.LabelsAppearance.Visible = false;
            sls1.Appearance.FillStyle.BackgroundColor = Color.Red;
            sls1.Name = "Gas";
            objRadChart.PlotArea.Series.Add(sls1);
            
            ScatterLineSeries sls2 = new ScatterLineSeries();
            sls2.DataFieldX = "Month";
            sls2.DataFieldY = "Oil";
            sls2.LabelsAppearance.Visible = false;
            sls2.Appearance.FillStyle.BackgroundColor = Color.Green;
            sls2.Name = "Oil";
            objRadChart.PlotArea.Series.Add(sls2);            

            ScatterLineSeries sls3 = new ScatterLineSeries();
            sls3.DataFieldX = "Month";
            sls3.DataFieldY = "GOR";
            sls3.AxisName = DreamConstants.GOR;
            sls3.LabelsAppearance.Visible = false;
            sls3.Appearance.FillStyle.BackgroundColor = Color.Blue;
            sls3.LineAppearance.Width = 0;
            sls3.MarkersAppearance.MarkersType = Telerik.Web.UI.HtmlChart.MarkersType.Cross;
            sls3.Name = "Gor";
            objRadChart.PlotArea.Series.Add(sls3);

            ScatterLineSeries sls4 = new ScatterLineSeries();
            sls4.DataFieldX = "Month";
            sls4.DataFieldY = "Water";
            sls4.LabelsAppearance.Visible = false;
            sls4.Appearance.FillStyle.BackgroundColor = Color.Purple;
            sls4.Name = "Water";
            objRadChart.PlotArea.Series.Add(sls4);

            ScatterLineSeries sls5 = new ScatterLineSeries();
            sls5.DataFieldX = "Month";
            sls5.DataFieldY = "WaterCut";
            sls5.LabelsAppearance.Visible = false;
            sls5.Appearance.FillStyle.BackgroundColor = Color.Magenta;
            sls5.Name = "Water Cut";
            objRadChart.PlotArea.Series.Add(sls5);

            objRadChart.DataSource = objDataView.ToTable();
            objRadChart.DataBind();

Any sort of help is appreciated. 

Thanks in advance.

 

 

Marin Bratanov
Telerik team
 answered on 23 Aug 2018
1 answer
192 views

Rad grid with auto generated columns true is in edit mode batch, when click save change, data is lost. 

Datasource Rad grid is datatable programatically. 

Marin Bratanov
Telerik team
 answered on 23 Aug 2018
11 answers
783 views
I wonder how easy to apply Bootstrap 3 styling with glyphicons or fontawesome icons in radButton?
The straightforward approach does not work

<telerik:RadButton ID="RadButton2" runat="server" CssClass="btn btn-primary" Text="BS button" ></telerik:RadButton>
Vasssek
Top achievements
Rank 1
 answered on 23 Aug 2018
1 answer
276 views

I have a grid with filter templates looking like this:

 <FilterTemplate>
                        <telerik:RadComboBox ID="ddCategory3" runat="server" DropDownAutoWidth="Enabled"
                            AppendDataBoundItems="true" CausesValidation="false"
                            DataTextField="Category" DataValueField="Category"
                           DataSourceID="dsCategory" SelectedValue='<%#  TryCast(Container, GridItem).OwnerTableView.GetColumn("Category").CurrentFilterValue %>' OnClientSelectedIndexChanged="Category">
                            <Items>
                                <telerik:RadComboBoxItem Text="All" />
                            </Items>
                        </telerik:RadComboBox>
                        <telerik:RadScriptBlock ID="RadScriptBlockCategory" runat="server">
                            <script type="text/javascript">
                                function Category(sender, args) {
                                    var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
                                    tableView.filter("Category", args.get_item().get_value(), "EqualTo");
                                }
                            </script>
                        </telerik:RadScriptBlock>
                    </FilterTemplate>

If I have just one item with value "ABC" in column "Category"  and I filter my grid by that column and value, I will receive just one item. My grid has delete functionality. If I try to delete this item, I am getting error "Selection is out of range." after the item is deleted. I figured out, that it is because my combobox data source contains distinct values for this column. When I delete last Item with value "ABC" combobox rebinds and doesn't have item ABC anymore, but current filter value is still ABC, so it fails.

I try to solve it by removing  SelectedValue='<%#  TryCast(Container, GridItem).OwnerTableView.GetColumn("Category").CurrentFilterValue %>'  and adding ondatabound function, where I check if current value exists  in item collection. I exists, I  set set selected value as current filter value.  Otherwise I set selection to ALL  and clear the filter . It is all works fine if I only  have filter for that one column. But I have multiple columns and ideally I would prefer not to clear  FilterExpression completely, but just remove a portion that represents this column  filter. It there any easy solution for that other then parsing the Filter expression manually?  Or may be my approach to solving the issue is not the best one? I am open to suggestions.

Attila Antal
Telerik team
 answered on 23 Aug 2018
2 answers
424 views

Hi

I have a pre-built restful webapi service that has the following method

[Route("list/openquotes"), HttpGet]
public HttpResponseMessage ListOpenQuotes()

 

when i try use it in a RadGrid, the default behaviour seems to be using the POST request method.

Is there a way to force the gird use use a HTTP GET instead?

This is the setup for the Grid

<ClientSettings >
    <DataBinding Location="SetByCode" SelectMethod="ui/list/openquotes" EnableCaching="false" ResponseType="JSON" CountPropertyName="Count" DataPropertyName="Data" />
</ClientSettings>

 

I have a RadListVIew that is using HTTP GET as follows:

<DataService Location="SetByCode" DataPath="/ui/list/notifications" EnableCaching="false" ResponseType="JSON" HttpMethod="Get" CountPropertyName="Count" DataPropertyName="Data" SortParameterType="List" />
Jason
Top achievements
Rank 1
 answered on 23 Aug 2018
1 answer
489 views

Hello Team,

is there any property to which could help me set the hide the expand/collapse icon of my rad pivot grid. 

Note: am setting my rows and column field using server side code. ex:

 PivotGridColumnField columnField = new PivotGridColumnField();
                columnField.DataField = name;
                columnField.UniqueName = name;
                RadPivotGrid1.Fields.Add(columnField);

 

refer attachment for pivot grid.

Thanks,

Mohan Pal.

Attila Antal
Telerik team
 answered on 23 Aug 2018
0 answers
86 views

I have a RadDropDownList in my RadGrid ,which editmode is FormTemplate. When I change RadDropDownList it work good in insert mode but in edit mode it got InvalidCastException = "Unable to cast object of type 'Telerik.Web.UI.GridEditFormItem' to type 'Telerik.Web.UI.GridEditFormInsertItem'."

 

protected void TransactionTypeTextBox_SelectedIndexChanged(object sender, DropDownListEventArgs e)
      {
 
          RadDropDownList dropdownlist1 = (RadDropDownList)sender;
          GridEditFormInsertItem item = (GridEditFormInsertItem)dropdownlist1.NamingContainer;
          Panel Panel1 = (Panel)item.FindControl("Panel1");
          if (dropdownlist1.SelectedItem.Text == "Cheque")
          {
              Panel1.Visible = true;
          }
          else if (dropdownlist1.SelectedItem.Text == "Cash")
          {
              Panel1.Visible = false;
          }
      }
SURYA
Top achievements
Rank 2
 asked on 22 Aug 2018
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?