or
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| // SET GRID VIEW |
| setGridEvoColumns(RadGridEvoStats); |
| } |
| } |
| public void setGridEvoColumns(RadGrid Grid,ArrayList years, DataTable Source) |
| { |
| GridBoundColumn boundColumn; |
| GridTemplateColumn gtc; |
| StatsColumn sc; |
| StatsColumnHeader sch; |
| boundColumn = new GridBoundColumn(); |
| Grid.MasterTableView.Columns.Add(boundColumn); |
| boundColumn.HeaderText = "Country"; |
| boundColumn.DataField = "Country"; |
| boundColumn.UniqueName = "Country"; |
| string sufix = ""; |
| foreach (string year in years) |
| { |
| sufix = "_" + year; |
| gtc = new GridTemplateColumn(); |
| sc = new StatsColumn(); |
| sch = new StatsColumnHeader(); |
| Grid.MasterTableView.Columns.Add(gtc); |
| gtc.HeaderTemplate = sch; |
| gtc.ItemTemplate = sc; |
| } |
| } |

| ...... <NestedViewTemplate > |
| <Test:TaskControl ID="TaskControlMain" runat="server" /> |
| </NestedViewTemplate> ........ |
| <DIV> |
| <Test:flowAssignee ID="Assignee" runat="server" /> <DIV> |
| <DIV> |
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| function checkAssignee() |
| { |
| alert("2323") |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| <div> |
| <telerik:RadTextBox ID="Relationship" runat="server" onblur="checkAssignee" Width="200" /> |
| </div> |

why doesn't the GridDropDownColumn have the HTMLEncode propery???
I works well in the combobox but in the grid there will be problems without the encoding.
Do I need to HTMLEncode in databound? How?
| <telerik:GridTemplateColumn UniqueName="ExpandCollapse" HeaderStyle-Width="3%"> |
| <ItemTemplate> |
| <asp:LinkButton ID="lbBook" Text="Book" CommandName="book" runat="server"></asp:LinkButton> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| protected void rgEnvironments_ItemCommand(object source, GridCommandEventArgs e) |
| { |
| try |
| { |
| if (e.CommandName == "book") |
| { |
| e.Canceled = true; |
| rgEnvironments.EditIndexes.Clear(); |
| e.Item.OwnerTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl; |
| e.Item.OwnerTableView.EditFormSettings.UserControlName = "/teams/im/environment_usage/insert_usage_form.ascx"; |
| e.Item.OwnerTableView.InsertItem(); |
| } |
| } |
| catch (Exception ex) |
| { |
| Intranet.AppendLogFile(ex.Message + ex.StackTrace); |
| } |
| } |
| Dim cultureInfo As CultureInfo = cultureInfo.CurrentCulture |
| dteLeaveStart.Culture = cultureInfo |