Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
287 views

 I am trying to set focus in radgrid batch edit cell in  page  load. I have used the following code in gridcreated and rowselected event but i can't get focus in that cell please give me some suggestion. 

      var MasterTableView = SummarySerialNumberGrid.get_masterTableView();

      var row = MasterTableView.get_selectedItems()[0];
      var SerialNumberCell = MasterTableView.getCellByColumnUniqueName(row, "serialnumber");
      var bthEditManager = SummarySerialNumberGrid.get_batchEditingManager();
           bthEditManager.openCellForEdit(SerialNumberCell);

sathesh
Top achievements
Rank 1
 answered on 12 Oct 2016
4 answers
253 views

Hi Telerik,

Can you please create a working sample project in VB with a RadGrid that has the following properties/specs:

 

  1. Multiple columns (FIRST_NAME, LAST_NAME, AGE)
  2. Allow sorting and filtering on all three columns
  3. EditMode="InPlace", EditType="Cell", OpenEditingEvent="DblClick"
  4. CommandItemTemplate with "Edit","Save Changes" and "Cancel Changes" link buttons.
  5. The "Save Changes" and "Cancel Changes" link buttons are not displayed at first.
  6. And because initially EditMode="InPlace", NO edits should be allowed when any row or cell is double-clicked.
  7. When the "Edit" link button is clicked:
  • the "Edit" link button is hidden and the "Save Changes" and "Cancel Changes" appear
  • EditMode is changed to "Batch"
  • When double-clicking any cell of any row, ONLY the AGE cell of the row that was clicked will be editable.
  • When edting a cell (AGE), pressing the ENTER key should move the cursor to the same cell (AGE) but on the next row.
  • When the "Save Changes" link button is clicked, it should save whatever changes were made and also do some stuff on the server-side.
  • When the "Cancel Changes" link button is clicked, it should discard whatever changes were made and also do some stuff on the server-side.
  • The "Save Changes" and "Cancel Changes" link buttons should disappear and the "Edit" link button should re-appear.

I've been pulling my hair over this for the past 3 days and I can't seem to make it work. If my requirements are not possible, can you please suggest an alternative - my MAIN concern is that the Grid should only allow editing when the "Save Changes" and "Cancel Changes" link buttons appear after the "Edit" link button is clicked.

As always, many thanks in advance.

 

Virgil Rodriguez

Virgil Rodriguez
Top achievements
Rank 1
 answered on 11 Oct 2016
2 answers
144 views

I'm having issues rendering the Gantt Control inside of a custom control. I've set up my control in line with the sample project for using a custom provider, which works outside of my project just fine. When I try and render it within my project, nothing but the divs seem to be rendered. I compared that to what was rendered by the sample project, and a lot of things seem to be missing. I've attached a image of the rendered html.

 

 

I get one JavaScript error "A.delayedClick is not a function". Any help would be greatly appreciated.

 

 

Jeremy
Top achievements
Rank 1
 answered on 11 Oct 2016
5 answers
133 views
Dear All,
Does anyone know how to add an option for image caption to the latest (full version )radeditor?

Kind Regards,
Marja
Rumen
Telerik team
 answered on 11 Oct 2016
1 answer
128 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
107 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
170 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
186 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
406 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
179 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?