<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="WebApplication1.test" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"HeadContent"
runat
=
"server"
>
</
asp:Content
>
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"MainContent"
runat
=
"server"
>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Text
=
"Load"
onclick
=
"RadButton1_Click"
>
</
telerik:RadButton
>
<
telerik:RadGrid
Width
=
"400px"
Height
=
"400px"
ID
=
"RadGrid1"
runat
=
"server"
>
</
telerik:RadGrid
>
</
asp:Content
>
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
namespace
WebApplication1
{
public
partial
class
test : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
}
protected
void
RadButton1_Click(
object
sender, EventArgs e)
{
List<FillTest> testList =
new
List<FillTest>();
testList.Add(
new
FillTest(
"wer"
,
"ERterte"
,
"ertert"
,
"ertert"
));
testList.Add(
new
FillTest(
"ertert"
,
"dfgdfg"
,
"ertert"
,
"ertert"
));
testList.Add(
new
FillTest(
"dgdfg"
,
"rwer"
,
"pfsd"
,
"vfswe"
));
RadGrid1.DataSource = testList;
}
}
public
class
FillTest
{
string
_testProperty, _test, _description, _code;
public
string
Code
{
get
{
return
_code; }
set
{ _code = value; }
}
public
string
Test
{
get
{
return
_test; }
set
{ _test = value; }
}
public
string
Description
{
get
{
return
_description; }
set
{ _description = value; }
}
public
string
TestProperty
{
get
{
return
_testProperty; }
set
{ _testProperty = value; }
}
public
FillTest(
string
testProperty,
string
test,
string
description,
string
code)
{
_testProperty = testProperty;
_test = test;
_description = description;
_code = code;
}
}
}
Hello,
One of my current tasks is to modify the Image Editor(RadEditor) to allow the user to do some limited Image manipulations. On this task I've encountered some issues :
1) could Image Editor be modified to include a zoom control? For instance if the user has to take a crop from a 2000 x 3000 pixels image, he can't see the whole image fitted in the window.
2) Is there a way to have Image Editor open with Crop "Enabled" by default ? On careful inspection on the js code on the ascx, there are some props in the prototype init; ie.
1.
this
._cropEnabled =
true
;
// this doesn't work ?How can the ascx ( or what are the caller parameters ) modified to have crop enabled, and the bounding boxes visible when the Image Editor inits ?
3) When setting the default width and height of the crop area
1.
//Set initial position
2.
this
.setBounds({ x: 0, y: 0, width: 70, height: 70 });
Thanks!
I need to display a rad grid in the following format which is attached with this post. I wil enter the values in the textbox inside the grid and save the data to the databse. The attached grid is ASP GRID . Whether this is possible in rad grid