Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
352 views
Hi Telerik user,

I have tried to implement export to excel functionality in radgrid but encounter issue with filename setting.
From the file download window after I fire exportToExcel() function from javascript:
When I click on open, the filename is not shown correctly (It shows page name instead of filename) but
When I click on save and put the file in a folder and then open the file, it shows correct filename.

I have tried to put filename as a parameter to exportToExcel(filename) but it is still showing incorrect filename.

Here is my code snippet:

<script type="text/javascript" language="javascript">  
    function Export() {  
        var masterTable = $find('RadGrid1').get_masterTableView();  
        if (masterTable != null)  
            masterTable.exportToExcel();  
    }  
</script> 
 
        <telerik:RadGrid ID="RadGrid1" ShowStatusBar="True" Height="360px" 
            runat="server" AutoGenerateColumns="False" AllowSorting="false"   
            GridLines="None" ShowFooter="false" EnableDrag="false" 
            OnNeedDataSource="RadGrid1_NeedDataSource" ExportSettings-FileName="NostroTransfer" 
            OnItemDataBound="RadGrid1_ItemDataBound"

Please share if you have ever encountered this issue.

Regards,
Canfield
Daniel
Telerik team
 answered on 22 Apr 2014
5 answers
83 views
hey every one
i am using web http://demos.telerik.com/aspnet-ajax/webmail problem is that if net connection not availble the whole website has been crashed . In an Attachment is the output of crash web, how to fix this. please help me 

thanks in advance.
Plamen
Telerik team
 answered on 22 Apr 2014
3 answers
453 views
Hello,
My application is already using Telerik radgrid and I need to implement Batch Editing on it.
See the following .ascx code:
<telerik:RadGrid ID="dgEscrow" runat="server" GridLines="None" EnableEmbeddedSkins="false" AutoGenerateColumns="false" ShowFooter="true" CssClass="esGridTable">
    <HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
    <ClientSettings>
        <ClientEvents OnGridCreated="setScrollerDimensionsEscrow" />
        <Scrolling AllowScroll="true" SaveScrollPosition="true" />
    </ClientSettings>
</telerik:RadGrid>

See the followinng .ascx.vb code:
Public Sub BindDG(Optional ByVal isPrintPage As Boolean = False)
        Dim edt As New EscrowDataTable(TractGID)
        Dim dt As DataTable = edt.GetDataTable
        Dim dv As DataView = dt.DefaultView
 
         With dgEscrow
            .CellSpacing = 0
            .ItemStyle.CssClass = "esGridRow"
            .AlternatingItemStyle.CssClass = "esGridRow"
        End With
 
 
        dgEscrow.DataSource = dv
        dgEscrow.DataBind()
    End Sub


On the above scenario, I need to implement Batch Editing but needs to be done all on the code behind because the number of columns and the column type may vary every time.

Please let us know if you guys need any more details.

Thanks,
Shouvik
Konstantin Dikov
Telerik team
 answered on 22 Apr 2014
1 answer
131 views
 <telerik:RadListBox ID="lbDSNominal" runat="server" Width="250px" BackColor="#2D1A44" SelectionMode="Multiple" AllowTransfer="true" AutoPostBackOnTransfer="true" TransferMode="Copy"
                                                    AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true" Skin="" CssClass="list contents_2" TransferToID="lbStrata" OnTransferred="lbDSNominal_Transferred">
                                                    <ItemTemplate>
                                                        <p style="font-size: 15px !important; width: auto; height: auto; color: white; padding-bottom: 0px !important; margin-bottom: 0px !important; margin-top: 0px !important;"><%# Container.DataItem %></p>
                                                    </ItemTemplate>
                                                </telerik:RadListBox>

<telerik:RadListBox ID="lbStrata" runat="server" SelectionMode="Multiple" AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true"
                                                            Skin="" Width="260px" Height="150px" AllowTransfer="true" AutoPostBackOnTransfer="true" BorderColor="MediumPurple" BackColor="#f2eff5">

                                                            <ItemTemplate>
                                                                <div class="variables-list">
                                                                    <span><%# Container.DataItem %></span>
                                                                </div>
                                                            </ItemTemplate>
                                                        </telerik:RadListBox>

here is my code. I bind a list<String> to lbDSNominal's datasource. and I show data using <%# Container.DataItem %> in lbDSNominal. When I dragged an item to lbStrata in lbStrata itemtemplate, <%# Container.DataItem %> doesn't show any value? How can I fix it?


Princy
Top achievements
Rank 2
 answered on 22 Apr 2014
1 answer
75 views
Hi,

I want to load user control as view mode of row on row click. Like how we open user control of edit mode on row.

I am using Edit button in grid which is opening ~/UserControls/Issues_View_ActionItems.ascx user control as edit mode of row now i just want to open
~/UserControls/Issues_Edit_ActionItems.ascx user control on Row Click.


  <telerik:GridEditCommandColumn UniqueName="EditColumn" HeaderText="Edit" ButtonType="ImageButton">
                                    <HeaderStyle Width="15px"></HeaderStyle>
                                    <ItemStyle Width="15px" HorizontalAlign="Center"></ItemStyle>
                                </telerik:GridEditCommandColumn>



    <EditFormSettings UserControlName="~/UserControls/Issues_View_ActionItems.ascx" EditFormType="WebUserControl">
                                <EditColumn UniqueName="EditColumn">
                                </EditColumn>
                            </EditFormSettings>

Thanks
Manish
Shinu
Top achievements
Rank 2
 answered on 22 Apr 2014
12 answers
129 views
Any possibility to connect RadTileList with RadDataPager in order to create paging for TIles?
Shinu
Top achievements
Rank 2
 answered on 22 Apr 2014
1 answer
136 views
Anybody know how to add a scale break to a RADHTMLCHART more specifically to a BarChart ? It was available in the RadChart control which is now obsolete. Using the new RadHTMLChart control but I need to add a scale break since some values are off the charts compared to the majority of other values. Any ideas ?
Danail Vasilev
Telerik team
 answered on 22 Apr 2014
3 answers
544 views
Hi All, quick question, I've gone through all the demo pages for the RadHTMLChart, gone through Google and here and not found anything that would work with how I've done my Data source...

I've passed a list of 2 columns to my RadHTMLChart Bar or Column series chart, 1st column is the name of the row and the 2nd column is the value to be plotted... I've done this with a single Series and it plots all the data fine, I then set the XAxis DataLabelsField to the Name column and all the labels display correctly for each column/bar...

My question is this: -

How do I get a Legend to show up? The way I see it, the legend will only appear if there are multiple Series set on the ASPX page, but as the series gets populated from code no legend appears... I've tried creating a Legend programmatically and failed miserably, There just doesn't seem to be a property to add an item to the legend or at least set the Legend source to the Name column of the Data source?

If I switch this all the to the Pie Chart I then get a property to set the NameField on the series which if I set this to the Name column, the Legend works tip-top!

Any way of getting this 'NameField' property to be available on the Bar Series / Column Series also?

Thanks, Adam.
Stamo Gochev
Telerik team
 answered on 22 Apr 2014
2 answers
137 views
I have a Radgrid and RadMonthYearPicker on the page. Radgrid contains hyperlink column, when click on the link along with DataNavigateUrlFields i have to pass value of the RadMonthYearPicker to the next page.

<telerik:RadMonthYearPicker ID="RadMonthYearPicker" runat="server" />
 <telerik:RadGrid .....................

<telerik:GridHyperLinkColumn DataTextField="Salesperson" UniqueName="Salesperson" HeaderStyle-Font-Bold="true" DataNavigateUrlFields="Salesperson,LoginName,MetricYear" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderText="Salesperson" HeaderStyle-Width="20%"  DataNavigateUrlFormatString="DetailActivity.aspx?UserType=VP&amp;Salesperson={1}&amp;MetricYear={2}&amp;Picker=???"  /> 

</telerik: RadGrid>

Please let me know.


                 

                 
Shinu
Top achievements
Rank 2
 answered on 22 Apr 2014
2 answers
308 views
Hi,

RadUpload control does not filtering files. AllowedFileExtensions=".tif,.gif,.png,.jpg,.pdf,.xls,.xlsx,.doc,.docx" is not working. I did through server by adding these extensions into a string array but no success.

Here is my markup.

<telerik:RadUpload ID="RadUploadPol" runat="server" ControlObjectsVisibility="None"
                    AllowedFileExtensions=".tif,.gif,.png,.jpg,.pdf,.xls,.xlsx,.doc,.docx">
                </telerik:RadUpload>     

Please help.
Princy
Top achievements
Rank 2
 answered on 22 Apr 2014
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?