Hi Everyone,
I have an old application that I'm supposed to bring forward into the modern world. It was written using VS 2003 back in about 2004 and has never progressed beyond that point. It utilizes the radgrid, radinput, radpanelbar, radtabstrip, radtreeview, and radupload components from the version that telerik had way back then. I don't have the install materials or anything like that - just the DLLs in the bin folder. I'm hoping that there is a way to continue to use them in VS 2013 because otherwise I'm going to have to rewrite a lot of the application!
I've created a VS 2013 project and imported all the code - plus added the references to the RAD objects. Unfortunately when I try to compile - I get an error that the "type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)". Looking at the first page throwing the error I see that "using Telerik.WebControls" is the issue. That namespace is defined in the various rad controls that I have reference to, so I'm not sure why it isn't working. Has anyone else tried anything like this and been successful?
Thanks!
Cory Aston

<telerik:RadDatePicker ID="rdpReceivedDt" runat="server" OnPreRender="rdpReceivedDt_PreRender"></telerik:RadDatePicker>A client of mine is looking for a grid that acts like excel, using the BatchEdit feature. The problem i'm running into is dynamically binding a RadComboBox based off data from within that row. i.e. Below, based off the DivisionID that is selected in the row i'm editing, i need to pull all teams that are in that division and databind the RadComboBox. any thoughts?:
<telerik:RadGrid ID="gridData" runat="server" Skin="Telerik" OnNeedDataSource="NeedDataSource_Football" AutoGenerateColumns="false" AllowSorting="true" AllowFilteringByColumn="true" ShowHeader="true" ShowFooter="true" Width="100%" OnFilterCheckListItemsRequested="RadGrid1_FilterCheckListItemsRequested" FilterType="CheckList" GridLines="Both" AllowPaging="false"> <GroupingSettings CaseSensitive="false" /> <MasterTableView DataKeyNames="ID" CommandItemDisplay="Top" EditMode="Batch"> <BatchEditingSettings EditType="Row" /> <Columns> <telerik:GridBoundColumn DataField="FullName" SortExpression="FullName" HeaderText="Name" FilterCheckListEnableLoadOnDemand="true" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="DivisionID" HeaderText="Division" FilterCheckListEnableLoadOnDemand="true"></telerik:GridBoundColumn> <telerik:GridTemplateColumn DataField="TeamID" HeaderText="Team" FilterCheckListEnableLoadOnDemand="true" AllowFiltering="true" SortExpression="TeamID" AutoPostBackOnFilter="true" UniqueName="TeamID"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "TeamName") %> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox ID="ddlTeams" runat="server" DataValueField="TeamID" DataTextField="TeamName"></telerik:RadComboBox> </EditItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView></telerik:RadGrid>
Hello,
is it possible to have a RadTileList with input controls (see sample below) and open the browsers' standard context menu on right click? We cannot figure out how to make it work.
<telerik:RadTileList runat="server" ID="RadTileList1" TileRows="4" CssClass="myTileList" SelectionMode="None" EnableDragAndDrop="True" Width="100%">
<Groups>
<telerik:TileGroup>
<telerik:RadContentTemplateTile ID="RadContentTemplateTile1" runat="server" Shape="Wide" Width="250px" Name="RadContentTemplateTile1">
<ContentTemplate>
<div>
<table style="width:100%;">
<tr>
<td>
<asp:Label ID="lblExample" Text="Example" runat="server"></asp:Label>
</td>
<td style="text-align: right;">
<telerik:RadTextBox ID="txtExample" runat="server" Width="470px" Resize="None"></telerik:RadTextBox> </telerik:RadComboBox>
</td>
</tr>
</table>
</div>
</ContentTemplate>
</telerik:RadContentTemplateTile>
</telerik:TileGroup>
</Groups>
</telerik:RadTileList>
And the javascript:
function canceljQueryEventBubbling(evt) {
//prevent the event from bubbling, i.e., reaching the Tile element where it will initiate dragging
switch (evt.which) {
case 1:
evt.stopPropagation();
break;
case 3:
alert('bla');
default:
break;
}
}
function disableTileDragOnChildElems() {
//a selector for all input elements in the tile. Useful, for example, for buttons
$telerik.$(".RadContentTemplateTile input").mousedown(canceljQueryEventBubbling);
//Sys.Application.remove_load(disableTileDragOnChildElems);
}
Sys.Application.add_load(disableTileDragOnChildElems);
Any help will be appreciated!
Radbutton as a radio button does not work (you cannot toggle a set of radio buttons within a group) when placed in an editform template in radgrid.
They work outside of the radgrid but I need them to work in the radgrid
Is there something special that needs to be done when inside a template editform in radgrid.
Dear Telerik Experts,
I am using Telerik UI for ASP.NET AJAX 2014 Q1, I am experiencing some issues which I could not explain. Basically I use a grid and want to export it to PDF, I simply call RadGrid1.MasterTableView.ExportToPdf(); to do so. The grid contains some chinese characters. It works fine in local debug, but when I deploy the website to Azure, the produced pdf with all characters showing as boxes. Initially I thought it was font not available issue but looks like the font indeed is available and it can be seen in acrobat reader, but it shows different code than the one that generated locally. The font used is called "楷体" which is a chinese font. The one that generated locally which works fine showing as 1DACA5+楷体 and 200101+楷体, the one generated from Azure website showing as 8A7FA8+楷体 and D66FD6+楷体. I attached the two files generated from my local machine and azure website for reference.
PDF generated locally:
http://videoconference.blob.core.chinacloudapi.cn/public/Good.pdf
PDF generated from azure website:
http://videoconference.blob.core.chinacloudapi.cn/public/Bad.pdf
Could you please give some suggestions how I could possibly resolve this issue? I tried several things including try use different fonts and encode the page with different encoding(UTF-8, GB2312) but none of those works. I noticed even numbers are not showing properly in azure generated pdf. Unforturnately the suggested font "Arial Unicode MS" is not available in Azure website.
Any suggestions would be really appreciated!
Thanks in advance!
I need to have a drop zone for each node of a RadTreeView. I have added a RadAsyncUpload control in the NodeTemplate section. Are there any examples/demos for this scenario?
I followed the current demo structure. But in my case, the files are getting dropped for every upload control and not the specific one.
I have a RadGrid:
<telerik:RadGrid ID="radgridMachines" runat="server" AllowSorting="True" AllowMultiRowSelection="true" AutoGenerateColumns="False" OnNeedDataSource="radgridMachines_NeedDataSource" OnItemDataBound="radgridMachines_ItemDataBound" EnableViewState="false"> <ClientSettings EnablePostBackOnRowClick="false"> <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" /> <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" /> <ClientEvents OnGridCreated="SelectAndResizeAllRows" OnRowSelected="TogglePrintControls" OnRowDeselected="TogglePrintControls" /> </ClientSettings> <GroupingSettings CaseSensitive="false" /> <SortingSettings /> <MasterTableView DataKeyNames="CustomerID, CustomerName, PlantNumber, Route, MachineNumber, PlantName, MachineName, CustomerEquipmentID, TestPackage, PointID, Lubricant" ClientDataKeyNames="" AllowMultiColumnSorting="true"> <Columns> <%--Fit to Contents--%> <telerik:GridBoundColumn UniqueName="CustomerNumber" DataField="CustomerID" DataType="System.Int32" HeaderText="Cust #" HeaderStyle-Width="60px"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="PlantNumber" DataField="PlantNumber" DataType="System.Int32" HeaderText="Plant #" HeaderStyle-Width="60px"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="MachineNumber" DataField="MachineNumber" DataType="System.Int32" HeaderText="Mach #"HeaderStyle-Width="60px"></telerik:GridBoundColumn> <telerik:GridClientSelectColumn UniqueName="SelectColumn" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"HeaderStyle-Width="60px" /> <%--Fit to Contents--%> <telerik:GridBoundColumn UniqueName="RouteNumber" DataField="Route" HeaderText="Route" ItemStyle-HorizontalAlign="Center"HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="PlantName" DataField="PlantName" HeaderText="Plant Name" ItemStyle-HorizontalAlign="Center"HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="MachineName" DataField="MachineName" HeaderText="Machine Name" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="CustomerEquipmentID" DataField="CustomerEquipmentID" HeaderText="Machine ID" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="TestPackage" DataField="TestPackage" HeaderText="Test Package" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PointID" Visible="false"></telerik:GridBoundColumn> </Columns> </MasterTableView></telerik:RadGrid>When I load 2600 rows, the browser gives me the following error:
"A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue. Script: http://localhost:50820/ScriptR…8-VKUfdnFfZq18eaxA2&t=7c776dc1:652"
The OnGridCreated event looks like this:
function SelectAndResizeAllRows(sender, eventArgs) { var rows = $find('<%= radgridMachines.ClientID%>').get_masterTableView().get_dataItems(); for (var i = 0; i < rows.length; i++) { rows[i].set_selected(true); } var grid = $find("<%= radgridMachines.ClientID %>"); var columns = grid.get_masterTableView().get_columns(); for (var i = 0; i < 4; i++) { //columns.length columns[i].resizeToFit(false, true); }}
If I remove the first for loop, the grid loads properly. But I need to support selecting all rows. Is there another way to accomplish this? Why can't the grid handle this?
Thanks