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

Hi Telerik,

We are facing an issue of Exporting to XSLS from RadGrid. We recently change our export functionality to XSXL. Currently, we are using

radgrid.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;
to export to XSLX for selected records.

Ihave a functionality to export selected records. When I select some of records from Grid and export them we are getting all the records are exported to xslx file NOT only selected.
The weird thing I faced is that when I change GridExcelExportFormat.Xlsx from GridExcelExportFormat.HTML, it works fine. (Only Selected Records are being exported)

I am using following code to export selected records.

if (radgrid.SelectedItems.Count != 0)
{
  foreach (GridDataItem item in radEntityRecords.MasterTableView.Items)
   item.Visible = item.Selected;
}
radgrid.ExportSettings.OpenInNewWindow = true;
radgrid.ExportSettings.ExportOnlyData = true;
radgrid.MasterTableView.IsFilterItemExpanded = false;
radgrid.ExportSettings.UseItemStyles = true;
radgrid.MasterTableView.GroupByExpressions.Clear();
radgrid.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;
radgrid.MasterTableView.ExportToExcel();


Please suggest us,
Konstantin Dikov
Telerik team
 answered on 11 Oct 2016
1 answer
101 views

Radtreeview  onnodedrop event:

 when i try to acess  event argment SourceDragNode   (e.SourceDragNode) is Null

islam
Top achievements
Rank 1
 answered on 11 Oct 2016
0 answers
164 views

I have a refresh button that seems to work on the browser reload but not on the actual refresh button reload. It's using a standard grid. What am I missing?

            var gridRefresh =  grid.dataSource.query({
                sort: { field: "ProductName", dir: "desc" },
                page: 2,
                pageSize: 20
            });
            $('a.k-pager-refresh').on('click', function (){
                gridRefresh.data("kendoGrid").dataSource.read();
            });

Keith
Top achievements
Rank 1
 asked on 11 Oct 2016
1 answer
181 views
Hi Telerik Team,

I am using Telerik RadGrid. And the controls Next and Previous buttons do not work. But the pagination numbers work.
I have been using the below controls and they were at the time of 2008 I think. 
Telerik.Web.UI - Ver 2008.3.1314.35
Rad Grid - Ver 4.5.0.0

That time all controls had different dll's.

My code is as below.

<telerik:RadGrid ID="rg" runat="server" CellPadding="6" HorizontalAlign="Center" ShowFooter="true" RegisterWithScriptManager="False" RenderMode="Lightweight" Width="90%" DataKeyNames="ContractID" AllowFilteringByColumn="true" OnItemCommand="rg_ItemCommand" OnItemDataBound="rg_ItemDataBound" DataSourceID="SqlDataSource1" GridLines="None" Skin="Office2007" AutoGenerateColumns="false" AllowPaging="true" PageSize="20" AlternatingItemStyle-BackColor="WhiteSmoke">                    
<GroupingSettings CaseSensitive="false" />
<ItemStyle CssClass="tableRow" />
<PagerStyle Mode="NextPrevAndNumeric" ShowPagerText="true"/>
<HeaderContextMenu>                        
<CollapseAnimation Duration="200" Type="OutQuint" />
</HeaderContextMenu>
<AlternatingItemStyle CssClass="tableRowAlt" />
<MasterTableView ShowFooter="true" DataSourceID="SqlDataSource1">
<Columns>
</Columns>
</MasterTableView>
<FilterMenu>
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ProviderName="System.Data.SqlClient" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter DefaultValue="1" Name="TypeID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
Viktor Tachev
Telerik team
 answered on 11 Oct 2016
8 answers
395 views

I have a problem when using the args.set_cancel command (true), to cancel the upload.

Code RadAsyncUpload:

<telerik:RadAsyncUpload

                ID="radFileUpload"
                MaxFileSize="10000000"
                OnClientFilesSelected="OnClientFilesSelected"
                HttpHandlerUrl="~/UploadFiles.ashx"
                TemporaryFolder="~/upload"
                MaxFileInputsCount="1"
                runat="server">
            </telerik:RadAsyncUpload>

 

Code Javascript:

function OnClientFilesSelected(sender, args) {            

            if ((sender._uploadedFiles.length + args.get_count()) > sender._maxFileCount) {
                args.set_cancel(true);
                alert('The maximum number of file(s) to upload is: ' + sender._maxFileCount);
            }
}

 

The problem is that when the seto args.set_cancel to TRUE, the upload component does not finciona more. By clicking on the button to upload, it does not respond anymore. This is the version 2016.2.504.45. In version 2015.1.401.45 it works normally.

Anton
Telerik team
 answered on 11 Oct 2016
1 answer
169 views

Hi,

Wehave built an application for my company and the application is in production. The application is an ASP.NET Webforms application. We are using radgrid and all other controls on almost every page of the application. Recently we decided to implement knockout js in the project. We are learning knockout js and looking for some good learning resources, so that we can use radgrid and other controls to talk to knockout js code. Can anyone help?

Marin Bratanov
Telerik team
 answered on 11 Oct 2016
4 answers
553 views
I found UseStaticHeaders="true", which is what I needed. Static headers. This is great. But, when using static headers, my column widths seem to be ignored and are set to seemingly random values. I need both static headers AND fixed column widths! Is this possible?
Kostadin
Telerik team
 answered on 11 Oct 2016
3 answers
158 views

HI there,

I am trying to do client-side manipulation of the scheduler.  Can anyone tell me why it insists on doing Postbacks, even if I an doing everything through JavaScript?  I have no postback events set up, but even if I just execute scheduler.insertAppointment() I catch the postbacks

Thanks in advance

Rob

Loïc
Top achievements
Rank 1
 answered on 11 Oct 2016
1 answer
68 views

It appears the Q3 2016 controls have broken client-side filtering in addition to the server-side filtering issue I read about in another thread. the tableview.get_filterExpressions() collection is empty when it shouldn't be.

I have downloaded and installed your internal build 2016.3.1004.40 and client-side filtering appears to work now. However, I don't want to install an internal build in a production environment unless I know its stable. Is it? I don't want to run into any more issues like I did with the filtering being broken all of a sudden.

Pavlina
Telerik team
 answered on 11 Oct 2016
2 answers
127 views

I am getting Dual Check Box in GridCheckBoxColumn in radGrid (please find the attach image that describes the issue)

I am using RadFormDecorator because of this I got this issue when I remove RadFormDecorator it worked good.

Telerik Version is - (UI for ASP.NET AJAX R3 2016 (version 2016.3.914))

<telerik:GridCheckBoxColumn DataField="Late" HeaderText="Late" SortExpression="Late" UniqueName="Late" DataType="System.Boolean" FilterControlAltText="Filter Late column" StringTrueValue="1" StringFalseValue="0"></telerik:GridCheckBoxColumn>

Pierre
Top achievements
Rank 1
 answered on 11 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?