I have an aplication which use a RadGrid, i´m trying to use built-in controls, how ever it is not working.
CS File
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Data;
using SCAPWEB.ods;
using System.Data;
namespace SCAPWEB.Views
{
public partial class GridStocks : ContentControl
{
ScapWebServ.Service1SoapClient consulta = new ScapWebServ.Service1SoapClient();
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(Page, typeof(Page), "nudgeIE6", "if ($telerik.isIE6) $telerik.$('.itemDetails, .pageNav, .ordersTitle').each( function() { this.style.cssText = this.style.cssText; });", true);
}
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
RadGrid grid = (RadGrid)sender;
grid.DataSource = consulta.AllExistence("NIS", this.Tipo, this.FechaInicial, this.FechaFinal,this.Flujo).Answer.Select().ToList();
}
protected void Page_PreRender(object sender, EventArgs e)
{
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
manager.AjaxSettings.AddAjaxSetting(RadGridEstadistica, RadGridEstadistica,LoadingPanel);
}
}
}
ViewFile
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GridStocks.ascx.cs" Inherits="SCAPWEB.Views.GridStocks" %>
<div style="width: 100%; height: 100%; float: left; margin: 10px">
<telerik:RadGrid ID="RadGridEstadistica" runat="server" Culture="es-ES" Width="100%" Height="500px" AllowSorting="True" UseAllDataFields="True"
AllowPaging="true" PageSize="18" ClientSettings-Scrolling-AllowScroll="true" OnNeedDataSource="RadGrid1_NeedDataSource" AllowFilteringByColumn="True" FilterType="Combined">
<MasterTableView CommandItemDisplay="Top" PagerStyle-Mode="NextPrevAndNumeric" TableLayout="Fixed">
<CommandItemSettings ShowExportToCsvButton="True" ShowExportToExcelButton="True" ShowExportToPdfButton="False" ShowExportToWordButton="False" ShowAddNewRecordButton="false" ShowRefreshButton="false" />
</MasterTableView>
<ClientSettings AllowDragToGroup="true" EnableRowHoverStyle="true">
<Selecting AllowRowSelect="true" />
<Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="360px" />
</ClientSettings>
</telerik:RadGrid>
<telerik:RadAjaxLoadingPanel ID="LoadingPanel" runat="server">
</telerik:RadAjaxLoadingPanel>
</div>

Hi all,
I have a RadAsyncUpload inside a RadGrid, all of which is inside a RadWizard. These controls are in a user control that is loaded dynamically by the content page in a placeholder.
Whenever I go into Add or Edit mode in my RadGrid, the RadAsyncUpload does not render and I get the following error in my JS console
(see attachment error1.png)
Is there a known issue with using RadAsyncUploads in RadGrids, or a specific way to go about it?
I've tried mimicking this demo but I get the same error. https://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultvb.aspx?product=asyncupload
Any help is greatly appreciated!
Chris
Hi,
I have six RadDropDrownList Controls on a page. I have a problem with TabKey and arrow keys being used for navigaiton between them and using up down arrow keys for selection. Here is the Issue:
1. I focus first one using mouse and select an item.
2. I use Tab to the second one and select using arrow key.
3. Once selection is done any click any where on the entire page keeps raising the OnClientItemSelecting event of the dropdown in 2 above.
4. Everything works fine if I use only mouse to navigate and select.
Is this a known problem, is there a workaround? I cannot have this in production as OnClientItemSelecting event is suppose to do some work based on what's selected from drop down.
In the RadEditor we have the NewLineMode set to Div...
Me.NewLineMode = EditorNewLineModes.DivWe are also using a ToolsFile xml document to control the tools available in RadEditor.
The problem is the InsertParagraph tool now inserts <div> tags instead of <p> tags.
We want to keep the NewLineMode behavior as DIV while still having a tool that can insert a paragraph (i.e. a <p> tag).
How can we do this?

<
telerik:GridDropDownColumn DataField="GroundGear" DataSourceID="getGroundGears" HeaderText="Ground Gear" ListTextField="GroundGearName" ListValueField="GroundGearCode" UniqueName="GroundGear" ColumnEditorID="GroundGear" Reorderable="False" Resizable="False" Visible="false">
<
asp:SqlDataSource ID="getGroundGears" runat="server" ConnectionString="<%$ ConnectionStrings:FisheriesConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT code as [GroundGearCode], name as [GroundGearName] FROM DisGroundGear">
</asp:SqlDataSource>
textbox = (
RadNumericTextBox)editItem["AmountPayorFC"].Controls[0];
textbox.NumberFormat.AllowRounding =
true;
textbox.NumberFormat.DecimalDigits = 0;
textbox.Style.Add(
"text-align", "right");
Hello there ..
I have been used a GridClientSelectColumn within a radgrid in order to take user selection
but my radgrid has multiple pages
when I chose items from first page and go to the second page I lose my items in my first page
how can I solve that . . . .

Hello, i am trying to perform drag and drop from tree view into a textbox control. However, i m having some issues. My treeview is databound to a sqldatasource if that makes a difference. can someone please take a look at my code...thanks
protected void RadTreeView1_NodeDrop(object sender, Telerik.Web.UI.RadTreeNodeDragDropEventArgs e)
{
if (TextBox1.ClientID == e.HtmlElementID)
{
TextBox1.Text = String.Empty;
foreach (RadTreeNode node in e.DraggedNodes)
{
{
//problem area!
TextBox1.Text = sender.ToString();
}
if (TextBox1.Text.Length > 0)
TextBox1.Text = TextBox1.Text.TrimEnd(new char[] { ',', ' ', '\n' });
}
}

Hi,
I am trying to have a grid where the detail item template is clickable/selectable as one with the columns relating to it.
If you take the demo http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/detailitemtemplate/defaultcs.aspx as an example, then I would like to click the row with the pictures and have the main row selected along with the detail item row. Effectively the row and detail item row should behave as one.
Can anyone please help?
Gary
