or
| <asp:UpdatePanel ID="upnl" runat="server"> |
| <ContentTemplate> |
| <script type="text/javascript"> |
| function OnClientClose(oWnd, args) { |
| var arg = args.get_argument(); |
| window.location.href = 'default.aspx'; |
| window.location="http://www.yourdomain.com/"; |
| if (arg=="1") { |
| window.location.href = 'default.aspx'; |
| } |
| else { |
| window.location.href = 'default.aspx'; |
| return false; |
| } |
| function OpenWindow() |
| { |
| var wnd = window.radopen(null, "RadWindow2"); |
| wnd.setSize(400,400); |
| return false; |
| } |
| </script> |
| <telerik:RadWindowManager VisibleOnPageLoad="true" ID="RadWindowManager1" runat="server" OnClientClose="OnClientClose"> |
| <Windows> |
| <telerik:RadWindow ID="RadWindow2" runat="server" Title="Edit" Modal="True" VisibleOnPageLoad="true" |
| Skin="Web20" |
| VisibleTitlebar="False" VisibleStatusbar="False" InitialBehavior="None" Height="260" Width="380" /> |
| </Windows> |
| </telerik:RadWindowManager> |
| ... |
Dim
rsJobPlan = CType(Page.Master.FindControl("ctl00$cphContent$JobPlanWeek" & WeekCycle), RadScheduler)
Imports
System.Data
Imports
System.Data.SqlClient
Imports
Telerik.Web.UI

| protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| GridDataItem item = e.Item as GridDataItem; |
| if ((item != null) && (e.Item is GridDataItem)) |
| { |
| bool bValue = (bool)DataBinder.Eval(item.DataItem, "myfield"); |
| item["myfield"].Controls.Clear(); |
| item["myfield"].Text = ((bValue) ? "Yes" : "No"); |
| .... |
