Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
427 views
Hi,

I've been working with the RadGrid and exporttoexcel().  Originally, I didn't like the warning about the file format and extensions don't match message so I tried using biff file format instead and got the error attached.
I noticed there was another thread on this issue here.  I ran the code provided and was not able to reproduce the file corruption error.

Any insight as to why I am getting corrupted files would be great,

Thanks,
Ian
Kostadin
Telerik team
 answered on 03 Jul 2013
1 answer
220 views
Hi,

I am following this article:

http://www.telerik.com/community/code-library/aspnet-ajax/html-chart/exporting-radhtmlchart-to-png-and-pdf.aspx

To export my radhtmlchart to PDF. The problem is that I am hiding the RadHtmlChart Legend and displaying my own custom legend. When I export the chart I see the chart in PDF but no legend (understandbly because I am hiding the legend).

I believe that a possible solution could be that I make the Legend visible, then generate the SVG text, then hide the legend. Is this possible? Can you suggest a work around?
Stamo Gochev
Telerik team
 answered on 03 Jul 2013
3 answers
88 views
Hi All,
I have updated my telerik controls after updating I am experiencing strange behavior in RadGrid's showColumn & hideColumn functionality.

when I have changed my Browser Mode to IE8 and Document Mode: Quirks (using F12 in IE8 browser) showColumn & hideColumn are not working as expected.

Can any one help in this? Thanks in advance.
Milena
Telerik team
 answered on 03 Jul 2013
1 answer
357 views

Hi,
I have a column StartDate type Datetime. But when i click on column header for sorting it is not sorting properly in acs or desc. it is showing sorting only on month part of date
Like
08/21/2012
07/21/2014
06/26/2013
06/26/2013
It is in descending order but it is wrong.

<telerik:GridBoundColumn DataField="StartDate" HeaderText="Start Date" SortExpression="StartDate" DataType="System.DateTime"
UniqueName="StartDate"DataFormatString="{0:MM/dd/yyyy}" ReadOnly="true"
 ItemStyle-Width="80px" HeaderStyle-Width="80px">
</telerik:GridBoundColumn>
I have tried this http://www.telerik.com/community/forums/aspnet-ajax/grid/sort-the-date-column-in-radgrid-on-clicking-of-the-header.aspx but still no success. Please find screen shot of problem.

I also used
<telerik:GridDateTimeColumn DataField="StartDate" HeaderText="StartDate" SortExpression="StartDate"
DataType="System.DateTime" UniqueName="StartDate" DataFormatString="{0:MM/dd/yyyy}"
ReadOnly="true" ItemStyle-Width="80px" HeaderStyle-Width="80px">
</telerik:GridDateTimeColumn>
 But not working Please help.
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Jul 2013
1 answer
800 views
I have an XML document that I wish to display in the browser. The sections of the document must be collapsible / expandable (similar to what IE does with an XMl document).

Which control should I use? The XML Document is not an actual XML file, it is an in memory XmlDocument represented by the XMLDocument class. How can I display this in my browser?
Ianko
Telerik team
 answered on 03 Jul 2013
5 answers
321 views
Hello,

I have a hyperlinkcolumn in my grid. I want the NavigateUrl property to contain the primary key value for each row like so:

page.aspx?key=value

How do i accomplish this in code behind?

Thanks

Princy
Top achievements
Rank 2
 answered on 03 Jul 2013
1 answer
120 views
Hi everyone

How can I add an icon in the right corner of radtextbox?

Thanks for replying,
KB.
Princy
Top achievements
Rank 2
 answered on 03 Jul 2013
1 answer
41 views
subject must be Upload by dropping files into grid row.

hi friends,

sorry for posting same question here as I could not decide where it belongs. (admins, please don't get me mad :)

I want to upload image files by dropping them to grid rows.

imagine a product list and customer will drag and drop product images from computer to row that belongs that product. I don't want my client to enter edit mode, upload file and close edit mode, etc.. 

my client can upload multiple files for each row (product) and then I'll analyze and organize images at code side.

any suggestions ?
Hristo Valyavicharski
Telerik team
 answered on 03 Jul 2013
8 answers
277 views
Hi
I load the grid and GridDropDownColumn column from code behind, everty thing works fine except the first row doesn't show the value
thanks
small sample which I found from Forum

<div>
           <telerik:RadGrid runat="server" ID="RadGrid1"
               AutoGenerateColumns="false" AllowPaging="true" AutoGenerateEditColumn="true" >
               <MasterTableView  EditMode="InPlace">
                   <Columns>
                       <telerik:GridBoundColumn DataField="Col1">
                       </telerik:GridBoundColumn>
                       <telerik:GridDropDownColumn DataField="Col2" ListTextField="value" ListValueField="index"
                           UniqueName="DropDownColumn">
                       </telerik:GridDropDownColumn>
                   </Columns>
               </MasterTableView>
           </telerik:RadGrid>
       </div>



code behind

Imports Telerik.Web.UI
Public Class WebForm6
    Inherits System.Web.UI.Page
    Private _isBound As Boolean = False
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
    End Sub
 
    Private Sub RadGrid1_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated
        If TypeOf e.Item Is GridDataItem Then
            If Not _isBound Then
                DirectCast(DirectCast(RadGrid1.MasterTableView.GetColumnSafe("DropDownColumn"), GridDropDownColumn).ColumnEditor, GridDropDownColumnEditor).DataSource = GetDropDownData()
                _isBound = True
            End If
        End If
    End Sub
 
    Private Sub RadGrid1_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
        RadGrid1.DataSource = GetGridData()
    End Sub
 
    Private Function GetDropDownData() As DataTable
        Dim dataTable As New DataTable()
        dataTable.Columns.Add("index")
        dataTable.Columns.Add("value")
 
        For i As Integer = 0 To 19
            dataTable.Rows.Add(New Object() {i, i})
        Next
        Return dataTable
    End Function
    Private Function GetGridData() As DataTable
        Dim dataTable As New DataTable()
        dataTable.Columns.Add("Col1")
        dataTable.Columns.Add("Col2")
 
        For i As Integer = 0 To 19
            dataTable.Rows.Add(New Object() {i, i})
        Next
        Return dataTable
    End Function
End Class

Angel Petrov
Telerik team
 answered on 03 Jul 2013
3 answers
223 views
Hi All,
How can I remove extra space in my radnumerictextbox. Whenever I change the width of the textbox it only applies to my textbox but there still about 80px of space after the spinbuttons. I am adding an imagebutton beside it but then it has huge gap between the spinbuttons and the icon and it doesnt look good. Heres the code. Thanks in advance.
<telerik:RadNumericTextBox ID="rntNumber" ShowSpinButtons="true" Width="50px" MaxLength="3" runat="server" Value="50" MinValue="10" MaxValue="200" NumberFormat-DecimalDigits="0">
 </telerik:RadNumericTextBox>
<asp:ImageButton ID="infoBtn" runat="server" width="20px" height="20px" BorderWidth="0px" ImageUrl="../Images/Info.gif" />
RJ
Top achievements
Rank 1
 answered on 03 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?