Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
1.0K+ views
In the folllowing help article: you indicated that:
Although the HTML Excel format doesn't show any grid lines in the worksheet, you can mimic them by adding the following style to the generated output:
body { border:solid 0.1pt #CCCCCC; }

but you never indicated where this code should be placed?
I was assuming it would be applied to some property related to the export, but could not figure out how to use it.

I ended up doing the following instead:

protected void RadGrid1_ExcelExportCellFormatting(object source, ExcelExportCellFormattingEventArgs e)
{
    GridDataItem item = e.Cell.Parent as GridDataItem;
    e.Cell.Style["border"] = "solid 0.1pt #000000";
}
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridHeaderItem && bIsExport)
    {
        GridHeaderItem item = e.Item as GridHeaderItem;
        item.Style["border"] = "solid 0.1pt #000000";
    }

which works, but the header row has a border on every cell in the entire workbook.
I only want borders on cells related to the output of the grid.
What is the best way to fix this?
Israel
Top achievements
Rank 1
 answered on 06 Jan 2015
4 answers
201 views
We generate most of our controls dynamically based on admin preferences in designing their input forms.  When we create the RadNumericTextBox control, the HTML that we generate it looks like this:

<telerik:RadNumericTextBox ID="txtMaskNumericExample" Runat="server" Width="250px" ShowButton="False" ShowSpinButtons="False" 
                    SkinID="OverrideRadDefaultSkinWithNonExistantSkin" Type="Currency" visible="false" SelectionOnFocus="None" /> 

However, when it's generated and displayed in the browser, the type is ignored and replaced with Type="text".  The view source for the control shows as follows:

<input id="ctl00_EPDetailBodyPlaceHolder_FieldProperties_txtMaskNumericExample" name="ctl00$EPDetailBodyPlaceHolder$FieldProperties$txtMaskNumericExample" class="riTextBox riEnabled" value="$14.20" type="text" /><input id="ctl00_EPDetailBodyPlaceHolder_FieldProperties_txtMaskNumericExample_ClientState" name="ctl00_EPDetailBodyPlaceHolder_FieldProperties_txtMaskNumericExample_ClientState" type="hidden" />

In order to see what the difference was between a dynamically generated control and a static control, I added the RadNumericTextBox directly to the page.  It looks like the second code block above, but appears as desired.  I put it on another page and again, it appears as the second code block above, but this time, it doesn't work as desired (e.g., Currency shows up as text).

What am I missing here?
Konstantin Dikov
Telerik team
 answered on 06 Jan 2015
1 answer
176 views
Hi,

We are working with the rad grid and we till now we are binding the data in a basic binding for historical reasons.
Now we want to change the behavior of the data binding, filtering and grouping to gain the best performance we can get from your grid.

We work with ado.net and mssql, and I wanted to know if there is an example for our needs that I can learn from it.
I don't care if it a client binding or server binding. but I need a paging and filtering and grouping that I will send the expression
(paging: startIndex,page size and so, filtering: expression and grouping: I don't how it's works behind the scene) to our stored procedure
and than I will get the results of the only page size.

10x.
Viktor Tachev
Telerik team
 answered on 06 Jan 2015
1 answer
242 views
Hi there,

I was wondering if you guys have an implementation of a timeline chart.  Something similar to the combination of a Range Bar Chart and a Stacked Bar Chart.

John
Danail Vasilev
Telerik team
 answered on 06 Jan 2015
1 answer
150 views
Hello,
We are running with an strange issue with RadGrid(Having EditForm Template) Filtering,
Current behavior
Grid rows are getting filtered down normally by an external filtering event like (Drop down, Search box etc),
So with this grid (having filtered data source bound to it) - when we try to Edit the row 

1. Rows NeedDataSource event is getting fired and entire grid is getting reset with original data source
2. Thus, the Edit row action gets resulted into Expanding the First row on default data source 

Expected behavior
 Ideally after filtering the rad grid rows, only the selected Row should be expand on click of Edit even after rebinding it.
 Any idea, how to handle this scenario?

Attach is the sample screens shows above behavior in action.
Steps to reproduce -
1. Filtered the Grid based on Product name Drop down (External filtering)
2. Once filtered, try to expand any row
3. It will result RadGrid Expanding the different row different than the filtered row which needs to be expanded.

You will notice in step 3 that Grid has all the rows again with default first row in expand state.

Thanks,
Chetan
Radoslav
Telerik team
 answered on 06 Jan 2015
2 answers
317 views
Hello Dears,

Could you please answer to my below questions :

    - How to customize the size of columns text in RadGantt chart as its mentionned in attachement ?
    - How to modify the langauge showing of the RadGantt chart (example : Add Task --> Ajouter Tâche) ?
    - How to change the caption of buttons in the same chart ?

Thank you in advance,
Zak
Bozhidar
Telerik team
 answered on 06 Jan 2015
2 answers
170 views
Following how most of the Telerik UI controls work how do I set the scale max value of a gauge control. I cant seem to get the syntax correct. I dont quite have a handle on how the Kendo stuff works yet and my javascript is lacking :( Using the below how do I access the scale object?


var radLinearGaugeObject = $find("ctl00_MainContent_RadPanelBar1_i0_i0_gaugeRunning");            
var gaugeRunning = radLinearGaugeObject.get_kendoWidget();
?

Thanks for the help,
Brian
Brian
Top achievements
Rank 1
 answered on 05 Jan 2015
1 answer
81 views
Is it possible to use the image editor and the file explorer together.

I want to be able to click an image in the file explorer and then edit the selected image in the image editor.  I have to say I have been struggling with this concept.  If someone could share some code or guide me to where this has already been done please do.

Thank you for your time

Simon
Vessy
Telerik team
 answered on 05 Jan 2015
1 answer
65 views
Hello,

when i paste some content from word in editor html tags are replaced with br.

eg as i paste this from word:

Some Text
Some Text
Some Text

.Vishy1
·Vishy2
·Vishy3

Some Text
Some Text
Some Text


1.vishy1
2.vishy2
3.vishy3

Some Text
Some Text
Some Text

It is converted as:


Some Text
Some Text
Some Text

Vishy1 (list replaced with  br)
Vishy2
Vishy3

Some Text
Some Text
Some Text

vishy1 (list replaced with  br)
vishy2
vishy3

Some Text
Some Text
Some Text

they all are inside a p tag

I want them to split by list tags as content before lists in a paragraph tag and content after lists in a paragraph tag.

Ianko
Telerik team
 answered on 05 Jan 2015
6 answers
290 views
I am just starting with the TreeList.
I have a button column and several boundColumns.
How do I get the value of a column on button click in the same row?

thanks
Felice
Konstantin Dikov
Telerik team
 answered on 05 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?