Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
AI Productivity Tools
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
"server"
>
ContentTemplate
asp:TextBox
"TextBox2"
></
asp:Button
"Button2"
Text
"Submit"
/>
</
C#: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GridBoundColumn boundColumn; boundColumn = new GridBoundColumn(); RadGrid1.MasterTableView.Columns.Add(boundColumn); boundColumn.DataField = "FirstName"; boundColumn.HeaderText = "FirstName"; boundColumn.UniqueName = "FirstName"; } } protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; TableCell cell = (TableCell)item["FirstName"]; cell.Attributes.Add("onclick", "CellClick();"); } } Java Script: <script type="text/javascript"> function CellClick() { var oWnd = $find("RadWindow1"); oWnd.show(); return false; } </script>
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
GridBoundColumn boundColumn;
boundColumn =
new
GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField =
"FirstName"
;
boundColumn.HeaderText =
boundColumn.UniqueName =
}
RadGrid1_ItemCreated(
sender, GridItemEventArgs e)
(e.Item
is
GridDataItem)
GridDataItem item = (GridDataItem)e.Item;
TableCell cell = (TableCell)item[
];
cell.Attributes.Add(
"onclick"
,
"CellClick();"
);
<script type=
"text/javascript"
function
CellClick() {
var
oWnd = $find(
oWnd.show();
return
false
</script>