Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
625 views
I'm struggling to set 100% height on a grid. I've seen many threads open on this subject and a few code samples too but they are all too simple.

The main issue is that there is a <div> element generated (usually has an id of the form ...._GridData) that has an inline style like this:

OVERFLOW: auto; WIDTH: 100%; HEIGHT: 10px 

and thus the content will always be in a 10 pixel high box. Even if I set the Height attribute of the grid to something fixed that div stays 10 pixel high and only the lower pager area grows in height so that the grid will respect the given height.

The question is why does that div has that hardcoded height? What would be the purpose of having such a default anyway?
Kiranmayee
Top achievements
Rank 1
 answered on 24 Aug 2018
1 answer
220 views

I am using a dropdownlist on a mobile browser, the page moves when i try to scroll through the items.

I can't use my finger to scroll. It's a long page.

<telerik:RadDropDownList ID="ddlState" runat="server" DropDownHeight="300" Width="260px" Skin="Silk" RenderMode="Lightweight">
 </telerik:RadDropDownList>

Marin Bratanov
Telerik team
 answered on 24 Aug 2018
4 answers
707 views
Hello,

I hope someone can help me out with the following problem.

I have a usercontrol with a ListView which I have bound to a list of productimages. There are 12 items in the listview and I have set the pagesize to 4. This means I have 4 pageindexes.
In another usercontrol I fire an event with should look up the productimage in the above listview. What I want is to lookup the item in the listview which matches the parameter I send from the second usercontrol. As long as the parameter matches an productimage which is present in the selected pageindex it works all fine. But how can I look into all the items that are bound to the Listview and then select that item and set the correct pageindex

For a demo you can look at http://roosjen.uitverkoopinnederland.nl/index.aspx?contentid=233
On the left hand you can click on [Bekijk productinfo] and on the right topside the corresponding productimage should be set.

Thanks in advance.

Kind regards Patrick
Vasssek
Top achievements
Rank 1
 answered on 24 Aug 2018
8 answers
1.0K+ views
Hi Telerik,

  I have a RadGrid and generated auto generate columns.
My scenario is, I would like to make a total of all columns in footer.
How can i calculate dynamically and assign into footer.
Pls.. Its very urgent


Regards,
Nirmal 
Attila Antal
Telerik team
 answered on 24 Aug 2018
3 answers
125 views
     RadCombobox not showing new selected value or item after postback it always showing item selected first time when page load.
Tsvetomir
Telerik team
 answered on 24 Aug 2018
2 answers
447 views
Hello, i have a GridTableView inside a GridTableView and i want to change the Column Header Text Dynamically (Server Side), the aspx is as follow:

<telerik:RadGrid ID="rgdProducts" runat="Server" AutoGenerateColumns="False" ...>
<MasterTableView Name="MasterTable" AutoGenerateColumns="True" ...>
<DetailTables>
    <telerik:GridTableView Name="NumDetailTable" AutoGenerateColumns="True" ...>
    <DetailTables>
        <telerik:GridTableView Name="UOMDetailTable" AutoGenerateColumns="False" ...>
        <Columns>
             <telerik:GridBoundColumn UniqueName="SortOrder" HeaderText="Sort Order">
        </Columns> 

Hope anyone can help me, Thanks.
Manuel Buendia
Top achievements
Rank 1
 answered on 23 Aug 2018
1 answer
124 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
306 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
117 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
232 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?