Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 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
171 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
187 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
408 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
180 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
600 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
163 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
71 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
136 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
2 answers
96 views

Hi,  

   I am trying to export a NestedViewtemplate Radgrid using the following

 

C#:

protected void rd_ItemCommand(object sender, GridCommandEventArgs e) {

rd.MasterTableView.HierarchyDefaultExpanded = true;

rd.ExportSettings.ExportOnlyData = true;

rd.ExportSettings.IgnorePaging = true;

rd.ExportSettings.HideStructureColumns = true;

rd.ExportSettings.OpenInNewWindow = true;

rd.ExportSettings.UseItemStyles = true;

rd.MasterTableView.ExportToExcel();

 

In Aspx:

<ExportSettings Excel-AutoFitImages="true" Excel-DefaultCellAlignment="Left" FileName="rdChild">     

    <Excel DefaultCellAlignment="Left" />

</ExportSettings>

 

ISSUE:

   I have 54 column in the Parent Radgrid and with 2200 records only

   Child Radgrid : 4 columns , only 1400 parents have child.  Maximum child might have 10 records 

  Data in it is very small no big descriptions or images ....

  But when I export it gives me 7 MB file. 

  Strange : if I copy the same content into a new excel it is only 500kb. So wonder what is the problem and how to address this ??

 

I saw the following : below

(Also it is important to note that the hierarchy and the nested controls have a considerable effect on the performance in this scenario.) ..

Any tips to reduce the Exported file size (already tried exml , csv nothing helped )

 

 

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/exporting/overview

Exporting a large amount of data : We strongly recommend not to export large amounts of data since there is a chance to encounter an exception(Timeout or OutOfMemory) if more than one user tries to export the same data simultaneously. RadGrid is not suitable for such scenarios and therefore we suggest that you limit the number of columns and rows. Also it is important to note that the hierarchy and the nested controls have a considerable effect on the performance in this scenario.

Kostadin
Telerik team
 answered on 10 Oct 2016
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?