
I'm trying to display images on my gridimagecolumn without me having to upload it myself but instead it does it automatically when i load the grid. How do I do that?
My template is =>
<telerik:GridBinaryImageColumn DataField="Profile" HeaderText="Profile" UniqueName="Upload" ImageHeight="60px" ImageWidth="60px" ResizeMode="Fit"></telerik:GridBinaryImageColumn>
I haven't yet figure the code out on how to go about this...This is what I have so far.
protected void uxUsedGrid_InsertCommand(object source, GridCommandEventArgs e) { _InsertCommand(source, e); } private void _InsertCommand(object source, GridCommandEventArgs e) { GridEditFormInsertItem insertItem = e.Item as GridEditFormInsertItem; RadAsyncUpload radAsyncUpload = insertItem["Upload"].FindControl("AsyncUpload1") as RadAsyncUpload; UploadedFile file = radAsyncUpload.UploadedFiles[0]; byte[] fileData = new byte[file.InputStream.Length]; file.InputStream.Read(fileData, 0, (int)file.InputStream.Length); }protected void AsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e) { long totalBytes = 0; int MaxTotalBytes = 1000000; if ((totalBytes < MaxTotalBytes) && (e.File.ContentLength < MaxTotalBytes)) { e.IsValid = true; totalBytes += e.File.ContentLength; IsRadAsyncValid = true; } else { e.IsValid = false; IsRadAsyncValid = false; } }
I have look at this Demo and while it was helpful, it mostly focused on the client uploading the files and basing it off from that to upload the images.
Any help is appreciated!

RadDatePicker inside UpdatePanel in Microsoft Edge browser throws JavaScript error when doing a post-back (see attached image).
The error: "Unable to get property 'length' of undefined or null reference".
Any ideas how to fix this, or a work-around?
Microsoft Edge 44.17763.1.0
Telerik Controls: Telerik.Web.UI, Version=2019.1.409.45
My Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EdgeDatePickerIssue.Default" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Default</title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager" runat="server" ScriptMode="Release" /> <asp:UpdatePanel runat="server" ID="upPanel"> <ContentTemplate> <label>Select Date:</label> <telerik:RadDatePicker ID="dpStartDate" runat="server" MaxDate="2020-01-01" MinDate="2000-01-01" AutoPostBack="true" OnSelectedDateChanged="dpStartDate_SelectedDateChanged" /> <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /> </ContentTemplate> </asp:UpdatePanel> </form></body></html>

https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/excel-export-multiple-grids/defaultcs.aspx?product=grid
Just now,i copy the source code(only aspx and aspx.cs) from this demo,but can not run.
My question is :
Can I download the all the source code (include dll and others) about this demo?

<telerik:RadButton ID="btnShowImage" runat="server" Text="Show Image" OnClick="btnShowImage_Click" CommandName="btnShowImage" onclientclicked="CheckItem"></telerik:RadButton>function CheckItem(sender, e) { if (sender._commandName == "btnShowImage") { RadConfirm("¿are sure?", btnShowImageResume, 330, 100, null, "Confirm."); sender.set_autoPostBack(false); } else { sender.set_autoPostBack(true); }}function btnShowImageResume(arg) { if (arg) { __doPostBack("btnShowImage", "onclick"); }}RadConfirm(confirm message, javascript function that be executed after user take a decision, width, height, objet reference, message tittle);"
After, javascript cancel objet postback (preventing that compiler continues with onclick event code.) else continues with postback.
When user takes a decision RadConfirm call resume function in this example:'btnShowImageResume' function, this function validate if arg parameter (result) is true then executes onclick event of the control else does not do nothing (you can execute another event if you want). when we call to _dopostback javascript function, RadAjaxManager evalues situation and execute its.
I hope they will be of great help.
| var combo = $find("<%=this.MySpiffyCombo.ClientID %>"); |
| combo.requestItems(); |
| var ajaxManager= $find("<%=this.RadAjaxManager1.ClientID %>"); |
| ajaxManager.ajaxRequest("foo"); |
| var ajaxManager = $find("<%=this.RadAjaxManager1.ClientID %>"); |
| ajaxManager.ajaxRequestWithTarget("<%=this.MySpiffyCombo.UniqueID %", ""); |
I have a radhtmlchart using BarSeries with one data series. The data is sourced from a linq query, not generated directly in codebehind like the demo for colorizing bars shows. What I would like to do is colorize the bars depending on a second value in the results of the query.
The top of the chart code is straightforward. I'm leaving out non-relevant code but let me know if there's something else you need to see.
<telerik:RadHtmlChart ID="BarChart1" runat="server">
<PlotArea>
<Series>
<telerik:BarSeries DataFieldY="DailyGrossQty" Name="Daily Gross Qty" Visible="true" Stacked="false" gap=".4" spacing="0.4">
<Appearance>
<FillStyle BackgroundColor="#145e8e"></FillStyle>
</Appearance>
</telerik:BarSeries>
The linq query is also straightforward:
var x = from Z in db.spDailyData(ReportDate)
select Z;
BarChart1.DataSource = x.OrderByDescending(o => o.DailyGrossQty).Take(25);
There is another field in the stored procedure called 'Division' and I would like to conditionally color the bars based on the value there, overriding the default.
What would be the simplest approach to that?
Thanks.
-Dan

<telerik:RadComboBox ID="rcProject" Runat="server" AllowCustomText="false"
AutoPostBack="True" EmptyMessage="Type a Project Name"
EnableLoadOnDemand="True" EnableVirtualScrolling="True" Filter="StartsWith"
Height="22px" MaxHeight="200px" OnItemsRequested="rcProject_ItemsRequested"
ShowMoreResultsBox="true"
ToolTip="You can type or scroll and select. What you type, must exist in the list"
Width="200px">
</telerik:RadComboBox>
In the Radscheduler I have the grid divided every 30 minutes. but if for example I have a 2-hour appointment, it fills the slot with a single appointment. How do I leave the 30-minute split even when entering long appointments?