Hi, I have a question. When I do inline editing: I have a number of columns with integers. When I want to inline edit a column it works perfect.
However, I notice that when I "in" a cell and I use my mouse wheel the value goes up or down.
I don't want that tp happen because it can confuse people.
How to prevent this?
var
tableView = $find(
"<%= RadGrid1.ClientID %>"
).get_masterTableView();
<%@ Page Language=
"C#"
AutoEventWireup=
"true"
CodeFile=
"Default2.aspx.cs"
Inherits=
"Default2"
%>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head runat=
"server"
>
<title></title>
<telerik:RadCodeBlock ID=
"RadCodeBlock1"
runat=
"server"
>
<script language=
"javascript"
type=
"text/javascript"
>
function
Button1_onclick() {
var
tableView = $find(
"<%= RadGrid1.ClientID %>"
).get_masterTableView();
PageMethods.GetData(1,
true
, updateGrid);
}
function
updateGrid(result) {
var
tableView = $find(
"<%= RadGrid1.ClientID %>"
).get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
}
</script>
</telerik:RadCodeBlock>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<input id=
"Button1"
type=
"button"
value=
"button"
onclick=
"return Button1_onclick()"
/>
<telerik:RadScriptManager ID=
"RadScriptManager1"
Runat=
"server"
EnablePageMethods=
"true"
>
</telerik:RadScriptManager>
<br />
<telerik:RadGrid ID=
"RadGrid1"
runat=
"server"
EnableViewState=
"false"
>
<MasterTableView>
<Columns>
<telerik:GridBoundColumn DataField=
"pic"
HeaderText=
"pic"
/>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</form>
</body>
</html>
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Web.Services;
using
System.Data;
public
partial
class
Default2 : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
}
[WebMethod]
public
static
List<
object
> GetData(
int
departmentID,
bool
SelectSubNodesPersonels)
{
DAL.Personels ObjPersonels =
new
DAL.Personels();
DataTable DT = ObjPersonels.Personels_SELECT_BY_DepartmentID(departmentID, SelectSubNodesPersonels);
return
ObjPersonels.Convert_DataTable_To_List_Object(DT);
}
}
My boss and I want to add the RadAsyncUpload control to our website with the target folder being on a GoDaddy Shared Virtual Hosting Account. Now, this means that we have to pass through credentials to do this. After doing some Googling I found an instance where it was suggested to use an OnFileUploaded event to FTP the file up to the server (http://www.telerik.com/forums/use-radupload-to-trasfer-to-ftp-site).
This seems like an extra bit of work for something that should be really simple.
Is there a simpler way to go about this?
In several of my controls if I use ConfirmDialogType="Radwindow" the window dialogue appears, click 'Yes' and the delete is cancelled, but if I switch to "Classic" the delete works fine?
I build websites using DotNetNuke and recently I had a need to force downloads from standard A tag hyperlinks. This can be done with modern HTML5 browsers using the "download" attribute. But, the RadEditor that the DNN site offers strips this attribute while in its standard HTML mode. The only way I can get it to work is to switch the editor into text mode, which causes issues when later opening / saving the content in HTML mode.
Is there any method to alter the behavior of the editor to accept / allow the "download" attribute?
Thanks.