
protected
void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
GridEditFormItem editFormItem = (GridEditFormItem)e.Item;
TextBox tb = editFormItem.FindControl("Title") as TextBox;
tb.Text =
"HELLO";
ListBox lb = editFormItem.FindControl("PriorityType") as ListBox;
lb.Items.Add(
"HELLO");
}
}
| <telerik:RadGrid ID="Foo" runat="server" AutoGenerateColumns="False" |
| GridLines="Horizontal" Width="100%" AllowMultiRowSelection="true" |
| AllowAutomaticDeletes="false" |
| AllowAutomaticInserts="false" AllowAutomaticUpdates="false" |
| OnNeedDataSource="Foo_NeedDataSource"> |
| <MasterTableView DataKeyNames="Key" CommandItemDisplay="None" |
| TableLayout="Fixed" ShowHeader="true" Width="784px" EditMode="InPlace"> |
| <Columns> |
| <telerik:GridTemplateColumn UniqueName="Allocate" HeaderText="Pay?"> |
| <HeaderStyle Width="35px" /> |
| <ItemStyle Width="35px" HorizontalAlign="Center" /> |
| <ItemTemplate> |
| <input id="AllocateEdit" type="checkbox" onclick="" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn DataField="AllocatedAmount" UniqueName="AllocatedAmount" |
| HeaderText="Amount"> |
| <HeaderStyle Width="75px" /> |
| <ItemStyle Width="75px" /> |
| <ItemTemplate> |
| <telerik:RadNumericTextBox ID="AllocatedAmountEdit" runat="server" Type="Number" Height="15px" |
| Width="65px" MinValue="0" MaxValue="2147483647" NumberFormat-DecimalDigits="0" |
| DbValue='<%# DataBinder.Eval(Container.DataItem, "AllocatedAmount") %>'> |
| <EnabledStyle HorizontalAlign="right" /> |
| </telerik:RadNumericTextBox> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" ReadOnly="true"> |
| <HeaderStyle Width="200px" /> |
| <ItemStyle Width="200px" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="OtherStaticDataColumn" HeaderText="OtherStaticDataColumn" ReadOnly="true"> |
| <HeaderStyle Width="70px" HorizontalAlign="Center" /> |
| <ItemStyle Width="70px" HorizontalAlign="Right" /> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="true" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
I have a context menu with submenus in a RadTreeView. When I hover over one item that has a submenu, the submenu opens but the OnClientContextMenuShowing event doesn’t fire. Is there another event I should be looking for? How can I handle the enabled/disabled states of the submenu items?
Thanks!
2008-02-12 10:00:00->2008-02-12 10:25:00
2008-02-12 10:25:00->2008-02-12 10:50:00
2008-02-12 10:50:00->2008-02-12 11:15:00
2008-02-12 11:15:00->2008-02-12 11:40:00
2008-02-12 11:40:00->2008-02-12 12:05:00
2008-02-12 12:05:00->2008-02-12 12:30:00
2008-02-12 12:30:00->2008-02-12 12:55:00
2008-02-12 12:55:00->2008-02-12 13:20:00
2008-02-12 13:20:00->2008-02-12 13:45:00
2008-02-12 13:45:00->2008-02-12 14:10:00
2008-02-12 14:10:00->2008-02-12 14:35:00
2008-02-12 14:35:00->2008-02-12 15:00:00
2008-02-12 15:00:00->2008-02-12 15:25:00
2008-02-12 15:25:00->2008-02-12 15:50:00
with MinutesPerRow set to the 25 (the duration of the event) i got the error that :