Hi,
I have a RadGrid that opens inside of a RadWindow. The user can re-order the rows by drag and drop, but if the grid is longer than the height of the RadWindow, it does not scroll. Is there a way to scroll the RadWindow as the user is moving the item down the list?

We would like to set the width of columns in xlsx export from a RadGrid. I do this by using e.ExportStructure.Tables[0].Columns in the InfrastructureExporting event handler. If columns are declaratively set in the aspx file when this works fine.
If, however, the columns of the RadGrid are added by setting AutoGenerateColumns="true" or manually in Page_Load, then the Columns collection is empty. Why is this, and are there some other way to set the width of the columns in the xlsx file?
ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" OnNeedDataSource="RadGrid1_NeedDataSource" OnInfrastructureExporting="RadGrid1_InfrastructureExporting">
<ExportSettings Excel-Format="Xlsx" />
</telerik:RadGrid>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" />
.cs:
public class Person
{
public string ID { get; set; }
public string Name { get; set; }
public DateTime? Date { get; set; }
}
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
RadGrid1.DataSource = new List<Person> {
new Person { ID = "1", Name = "Adam", Date = new DateTime(1973, 4, 12) },
new Person { ID = "2", Name = "Bertil", Date = null },
new Person { ID = "3", Name = "Ceasar", Date = new DateTime(1973, 10, 27) },
};
}
protected void Button1_Click(object sender, EventArgs e)
{
RadGrid1.MasterTableView.ExportToExcel();
}
protected void RadGrid1_InfrastructureExporting(object sender, Telerik.Web.UI.GridInfrastructureExportingEventArgs e)
{
e.ExportStructure.ColumnWidthUnit = Telerik.Web.UI.ExportInfrastructure.ExportUnitType.FormatDefault;
// ERROR: The Columns collection is empty if the columns of radgrid are auto-generated or dynamically added in code behind
foreach (var col in e.ExportStructure.Tables[0].Columns)
{
col.Width = 20;
}
}
/Patrik
I have a chart with about 1500 items and a period from December 2014 to today. if I were in the navigator the range selector move he always jumps by 1 month. this can be set the range of the selector can be moved per day?
Also me the entire period shown on the left outside of the navigator and the right I can not choose to this day (show Attachment)...
Can you help me? Thanks
Hello dear friends.
There are combo box to "Checkbox" feature, how to get the name of the selected items?
With my 100 Russian rubles for beer)

Hi,
I have issue with editmode, When I use automatic update works great, but I want use my template to edit, and when I use usercontrol they don;t update my data, they put empty string to it. Below my code, thanks for any feedback.
Index.aspx
<asp:SqlDataSource ID="ListaRejestr" runat="server" ConnectionString="<%$ ConnectionStrings:ISAConnectionString2 %>" UpdateCommand="UPDATE tb_upowaznienSystem SET data_wydania = @data_wydania WHERE nr_upowaznienia = @nr_upowaznienia" SelectCommand="lista_uzytkownikow" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:SessionParameter Name="iduzytkownika" SessionField="id_komorki" DefaultValue="" /> <asp:ControlParameter ControlID="drop_rejestrSytem" Name="systemDrop" PropertyName="SelectedValue" /> <asp:SessionParameter Name="CzySystemOgolny" SessionField="CzySystemOgolny" Type="String" /> <asp:SessionParameter DefaultValue="" Name="administrator_systemu" SessionField="administrator_systemu" Type="String" /> </SelectParameters> <UpdateParameters> <asp:Parameter Name="data_wydania" /> <asp:Parameter Name="nr_upowaznienia" /> </UpdateParameters> </asp:SqlDataSource> <br /> <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" Culture="pl-PL" DataSourceID="ListaRejestr" GroupPanelPosition="Top" AllowAutomaticUpdates="True" AutoGenerateColumns="False" > <GroupingSettings CollapseAllTooltip="Collapse all groups" /> <ExportSettings> <Pdf PageWidth=""> </Pdf> </ExportSettings> <MasterTableView DataSourceID="ListaRejestr" AllowAutomaticUpdates="True" PageSize="20" ClientDataKeyNames="nr_upowaznienia" DataKeyNames="nr_upowaznienia"> <CommandItemSettings ShowAddNewRecordButton="False" /> <Columns> <telerik:GridEditCommandColumn CancelText="Anuluj" EditText="Data nadania" HeaderText="Data nadania" InsertText="Wyślij" UpdateText="Aktualizuj"> </telerik:GridEditCommandColumn> <telerik:GridBoundColumn DataField="id_upowaznieniaSystem" FilterControlAltText="Filter column column" HeaderText="id_upowaznieniaSystem" UniqueName="column"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="nr_upowaznienia" FilterControlAltText="Filter column1 column" HeaderText="nr_upowaznienia" UniqueName="nr_upowaznienia"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="data_wydania" FilterControlAltText="Filter column2 column" HeaderText="data_wydania" UniqueName="data_wydania"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="data_cofniecia" FilterControlAltText="Filter column3 column" HeaderText="data_cofniecia" UniqueName="column3"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="system" FilterControlAltText="Filter column4 column" HeaderText="system" UniqueName="column4"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="zakres_upowaznienia" FilterControlAltText="Filter column5 column" HeaderText="zakres_upowaznienia" UniqueName="column5"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="nazwisko" FilterControlAltText="Filter column6 column" HeaderText="nazwisko" UniqueName="nazwisko"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="imie" FilterControlAltText="Filter column7 column" HeaderText="imie" UniqueName="column7"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="identyfikator" FilterControlAltText="Filter column8 column" HeaderText="identyfikator" UniqueName="column8"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="id_uzytkownik" FilterControlAltText="Filter column9 column" HeaderText="Upoważnienie ogólne" UniqueName="column9"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="nazwa_komorki" FilterControlAltText="Filter column10 column" HeaderText="nazwa_komorki" UniqueName="column10"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="nazwa_wydzialu" FilterControlAltText="Filter column11 column" HeaderText="nazwa_wydzialu" UniqueName="column11"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="stanowisko" FilterControlAltText="Filter column12 column" HeaderText="stanowisko" UniqueName="column12"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="nr_poprz" FilterControlAltText="Filter column13 column" HeaderText="nr_poprz" UniqueName="column13"> </telerik:GridBoundColumn> </Columns> <EditFormSettings UserControlName="data_wydania_form.ascx" EditFormType="WebUserControl"> <EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1"> </EditColumn> </EditFormSettings> </MasterTableView> </telerik:RadGrid>data_wydania_form.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="data_wydania_form.ascx.cs" Inherits="data_wydania_form" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><table> <tr> <td> Data nadania: </td> </tr> <tr> <td> <asp:TextBox ID="data_wydania" DbSelectedDate='<%# DataBinder.Eval(Container, "DataItem.data_wydania") %>' runat="server" TabIndex="1"></asp:TextBox> </td> </tr> <tr> <td> <asp:Button ID="btnUpdate" Text="Aktualizuj" runat="server" CommandName="Update" CausesValidation="false"></asp:Button> <asp:Button ID="btnCancel" Text="Anuluj" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> </td> </tr></table>
regards
Hi
The disabled class rfdInputDisabled is not getting applied in IE for checkbox.
I am using IE11 and Telerik version 2016.1.225.45.
The rfdInputDisabled class is applied in IE7 but not in IE11. Please see the attached images. Could you please help on this?
Below is my code
<body> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2007" EnableRoundedCorners="false" /> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="600" AllowCustomErrorsRedirect="true"> <Scripts> <asp:ScriptReference Name="Telerik.Web.UI.Common.Core.js" Assembly="Telerik.Web.UI" /> </Scripts> </telerik:RadScriptManager> <div> <asp:CheckBox ID="checkboxDis" runat="server" Text="Some Text" Enabled="false" TextAlign="Left" BorderColor="Black" /> </div> </form></body>Hi,
Is there a way to generate a chart image from RadHtmlChart for Asp.Net without displaying the chart and without any client code ?
Regards,
I have the following settings
1. web.config
<system.web.extensions >
<scripting ><webServices/>
<scriptResourceHandler
enableCompression="true"
enableCaching="true" />
</scripting >
</system.web.extensions >
2. compilation debug = false in web.config and master page
3. <telerik:RadScriptManager ID="ScriptManager" runat="server" ScriptMode="Release" EnableScriptCombine="false" CacheSettings-Enabled="true" /> in master page.
However if i enable cdn, cdn is able to server 304, I assume it is because the files are static in the CDN.
Can Telerik support advise howw to make axd return 304?
Thanks.
hi all,
my scenario:
i have three listbox, EmployeeName as Parent List Box, ProjectAdmin and ProjectReader as Child List box. i will drag and drop from parent list to its child list box. the drag and drop concept is working fine for me(i doing this in client side using Javascript). while i am inserting the details in database in c#, the Child list box shows empty. i cannot fetch the items in c# server, where the drag and drop done in javascript.
HTML Code
<table class="normal_grid"> <tr> <th style="width: 17%"> <asp:Label ID="lblemployeename" runat="server" Text="Employee Name"></asp:Label> </th> <td class="field" style="width: 17%"> <telerik:RadListBox runat="server" ID="rlbemployeename" EnableDragAndDrop="true" Width="150px" Height="150px" OnClientDropped="lbemployeenamedropped"> </telerik:RadListBox> </td> <th style="width: 16%"> <asp:Label ID="Label1" runat="server" Text="Project Admin"></asp:Label><span class="hlt_txt">*</span> </th> <td class="field" style="width: 17%"> <telerik:RadListBox runat="server" ID="rlbadminname" EnableDragAndDrop="true" Width="150px" Height="150px" OnClientDropped="lbadminnamedropped"> </telerik:RadListBox> </td> <th style="width: 16%"> <asp:Label ID="Label2" runat="server" Text="Project Reader"></asp:Label><span class="hlt_txt">*</span> </th> <td class="field" style="width: 17%"> <telerik:RadListBox runat="server" ID="rlbreadername" EnableDragAndDrop="true" Width="150px" Height="150px" OnClientDropped="lbreadernamedropped"> </telerik:RadListBox> </td> </tr> </table>
Javascript Code:
function lbemployeenamedropped(sender, args) { transferManager.performTransfer(sender, args); } function lbadminnamedropped(sender, args) { transferManager.performTransfer(sender, args); } function lbreadernamedropped(sender, args) { transferManager.performTransfer(sender, args); } (function ($) { transferManager = function () { } debugger; transferManager.performTransfer = function (sender, args) { var destinationItemIndex = this._getDestinationIndex(args); var destinationListBox = this._getDestinationListBox(args); if (destinationListBox == null) return; var reorderIndex = args.get_dropPosition() == 0 ? destinationItemIndex : destinationItemIndex + 1; var items = args.get_sourceItems(); this._transfer(items, destinationListBox, reorderIndex); } transferManager._transfer = function (items, destination, reorderIndex) { $.each(items, function (index, item) { item.unselect(); destination.get_items().insert(reorderIndex, item); }); } transferManager._getDestinationIndex = function (args) { var destinationItem = args.get_destinationItem(); if (destinationItem) return destinationItem.get_index(); return 0; } transferManager._getDestinationListBox = function (args) { var destinationItem = args.get_destinationItem(); if (destinationItem) { var id = destinationItem.get_listBox().get_id(); return $find(id); } var parent = $(args.get_htmlElement()).parent(); if (parent.is(".RadListBox")) { var id = parent[0].id; return $find(id); } else if (parent.is(".rlbGroup")) { var id = parent[0].parentNode.id; return $find(id); } } })($telerik.$);
anything wrong in this code.
Tanks in Advance
ASRK.....