Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
44 views

I'm creating a graph with multiple LineSeries - the X axis is of DateType.  There are only a few dates (right now I'm testing with 4: 01/01/2013, 01/01/2014, 01/01/2015, 01/01/2016).  If I have 8 series - the graph will render but if my number of series is higher (say 20) - it will crash on both Chrome and IE.

If I keep my high number of series and now limit my date range to within a single year but have many dates (say I partition that year by month into 12 DateTime items on the X axis) - it renders correctly and quickly.  This doesn't seem to make sense as there is more data here!

I'm creating binding a DataTable where I create a new column per series.  Appreciate some advice on what might be causing this and how to resolve it - thanks.

Stamo Gochev
Telerik team
 answered on 04 Aug 2016
9 answers
1.4K+ views
Hello,
I need to set some radgrid cell values client-side, via javascript.  Then at postback I need to access those values.  Currently I'm setting the cell's innerHTML property, which displays correctly in the grid.  However, at postback all the cell values revert to " ".  At postback, I am not re-binding the grid.  
Thanks!
-rusty

Here's how I set values on the client-side:

// For all selected rows, set the cell value.
function rgSetSelectedRowValue(rg, columnName, val) {
    var table = rg.get_masterTableView();
    var selectedRows = table.get_selectedItems();
    for (var i = 0; i < selectedRows.length; i++) {
        var row = selectedRows[i];
        var cell = table.getCellByColumnUniqueName(row, columnName);
        cell.innerHTML = val;
    }
}

Here's how I access values server-side:

// loop on grid rows
foreach (GridDataItem item in RadGrid1.MasterTableView.Items) {
string foo = item["ReplacementID"].Text;
string bar = item["comment"].Text;
...
}




satish
Top achievements
Rank 1
 answered on 04 Aug 2016
3 answers
74 views

with 2016 Q2

 

Standard radeditor with  AutoResizeHeight="True" and no content >> open image manager >> cancel image manager >> F5 page

 

Radeditor keeps growing on every F5

 

Marc

Vessy
Telerik team
 answered on 04 Aug 2016
1 answer
196 views

Hi there,

I am using RadHtmlChart control to display the absenteeism of several production plants on a daily basis. To accomplish this I am using the line series and each plant has a line series <telerik:LineSeries> of its own.

I was able to do this part successfully. See Image 1. 

Now each production plant has many departments and each department has many designations. 

What I want to do is when I click on a particular plant (when I select a particular line) I should be able to get the department level details belonging to that particular plant I selected.

Same goes for the getting the designations of a selected department (within the plant I selected) when I drill down furthermore.

Have followed the example mentioned here : http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultcs.aspx

This is for a column chart and it doesn't show me how I can identify the selected trend line.

string seriesName = RadHtmlChart1.PlotArea.Series[0].Name; 

Instead of getting the name of the LineSeries at the 0th Index, I want the name of the selected LineSeries.

Please help.

Danail Vasilev
Telerik team
 answered on 04 Aug 2016
3 answers
503 views

Hi I have a file browser and works great.

I am now trying to select a folder and store all the files from that directory in an array with out actually opening the folder.

 

I currently do a check to see if its a directory or file. 

 

 var selectedItems = $find("RadFileExplorer1").get_selectedItems();         

            for (var i = 0; i < selectedItems.length; i++)
            {
                var dir = selectedItems[i].isDirectory();
                if (dir == true)
                {
                }
                else if (dir == false)
                {

                }

           I am just  stuck how to get the directory file list without opening the folder. My overall goal is to be able to store a whole folder structure.

any help would be appreciated,

Vessy
Telerik team
 answered on 04 Aug 2016
1 answer
167 views

Hi I am trying to select a folder programmatically. 

 

What i wish to do is select a folder and then store all sub folders into an array.

The only way I can see this working is looking through all the contents of a folder and do a check to see if it is a folder and if its a file ignore else store in an array.

Once i have all the folders i then want to set the current folder to an element in the array and loop through the contents and store it for all the folders found.

 

Mark

Vessy
Telerik team
 answered on 04 Aug 2016
1 answer
738 views

Dear Team,

I am using below function to export to grid to Excel.

  RadGrid1.MasterTableView.ExportToExcel();

But i have to customize the exported excel file with some text box values and drop down values above rad grid data. Please find attached required exported excel file for more clarification.

Kindly let me know how this can be achieved.

Thank you.

 

 

Viktor Tachev
Telerik team
 answered on 04 Aug 2016
1 answer
76 views

Hello,

I use Excel-like filtering with pretty much a good experience.
Also, I have an issue when string value has ' AND ' in it.
I get a System.Data.EntitySqlException.
RadGrid FilterExpression is computed to "(())" (string).
Are you able to reproduce this issue ?
Is there other special chars and reserved words I should care about ?

Much regards,

ANI

Pavlina
Telerik team
 answered on 04 Aug 2016
1 answer
48 views

like 1/4, 2/4, 3/4, 4/4?

Thanks

Danail Vasilev
Telerik team
 answered on 04 Aug 2016
1 answer
145 views

Hi ,

Am using the Detailed Tables in in Rad grid, I need to achieve the freeze columns and horizontal scrolling in rad grid and detailed tables, am not able to achieve the freeze columns and horizontal scrolling in detailed tables, the column in rad grid scrolls and freezes but in the detailed table doesn't. Please let me know solution if there is possibility to achieve this.

Pavlina
Telerik team
 answered on 04 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?