Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
297 views
Is there a way to remove all of the built in styles applied to a RadLinkButton? (ie: CSS Classes: "RadButton", "RadButton_Default", "rbLinkButton")


Thanks. 
Bozhidar
Telerik team
 answered on 21 Dec 2011
2 answers
67 views
I'm having issues with two things, anyone know how to fix these?

My headers are links because they are sortable in the grid. How do you make it so they aren't links in Excel? Also when I add the image it overlaps the data exported, it there a way to push the data down?


Thanks! 
Daniel
Telerik team
 answered on 21 Dec 2011
4 answers
126 views
Hi,
I try to export radgrid to excel with RadGrid1.MasterTableView.ExportToExcel(). I am using MS office 2010.There is a weird thing in excel file. The time format of some rows are AM/PM and others are not (24 hours). In the radgrid, all rows are AM/PM format and are displayed correctly. But why in the exported excel file, some rows are not AM/PM? Thanks.
york
Top achievements
Rank 1
 answered on 21 Dec 2011
1 answer
101 views
Do you have an example on how to use radupload or a fileupload inside a RadPanelBar/ RadPanelItem.

I need to get the filename uploaded using Radupload on server side code...

Thanks.
Princy
Top achievements
Rank 2
 answered on 21 Dec 2011
4 answers
141 views
Hi,
I try to export radgrid to excel with RadGrid1.MasterTableView.ExportToExcel(). I am using MS office 2010. Before excel is opened, it always popups a warning that says the file format is not correct. It seems that ExportToExcel() creates a .xls file, while excel 2010 default is .xlsx file. I wonder if there is way for ExportToExcel() to generate a .xls file. Thanks.
york
Top achievements
Rank 1
 answered on 21 Dec 2011
3 answers
132 views
I am exporting to Excel from radGrid and three different things I can not figure out. And I was hoping someone had some insight.

1. I want to style the headers of the columns, how do you do this?
2. I want to put an image in the top left of the Excel sheet, is this possible?
3. I want to show grid lines in the Excel instead of a white background. But only in Excel not the grid.

I'm able to get the normal data styled using this:

protected void RadGrid1_ExportCellFormatting(object sender, ExportCellFormattingEventArgs e)
{
 GridDataItem item1 = e.Cell.Parent as GridDataItem;
 if (e.FormattedColumn.UniqueName == "UniqueName")
 {
   TableCell cell = item["UniqueName"];
   cell.Style["background-color"] = "Red";
 }
}

Thanks for any help, I'm pretty stuck.
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Dec 2011
9 answers
244 views
I am trying to reproduce the functionality as posted in the article below for an older version of the controls. I am using VB for this project and not C#, but was able to convert the code since I know both languages. However I suspect that the problem is with the actual responsescript. I have spent two days working on this solution, your assistance is appreciated. I am using RadControls for ASPNET AJAX Q3 2008

http://www.telerik.com/community/forums/aspnet/grid/two-depended-combobox-in-template-form.aspx

I am unable to use responsescripts for the grid, and have used the AjaxPanel to add the responsescripts as suggested in some articles I have read. The responsescripts get added to the panel (I have stepped through the code and know the lines are executing), but the javascript call to the firstcombo, secondcombo throws and error, firstcombo is undefined, when the page loads. I made modifications to the responsescript replacing window with $find as below:

 

Dim responseScript As String = String.Format("var secondCombo = $find['{0}'];var firstCombo = $find['{1}'];SecondComboInitialize();", e.Item.FindControl("cboActiveNormDoc").ClientID, e.Item.FindControl("cboNormDocStatus").ClientID)

 

Shinu
Top achievements
Rank 2
 answered on 21 Dec 2011
1 answer
416 views
I'm new to the grid so please bear with me. I've got a GridTemplateColumn which I'm using to display an image.
<telerik:GridTemplateColumn HeaderText="Address" UniqueName="Address" ItemStyle-Width="20">
    <ItemTemplate>
        <a href='<%# Eval("Address") %>' title='<%# Eval("Address") %>'><img src="images/go.gif" border="0" width="33"></a>
    </ItemTemplate>
</telerik:GridTemplateColumn >
This shouldn't be visible if the data is empty, so in the ItemDataBound method, I did
Dim item As GridDataItem = CType(e.Item, GridDataItem)
If condition Then
    item("Address").Controls(0).Visible = False
End If
And this worked just fine under FireFox. But with IE8, it doesn't. Instead, I had to move this to the PreRender method where I had to iterate through the items with the same logic to get it to work. And this approach also works fine under FireFox too, so that's good.

But since I'm new to the grid, I'm wondering, is there a "correct" or recommended place to do this kind of logic? I initially went with the ItemDataBound because that's where similar approaches that I'd found (e.g. here ) had done it. But that obviously didn't work for me with IE8.
Shinu
Top achievements
Rank 2
 answered on 21 Dec 2011
2 answers
314 views
Hi,

I created a RadGrid control on the page and it has one GridCheckBoxColumn bind to a boolean field value in the database. I found that it looks too grayed-out in regular mode (in which the checkbox is disabled). Is there anyway to make it look more readable like in Edit Mode (in which the checkbbox is enabled).

Thanks

Lamk.
LamKhoa
Top achievements
Rank 1
 answered on 21 Dec 2011
1 answer
105 views
How can I change the expand collapse image from the default plus/minus?
Princy
Top achievements
Rank 2
 answered on 21 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?