<%@ 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
Hi All,
I am using Telerik Radmenu in my application. The telerik version I am using is Telerik.Web.UI.ddl 2010.3.1317.35.
Now I have a requirement of changing back color and font color of menu item depending on the user selection .
For that I overwrite some of the inbuild CSS classes but it can not solve my problem because now I am able to change the back color
and font color but the menu UI get distroted.
Can any one have any idea how to change the backcolor and fontcolor of Radmenu dynamically with out menu UI distrotion.
I have attached the screen shot for refer .